IBM ABAP-ok

download IBM ABAP-ok

of 85

Transcript of IBM ABAP-ok

  • 7/26/2019 IBM ABAP-ok

    1/85

    Name the reports, interfaces, transactions, sap script programs written? Explain the

    Functionality?

    What is the typical structure of an ABAP/4 program?

    Ans ! "eclarati#e elements, $perational, control, e#ents

    What are fiel% sym&ols an% fiel% groups? 'a#e you use% (component i%x of

    structure) clause with fiel%s groups?

    Ans.: place holder for existing fields similar to fields point to point

    *roups + ommon se#eral fiel%s un%er one Name

    What shoul% &e the approach for writing a B" program?

    Ans+ - Analysis the "ata . *enerate AP structure 0 "e#elop transfer program

    4 reate se1uential file 2 reate &atch input program 3 Process &atch input %ata

    What is the alternati#e to &atch input session?

    Ans + all transaction call %ialog

    A situation+ An ABAP program creates a &atch input session We nee% to su&mit the

    program an% the &atch session in &ac5groun% 'ow to %o it? 6up to 0-'7

    Ans+ 8un the session &y 8B"9B explicitly &y pro#i%ing &atch input session

    name *o to &atch input, "ou&le clic5 on session name :t gi#es a pop up screen for

    run mo%e enters it an% run

    What are the pro&lems in processing &atch input sessions? 'ow is &atch input

    process %ifferent from processing on line?

    Ans+ essions cannot &e run in parallel an% not fast

    Name as many AP ;ransactions as possi&le you are familiar with?

    Ans + E0< = ABAP e%itor , E $&@ect Browser , E03 logical %ata&ases

    E-- ABAP %ata %ictionary E-3 E0 Function o%ule

    What are the %ifferent types of %ata %ictionary o&@ects?

  • 7/26/2019 IBM ABAP-ok

    2/85

    Ans + ;a&les "ata Elements "omains = tructure Foreign Ceys

    'ow many types of ta&les exist an% What are they in %ata %ictionary?

    Ans + ;ransparent ;a&les = Poole% ;a&les luster ;a&les

    What is the step &y step process to create a ta&le in %ata %ictionary?

    Ans + reate "omain reate "ata elements reate fiel%s reate ;a&les

    an a transparent ta&le exist in %ata %ictionary &ut not in the %ata&ase physically?

    Ans + Des 6;a&les in %ata&ase ha#e %ifferent structures, %ifferent names an% total

    no of ta&les in oracle %ata&ase is smaller than transparent ta&les7

    What are the %omains an% %ata elements?

    Ans + %omain %escri&es ;echnical haracteristics of a ta&le fiel%s eg #alue range

    Elements %escri&e role playe% &y a fiel%s in technical contains eg Form of fiel%

    text

    an you create a ta&le with fiel%s not referring to %ata elements?

    Ans + yes

    What is the a%#antage of structures? 'ow %o you use them in the ABAP programs?

    Ans+ structure is use% to %efine the construction of %ata pro%uce% when calculations

    are carrie% out within programs or when %ata is transferre% &etween programs

    ontain %ata at runtime only

    What %oes an extract statement %o in the ABAP program?

    Ans+ Fills the fiel%s groups with #alues

    What is a collect statement? 'ow is it %ifferent from appen%?

    Ans+ ollect %oes not allow %uplicate 5eys an% appen% a%%s a line e#en if it exists

    alrea%y

  • 7/26/2019 IBM ABAP-ok

    3/85

    What is open #/s Nati#e ?

    Ans + Nati#e use% to inclu%e stmt of 8"B in ABAP/4 programs

    $pen = su&set of stan%ar% with enhancements that are specific to AP

    What %oes an EGE stmt %o in ABAP? What is the %isa%#antage of using it?

    Ans+ it allows us to execute a stmt rele#ant to a particular %ata&ase attache% to

    AP

    :t is not transparent 6"isa%#antage7

    What is the meaning of ABAP/4 e%itor integrate% with ABAP/4 "ata %ictionary?

    Ans+ the *raphical programming en#ironment We can write ABAP/4 co%e, controlaccess to o&@ects un%er %e#elopment, create new or access pre%efine% %ata&ase

    information

    What are the e#ents in ABAP/4 language?

    Ans+ :nteracti#e reports = At line selection At user=comman% At PF=status

    lassical reports = ;op of page en% of page start of selection en% of selection

    What is an interacti#e report? What is the oious %ifferent of such report compare%

    with '; type report?

    Ans+ Features creen oriente% short &asic lists compresse% %ata in &asic list

    "etaile% information in secon%ary lists or win%ows

    What is %rill %own report?

    Ans+ A list which you create &y selecting on characteristic #alue of a report an%

    which contains %etaile% information a&out that #alue

    'ow %o you write a function mo%ule in AP? "escri&e

    Ans + using function HI function li&rary + parameters , importing changing ta&les

    exporting

  • 7/26/2019 IBM ABAP-ok

    4/85

    J Exceptions

    En% function

    .2 What are the exceptions in a function mo%ule?

    Ans+ error situations that can occur within function mo%ules EGEP;:$N = return

    co%es

    .3 What is a function group?

    Ans + A function group is the main program for the function mo%ules it contains

    Functions that use the same %ata are normally assigne% to the same function group

    . 'ow are the %ate an% time fiel%s #alues store% in AP?

    Ans+ As character fiel%s of length < an% < as N9

    . What happens when a ta&le is acti#ate% in ""?

    =A ta&le %efinition is generate% = ap to the %ata&ase system

    =For each ta&le, a ta&le of the same name with the same fiel%s an% correspon%ing %ata

    type is create% in %ata&ase Primary in%ex is generate% automatically

    0- What is a chec5 ta&le an% what is a #alue ta&le?

    = When we %efine a foreign 5ey in a ta&le 6A7 :f this 5ey refers to primary 5ey of

    another ta&le 6B7 ;a&le B is chec5 ta&le

    = Fiel%s referring to a %omain may assume #alues containe% in the correspon%ing

    fiel%s of the #alue ta&le Fiel% referring to the %omain shoul% ha#e a foreign 5ey

    0. What are match co%es? "escri&e

  • 7/26/2019 IBM ABAP-ok

    5/85

    = ;ool that helps us to search %ata recor%s in the system

    00 What transactions %o you use for %ata analysis?

    =

    04 What is ta&le maintenance generator?

    = use% to maintain ta&les an% pro#i%ing authoriation for particular o&@ects

    - $ne step maintenance

    . ;wo step maintenance

    02 What are ranges? What are num&er ranges?

    = A range of num&ers that can &e lai% %own for assignment of %ocument num&ers

    :nternal

    External

    03 What are select options an% what is the %ifferent from parameters?

    = elect options are use% to select a range of #alues where as in Parameters only one

    #alue can &e gi#en

    = elect option generates a line on selection screen, the first part of which contains a

    text, followe% &y a range for input possi&ilities

    0 'ow %o you #ali%ate the selection criteria of a report? An% how %o you %isplay initial

    #alues in a selection screen?

    = Mali%ation = A; EE;:$N=8EEN e#ent

    = :nitial Malues &y %efault statement in select options / parameters

    0

  • 7/26/2019 IBM ABAP-ok

    6/85

    ystems

    = orrection system manages the internal system components li5e o&@ects li5e only

    original #ersion of the o&@ect exists :t stores all changes ma%e to the o&@ect

    = ;ransport system allows to transports the o&@ect from on AP system to another

    6"e#elopment system to Pro%uction system7 :t allows to o#er write or %elete

    existing o&@ect in target system an% import new o&@ects to target systems

    = "uring %e#elopment wor5 we start &y opening a tas5 6correction7 to which we can

    assign new an% change% o&@ects $nce changes ha#e &een ma%e, transport new or

    change% o&@ects to other AP system &y means of transport 6hange7 re1uest

    4> When a program is create% an% nee% to &e transporte% to pro%uction %oes selection

    texts always go with it? :f no how %o you ma5e sure? an you change the ;

    entries? 'ow %o you %o it?

    =

    4- What is client concept in AP? What is the meaning of client in%epen%ent?

    = lient = A client is self contain unit in an 8/0 system with separate master recor%s in

    common ta&les6AN";7

    = lient in%epen%ent recor%s an% ta&les can &e accesse% from any client

    4. Are program clients %epen%ent?

    = No

    40 Name a few system glo&al #aria&les you can use in ABAP program?

    = D=;EG; D=;MA8" D=;MA8- D=;MA8.

    44 What are internal ta&les? 'ow %o you get num&er of lines in an internal ta&le? 'ow to

    use a specific num&ers occur statement?

    = "ata structure that exists only at program runtime :nternal ta&les are one of two

    structure% %ata types in ABAP ;hey can contain any num&er of i%entically

    structure% rows, with or without a hea%er line

  • 7/26/2019 IBM ABAP-ok

    7/85

    = :nternal ;a&les are temporary ta&les which use% to store #alues at run time no of

    lines in :nternal ta&les "E8:BE ;ABE :;AB :NE :N

    = 9se a pecific nos $98 statement

    42 'ow %o you ta5e care of performance issues in your ABAP programs?

    = 8untime Analysis

    43 What are %ata sets?

    = e1uential files in ABAP

    4 'ow to fin% the return co%e of a stmt in ABAP programs?

    = D=9B8

    43BB:> 6Purchase re1uisitions7

    = 8"A;:N" 6aterial master7 8FB:C8>> 6Men%or asters7

    = 8FB:"E>> 6ustomer aster7 8M:NMB>> 6ales $r%er7

    2> What are the ;echni1ues in#ol#e% in using AP supplie% programs? "o you prefer to

    write your own programs to loa% master %ata? Why?

    = :%entify rele#ant fiel%s

    = aintain transfer structure 6Pre%efine% first one is always session recor%7

    = ession recor% structure, 'ea%er "ata, :tem 6;DPE recor% type 7

    = Fiel%s in session structure ;DPE, *8$9P, AN";, 9E8NAE, N$ "A;A

    = Fiel%s in hea%er structure consists of transaction co%e also ;DPE, B>>,

    ;$"E, A;N8 an% Fiel%s in :tem = :;E J

  • 7/26/2019 IBM ABAP-ok

    8/85

    = aintain transfer file sample %ata set creation

    = ;ransfer %ata &y %irect input

    2- What are logical %ata&ases? What are the a%#antages/%isa%#antages of logical

    %ata&ases?

    Ans += A ogical "ata&ase is a hierarchical structure of ta&les 9se the *E; statement

    to process ogical "ata&ases

    = "B consists of logically relate% ta&les groupe% together use% for rea%ing an%

    processing %ata

    = A%#antages ! - No nee% of programming for retrie#al, meaning for %ata selection

    = . Easy to use stan%ar% user interface, ha#e chec5 completeness of user input

    = "isa%#antages ! - Fast in case of lesser no of ta&les But if the ta&le is in the lowest

    le#el of hierarchy, all upper le#el ta&les shoul% &e rea% so performance is slower

    2. What specific statements %o you using when writing a %rill %own report?

    = *E; 98$8

    = A; :NE EE;:$N

    = A; 9E8 $AN"

    = ':"E

    = D=:E

    20 What are %ifferent ;ools to report %ata in AP? What all ha#e you use%?

    = ABAP 9E8D

    24 What are the A%#antage an% %isa%#antages of ABAP 1uery tool?

    = A%#antages ! no lengthy co%e

    = "isa%# ! :nteracti#e lists %rill reports are not possi&le an% con%itional reporting not

    possi&le

  • 7/26/2019 IBM ABAP-ok

    9/85

    22 What are the functional areas? 9ser groups? An% how %oes ABAP/4 1uery wor5 in

    relation to these?

    = Functional areas ! pro#i%e the user with a framewor5 for %efining a 1uery 1uic5ly

    = elect a logical %ata&ase from application system

    9ser groups ! use% to set up appropriate en#ironment for the user or authoriation for

    using 1uery By creating fun Areas an% assigning them to user groups ystem

    a%ministrator %etermines the range of reports the in%i#i%ual application %epts $r en%

    users can generate using ABAP 1uery

    23 :s a logical %ata&ase a re1uirement / must to write an a&ap/4 1uery?

    = ogical %ata&ase is not a must for ABAP/4 1uery

    2 'a#e you create% / maintaine% functional areas?

    = No

    2

  • 7/26/2019 IBM ABAP-ok

    10/85

    = A%% a @o& step to the @o& with the function mo%ule K$B=9B:;

    = lose the @o& an% pass it to Bac5groun% processing system for execution with the

    function mo%ule K$B=$E

    = EMEN; "8:MEN BA;' K$B +=

    = ;ypes ! ystem e#ents triggere% when acti#ation of new operation mo%e ta5es

    place

    = 9ser e#ents = ;riggere% from ABAP/4 or external program

    = ;riggering an e#ent notifies the &ac5groun% processing that name% con%ition has

    &een reache% ;he Bac5groun% system reacts &y starting any @o&s that were

    waiting for the e#ent

    ;ransaction co%es relate% to &ac5groun% @o&s creation an% processing are +=

    036Ko& creation7

    06Ko& selection an% execution7

    3. :s :t possi&le to run host comman% from AP en#ironment? 'ow %o you run?

    =

    30 What 5in% of financial perio%s exist in AP? What is the rele#ant ;a&le for that?

    =NA

    34 "oes AP han%le multiple currencies? ultiple anguages?

    = Des

    32 What is currency factoring techni1ue?

    =NA

    33 'ow %o you %ocument ABAP/4 programs? "o you use program %ocumentation menu

    option?

    Ans ='ea%ings un%er which %ocumentation is create% are ;:;E, P98P$E,

  • 7/26/2019 IBM ABAP-ok

    11/85

    :N;E*8A;:$N, P8E8E9::;E, FEA;98E, EE;:$N, ;AN"A8"

    MA8:AN;, $9;P9;, A;:M:;:E, EGAPE

    =Des

    3 What is sap script an% layout set?

    Ans = APscript is the integrate% text management system of the AP 8/0 ystem

    APscript is tightly integrate% into the AP ystem :t is use% for many %ifferent

    wor%=processing tas5s all o#er the AP ystem

    = A layout set in AP script is use% for page layout ;he layout set contains #arious

    elements, which are use% for layout control of the in%i#i%ual pages an% also contain

    layout information for texts which are to &e output on the in%i#i%ual pages

    3

  • 7/26/2019 IBM ABAP-ok

    12/85

    AE+ communication &etween logical systems ogical systems can &e 8/0, 8/.

    or non=AP system AE %istri&ution mo%els are &ase% on message types that

    in%icate the appropriate :"oc types

    E":+ communication &etween an 8/0 or 8/. system an% a non=AP system

    What are creen Painters? enu Painter? *9: tatus? Jetc

    = creen Painters+ = Arranging or creating elements of the screen

    = enu Painters+ = "esigning an% creating menu &ar

    = *9: tatus+ = :nterface &etween user an% AP program 6PF ;A;97

    What is screen flow logic? What are the selections in it? Explain PA: an% PB$?

    Ans = creen flow logic contains the proce%ural part of a screen ;he screen flow

    logic is li5e an ABAP program in that it ser#es as a container for processing &loc5s

    ;here are four e#ent &loc5s, each of which is intro%uce% with the screen 5eywor%

    P8$E+

    P8$E BEF$8E $9;P9;

    P8$E AF;E8 :NP9;

    P8$E $N 'EP=8E9E;

    P8$E $N MA9E=8E9E;

    = elections are performe% in PA:

    = P8$E BEF$8E $9;P9; 6PB$7 is automatically triggere% after the PA:

    processing of the pre#ious screen an% &efore the current screen is %isplaye%

    Dou can program the PB$ processing of the screen in this &loc5 At the en% of

    the PB$ processing, the screen is %isplaye%

  • 7/26/2019 IBM ABAP-ok

    13/85

    = P8$E AF;E8 :NP9; 6PA:7 is triggere% when the user chooses a function on

    the screen Dou can program the PA: processing of the screen in this &loc5 At

    the en% of the PA: processing, the system either calls the next screen or carries

    on processing at the point from which the screen was calle%

    = P8$E $N 'EP=8E9E; 6P$'7 an% P8$E $N MA9E=8E9E;

    6P$M7 are triggere% when the user re1uests fiel% help 6F-7 or possi&le #alues

    help 6F47 respecti#ely Dou can program the appropriate co%ing in the

    correspon%ing e#ent &loc5s At the en% of processing, the system carries on

    processing the current screen

    $#erall how %o you write transaction program in AP?

    = reate the transaction using o&@ect &rowser 6E7

    = "efine the o&@ects eg screen, ;ransactions o%ules PB$, PA:

    "oes AP has a *9: screen painter? :f yes What operating systems is it a#aila&le

    on? What is the other type of screen painter calle%?

    = Des

    = $n what $ is it a#aila&le Win%ow &ase%

    = $ther type of screen painter alpha numeric screen painter

    What are step loops? 'ow %o you program page %own page up in step loop?

    = tep loops+ etho% of %isplaying a set of recor%s

    = Page %own Page up+ %ecrement / increment &ase counter

    = :n%ex ! &ase T sy=step- -

    :s ABAP a *9: language?

    = Des

    Normally how many an% what files get create% when a transaction program is

    written? What is top GGGGGG;$P program?

  • 7/26/2019 IBM ABAP-ok

    14/85

    = ain program with A :nclu%es

    = : 7 ;$P :N9"E *$BA "A;A

    = :: 7 :nclu%e for PB$

    = :::7 :nclu%e for PA:

    = :M7 inclu%e for Forms

    What are :nclu%e Programs?

    = et of co%e which are inclu%e% into the main program at runtime

    an you call a su&routine of one program from another program?

    = Des

    What are user exits? What is in#ol#e% in writing them? What precautions are

    nee%e%?

    = 9ser %efine% functionality inclu%e% to pre%efine% AP stan%ar%s Point in an AP

    program where a customerUs own program can &e calle% :n contrast to customer

    exits, user exits allow %e#elopers to access an% mo%ify program components

    an% %ata o&@ects in the stan%ar% system $n upgra%e, each user exit must &e

    chec5e% to ensure that it conforms to the stan%ar% system

    ;here are two types of user exit+

    9ser exits that use :N9"Es

    ;hese are customer enhancements that are calle% %irectly in the program

    9ser exits that use ta&les

    ;hese are use% an% manage% using ustomiing

    = houl% fin% the customer enhancements &elonging to particular %e#elopment

    class

    What are 8FQ? 'ow %o you write 8F on AP si%e?

    Ans = 8emote Function alls 8F is an AP interface protocol Base% on P:=, it

  • 7/26/2019 IBM ABAP-ok

    15/85

    consi%era&ly simplifies the programming of communication processes &etween

    systems 8Fs ena&le you to call an% execute pre%efine% functions in a remote

    system = or e#en in the same system 8Fs manage the communication process,

    parameter transfer an% error han%ling

    = Any ABAP program can call a remote function using the A

    F9N;:$N"E;:NA;:$N statement ;he "E;:NA;:$N parameter tells the

    AP ystem that the calle% function runs in a system other than the callerUs 8F

    communication with the remote system happens as part of the A F9N;:$N

    statement

    What are the general naming con#entions of ABAP programs?

    = tart with S or D followe% &y har or Nos

    = < etters long / .> letters 64>& onwar%s7

    'ow %o you fin% if a logical %ata&ase exists for your program re1uirements?

    Ans

    = *et ta&le comman%

    = ;a&le name where use% list logical %ata&ase

    = Attri&ute

    'ow %o you fin% the ta&les to report from when the user @ust tell you the transaction

    he uses? An% all the un%erlying %ata is from AP structure?

    = *o to transaction F- an% go to technical information

    'ow %o you fin% the menu path for a gi#en transaction in AP?

    = *o to %ynamic menu, *i#e the search term ie transaction name

    = AP st% menu ABAP/4 wor5&ench "e#elopment / utilities

    What are the "ifferent o%ules of AP?

    = PP P F: " '8

  • 7/26/2019 IBM ABAP-ok

    16/85

    What is :* in AP?

    = :mplementation gui%e containing all :*, acti#ities arrange% &y &usiness

    application components

    'ow %o you get help in ABAP?

    = Place cursor on re1uire% fiel% an% press F- or ' 5eywor% in comman% mo%e

    What are %ifferent ABAP/4 E%itors? What are the %ifferences?

    = omman% mo%e E%itor 6Not a#aila&le in 437

    = P o%e with line num&ering

    = P o%e without ine num&ering

    What are %ifferent elements in layout sets?

    = Paragraphs

    = haracter tring

    = Page

    = Win%ows

    = Page Win%ows

    = 'ea%er "ata

    an you use if then else, perform etc statements in AP cript?

    = DE

    What type of #aria&les normally use% in sap script to output %ata?

    = ;a&les name= fiel%s

    'ow %o you num&er pages in sap script layout outputs?

    = page

    = next Page

  • 7/26/2019 IBM ABAP-ok

    17/85

    What ta5es most time in AP script programming?

    = "efining layout set up / sets

    'ow %o you use ta& sets in layout sets?

    = "efine paragraph with %efine% ta&s

    'ow %o you &ac5up sap script layout sets? an you %ownloa% an% uploa%? 'ow?

    = AP script &ac5up += :n transaction E- goto 9tilities =I opy from client =I

    *i#e source form name, source client 6>>> %efault7, ;arget form name

    = "ownloa% += E-, type form name =I "isplay =I 9tilities =I form info =I ist =I

    a#e to P file

    = 9ploa% += reate form with page, win%ow, pagewin%ow with the help of

    %ownloa%e% P file ;ext elements for Page win%ows to &e copie% from P file

    What are presentation an% application ser#ers in AP?

    =A presentation ser#er is actually a program name% apguiexe :t is usually

    installe% on a userQs wor5station

    = Application ser#er is a set of executa&les that collecti#ely interpret the ABAP/4

    programs an% manage the input output for them

    :n an ABAP/4 program how %o you access %ata that exists on a presentation ser#er

    #/s on an application ser#er?

    = For presentation ser#er use 9P$A" or WV9P$A" function mo%ules

    = For application ser#er use $PEN "A;AE;, 8EA" "A;AE; an% $E

    "A;AE; comman%s

    What are %ifferent %ata type in ABAP/4?

    =;here are eight pre%efine% types in ABAP with fixe% length+

    Four character types+

  • 7/26/2019 IBM ABAP-ok

    18/85

    haracter 67, Numeric character 6N7, "ate 6"7, an% ;ime 6;7

    $ne hexa%ecimal type+

    Byte fiel% 6G7

    ;hree numeric types+

    :nteger 6:7, Floating=point num&er 6F7 an% Pac5e% num&er 6P7

    - 'ow to use the new two=part roll area?

    = ome %ata must &e hel% in roll area an% must &e rolle% into an% out of wor5

    processes 8oll area must not %rop &elow a minimum sie :n two part roll area

    implementation, you can limit amount of %ata in roll area &efore exten%e% memory is

    use% remaining portion of roll area is use% only if no further exten%e% memory can &e

    allocate% to a user context

    DICTIONARY

    -What is a dictionary?

    = "ictionary contains eta %ata or information for the %ata in %ata management

    system

    = :t supports re%un%ancy free %ata storage an% %ata integrity

    .Primary Key field or combination of fields sed to

    ni!ely identify a ro" of the table

    0#orei$n Key % Combination of fields in a table actin$

    as a &rimary 'ey in another table(

    4 Difference bet"een strctre and a Table ?

    Ans % )sin$ tables* data can be stored &ermanently inDatabase* and +trctres contain no data(

    2Define +trctres ?

  • 7/26/2019 IBM ABAP-ok

    19/85

  • 7/26/2019 IBM ABAP-ok

    20/85

  • 7/26/2019 IBM ABAP-ok

    21/85

    .>4atch codes Id describes a s&ecial search &ath for a

    search term(

    .-

    4atch codes= fiel%s from se#eral ta&les

    = &uilt on the &asis of transparent ta&les, clusters an% pools

    = restricte% &y stipulating selection con%itions

    = use as entry ai%s

    "ata&ase in%ex

    = fiel%s from only ta&le

    ..>oc' Ob;ects simltaneos access of records by

    t"o sers synchroni6ed by loc' ob;ects(

    .0Acti/ation Drin$ acti/ation* the rntime ob;ect of

    a$$re$ate ob;ect or tables is created( The rntimeob;ect is bffered so that the a&&lication &ro$ram

    can access it !ic'ly( Rntime ob;ect hasinformation abot the follo"in$ ob;ects of table

    = %omain %ata elements fiel% %efinition ta&le %efinition

  • 7/26/2019 IBM ABAP-ok

    22/85

    Time stam& "hene/er the table is acti/ated* a timestam& is created and stored acti/ation of table inA-AP01 dictionary affects time stam& of all

    re&orts sin$ it( When the &ro$ram is called "ecan determine "hether to e,ecte it or re$enerateit by com&arin$ the time stam&s

    ;ype of stamp 8;AP most recent acti#ation of ta&le

    = AB;AP comparison of reports

    = "D;AP comparison with screens

    Rntime ob;ect of a table collects the informationabot the data elements* domain field definition ina form o&timal for &ro$ram access( It is created"hen the table is $enerated for first time(

    4ass acti/ation &ro$ram Acti/ate lar$e sets ofob;ects +imltaneosly(

    A"M - large no of ta&les are affecte% &y the change of %omains or %ata

    elements at a time, so reacti#ate% only once

    . relate% o&@ects an% its associate% #alue ta&le coul% &e acti#ate% together else we

    shoul% maintain se1uence correctly

    Acti#ation Proce%ure

    tep - internal an% external characteristics chec5 6naming con#ention 8elation

    &etween chec5 ta&le an% #alue ta&le

    tep . partially acti#e o&@ects are chec5e% whether external characteristics arearrange% in or%er

  • 7/26/2019 IBM ABAP-ok

    23/85

    Chan$in$ the strctre deletin$ the table indatabase( Acti/ate the re/ised table in thedictionary( Table in database is created( Data in

    table is lost(

    Chan$in$ the database catalo$ by A>T2R TA->2(Data is &reser/ed inde,es recreated(

    Con/ertin$ of tables ori$inal table is renamed andtem&orarily bffered* re/ised table is acti/ated inA-AP01 dictionary and created in database Datafrom tem&orary table is reconstrcted(

    Con/ersion &rocedre

    = - *enerating a program

    = . 8enaming the %ata&ase ta&le Prefix of is a%%e% to ta&le name

    = 0 Acti#ating re#ise% #ersion

    = 4 reloa%ing %ata

    = 2 secon%ary in%ex

    = we nee% at least -3 B 8A for con#ersion

    >oc' 4echanism &re/ents a ne" databaseo&eration bein$ started an e,istin$ one has beencorrectly com&leted( When con/ersion is done*loc' is created atomatically and released only"hen con/ersion is sccessfl(

    learing of loc5s

    restart a%@ustment attempt is ma%e to continue con#ersion at the point of

    termination

    ancel a%@ustment loc5 entry is simply %elete% from ta&le

  • 7/26/2019 IBM ABAP-ok

    24/85

    Restart lo$ &ro$ress of each ste& of con/ersion isnoted in restart lo$*

    Ad;st strctres = A structure% a%@ustment is acti#ate% &y changing %ata&ase catalog

    = 9 structure% a%@ustment is acti#ate% &y con#erting ta&les

    Ty&e of /ersions

    = Mersions in ABAP "ictionary acti#e or partially acti#e / re#ise%

    = ;emporary #ersions

    = 'istorical #ersions

    Ty&e of stats

    = New newly create% , not acti#ate%

    = Acti#ate% acti#ate% #ersion of o&@ect use% &y other components %uring runtime

    = Partially acti#e not yet &een fully acti#ate%

    = 8e#ise% #ersion change% after acti#ation, &ut not yet re=acti#ate%

    = "eacti#ate% match co%e :% is not propose% for selection &y F4 help function

    5ersion 4ana$ement fnctions

    = anceling changes reset re#ise% #ersion to acti#e #ersion

    = toring changes acti#e #ersion will &e temporarily store% in #ersion

    = witching changes switch &etween acti#e an% re#ise% #ersions

  • 7/26/2019 IBM ABAP-ok

    25/85

    5ersion catalo$ list of all e,istin$ /ersions of anob;ect

    = 8e#ise% #ersion pro%uce% when we e%it an existing o&@ect

    = Acti#e #ersion pro%uce% when we acti#ate an o&@ect

    = ;emporary #ersion pro%uce% when we copy the acti#e #ersion temporarily to the

    %ata&ase with store #ersion functions

    = 'istorical #ersions create% when - orrection is create% . correction is release%

    #nction &ro/ided

    = "isplay ol% #ersions

    = 8etrie#ing historical or temporary #ersions

    = omparing #ersions in same system

    = omparing #ersions in %ifferent systems

    -fferin$ created locally on a&&lication ser/er*chan$es in bffer are loaded in lo$ table(

    +ynchroni6ation mechanism rns 87 : min9 lo$table is read and bffer contents chan$ed byother ser/ers are in/alid(

    +ynchroni6ation of all bffers in a&&lication ser/ersis by asynchronos &rocedre

    Tables that can be bffered trans&arent and &ooledtables

  • 7/26/2019 IBM ABAP-ok

    26/85

  • 7/26/2019 IBM ABAP-ok

    27/85

    Re&ository Information +ystem. % tool that ma'esdata stored in A-AP01 dictionary a/ailable(

    Fin% = search for o&@ects from a specific o&@ect class that meets certain search

    criteria

    Where=use% list+ =use% to %etermine the use of an o&@ect in other o&@ects

    ayers for %ata an% %ata %escriptions+

    External layer plane at which user sees an% interacts with the %ata

    ABAP/4 layer %ata formats use% &y ABAP/4 processor

    "ata&ase layer %ata formats use% in the %ata&ase

  • 7/26/2019 IBM ABAP-ok

    28/85

    Table s&aces and e,tents. %

    Table s&ace % &hysical stora$e area in the

    database("ata&ase %etermines in which ta&le space the ta&le is store% when it is create%

    in the %ata&ase

    ie category %escri&es the pro&a&le space re1uirement of the ta&le in the

    %ata&ase

    Trans&ort system. %

    Allo"s yo to trans&ort chan$es made to a&articlar de/elo&ment ob;ect(

    Allows transporting o&@ects from one AP sys to another

    Table &ool. % sed to combine se/eral lo$ical tablesin A-AP01 dictionary* created for each match codeob;ect(

    Table clsters. %

    Combine se/eral lo$ical tables in A-AP01

    dictionary( +e/eral lo$ical ro"s from differentclster tables are bro$ht to$ether in a sin$le&hysical record(

    9se% to store control %ata, temporary %ata or texts eg %ocumentation

    Wor' bench or$aniser. % &ro/ides assistance foror$ani6in$ de/elo&ment &ro;ects by allo"in$ yoto distribte &ro;ect "or' for indi/idalde/elo&ers or teams amon$ different chan$ere!ests(

  • 7/26/2019 IBM ABAP-ok

    29/85

    Re!est. % Ob;ects from the areas of cstomi6in$and A-AP01 de/elo&ment "or'bench aremana$ed and recorded in se&arate re!ests(

    Re!est o/er/ie". % When "e start the "or'benchor$ani6er* "e are &resented "ith a re!esto/er/ie" that sho"s all chan$e re!ests a/ailableand allo"s s to access se/eral le/els of detail*ri$ht do"n to the le/el of the ob;ect list itself(

    Tas'. % De/elo&ments* correction and re&airsrecorded in tas's(

    Chan$e re!est. % Tas's are trans&orted sin$chan$e re!ests(

    De/elo&ment class. % Indicates "hich area the ob;ectbelon$s to( 8+et of re&ository ob;ects* "hich aremtally different(9

    Prodction system. % De/elo&ment &ro;ects arecarried ot here(

    Trans&ort lo$. % 2nables yo to immediately find ot"hich ob;ects "ere trans&orted* by "hom and"hy(

    Trans&ort system. %)sed for mo/in$ ob;ects from+AP de/elo&ment system to &rodction system or

    bet"een different systems(

  • 7/26/2019 IBM ABAP-ok

    30/85

    +ystem ty&es. %

    De/elo&ment system 8de/elo&ment "or'9(

    uality assurance system+ = "e#elopment an% customiing settings are teste%here

    Pro%uction system+ = After successful testing, cust etting release% here

    ;raining or %emo systems+ = For presentation of complete% %e#elopments

    8elationship &etween system types

    pecial %e#elopment :ntegration onsoli%ation 8ecipient

    ystemystemystemystem

    ;ransports of ;ransporta&le Automatic

    $riginals change re1uests "eli#ery

    +&ecial de/elo&ment system. % sed for&ro$rammin$ critical &aths of de/elo&ment&ro;ects(

    Inte$ration system. % de/elo&in$ a&&lications andtestin$ systems(

    Consolidated 8&rodction9 system. % recei/estrans&orts from inte$ration system( It containsreleased /ersions(

    Reci&ient system. % recei/e trans&ortable chan$ere!ests as soon as they are im&ortedsccessflly into consolidation system(

  • 7/26/2019 IBM ABAP-ok

    31/85

    Trans&ort layer. % describes the trans&ort rote fordistribtin$ the de/elo&er class ob;ects amon$/arios systems in the $ro&( All de/elo&ment

    classes are distribted /ia same rote belon$ tosame trans&ort layer(

    Correction system. % &re/ents &arallel*ncoordinated chan$es to the same ob;ect* e/enif many co&ies of the ob;ects e,ists* connected by+AP system( It sa/es all chan$es to re&ositoryand cstomi6in$ ob;ects in ori$inal system on a/ersion database( It is acti/ated each time theser edits Re&ository ob;ect(

    Re!est cate$ory. %

    9; client=specific customiing

    D; AP 8epository an% customiing for all clients

    Re!est Ty&es. %

    ;ransport re1uest ist of o&@ects to &e transporte%

    8epair re1uest ist of change% o&@ects, which are not original

    ocal change re1uest ist of local o&@ects

    orrection re1uest ist of all change% original o&@ects

    $&@ect list ist of all transport o&@ects

    ustomiing re1uest ist of all change% client specific=customiing o&@ects

    Re!est sorce client. % Client in "hich re!ests andall assi$ned tas's are edited(

  • 7/26/2019 IBM ABAP-ok

    32/85

    Re!est tar$et client. % Client "here re!est isim&orted(

    Pri/ate ob;ect. % 2,em&t from the correction system(

    >ocal ob;ect. % 2,em&t from both correction andtrans&ort systems(

    Restrictions on trans&ort system. %

    annot o#erwrite, a%% to or %elete original o&@ects that are un%er repairs

    an transport to consoli%ation system only with transport type C

    an transport to recipient systems only from consoli%ation system to which

    recipient systems ha#e su&scri&e%

    Protectin$ a Trans&ort Re!est. % >oc' the ob;ectslisted in re!ests so &re/ents sers fromcorrectin$ it(

    Tas' Re!est +tats. %

    "$9EN; still e%iting a tas5 or re1uest an% ha#e not protecte% or release%

    yet 6not loc5e%7

    $CE" shows that you ha#e trie% to loc5 a tas5 or re1uest, &ut not all o&@ects

    are loc5e%

    $CE" A o&@ects in tas5 or transport layer=loc5e% successfully

    8EEAE" tas5 or re1uest release%

    $PEN release% &ut not yet transporte%

  • 7/26/2019 IBM ABAP-ok

    33/85

    Tables associated "ith CT+. %

    ;D; list of a#aila&le systems

    "EM ABAP/4 "e#elopment Wor5&ench transport layers

    ;WD consoli%ation routes for change re1uests

    ;AD recipient system

    4emory

    -+AP memory 8@lobal 4emory9. %

    is a/ailable to a ser drin$the entire dration of aterminal session( Its contentsare retained across transactionbondaries as "ell as e,ternaland internal sessions(

    .2,ternal session. % "hen ser

    lo$s on to R0< system* the

    system creates a ne" terminalsession called e,ternalsession( 2($( +ystem

    Create

    +ession(

    0Internal session. % created by

    callin$ a transaction 8"ithCA>> TRAN+ACTION9* a dialo$

    modle 8"ith CA>> DIA>O@9 ora re&ort 8"ith +)-4IT orR2T)RN9(

    4#or e,ternal session. % internal

    sessions are allo"ed(

  • 7/26/2019 IBM ABAP-ok

    34/85

    2Roll area. % Data areas of sed

    &ro$rams are created in rollareas for each internal

    session(3

    Postin$ data bet"een internalsessions. % 2PORT TO424ORY and I4PORT #RO4424ORY(

    4ain &ro$ram $ro&. % Created

    "hen e,&ortin$ an internal

    session(

    +brotine call. % When e,ternal

    sbrotine is called* systemloads the rele/ant &ro$ram andadds it to the &ro$ram $ro& ofcallin$ &ro$ram(

    -- Wor' areas. % -oth table common "or'areas "ith thesame name are created oncefor each &ro$ram $ro& andthen shared by all &ro$rams inthe $ro&(

  • 7/26/2019 IBM ABAP-ok

    35/85

    -.>ist system. % Consists of basic

    list and all details listbelon$in$ to basic list

    assi$ned to e,actly one screenle/el(

    -0)ser interface. % Only &ro$ram

    has its o"n ser interface(Internal sessions interface isinitially em&ty( +&ecial serinterface has to be acti/atedsin$ +2T P#%+TAT)+statement(

    -4A-AP01 memory. % Retained only

    drin$ the lifetime of ane,ternal session(

    -2Data clster. % @ro& of se/eral

    data ob;ects(

    -3Data ob;ects. % )nits of data*

    "hich a &ro$ram &rocesses atrntime(

    - What is ABAP?

    Ans += A%#ance% Business Application Programming is a 4thgeneration programming

    language create% &y AP for the interacti#e %e#elopment of application programs

    . What is ABAP/4 "e#elopment wor5&ench?

    Ans += An AP AE tool to %e#elop stan%ar% application software or your own

    application software that can process &oth ta&les an% your own ta&les

    0 "escri&e interacti#e reporting?

  • 7/26/2019 IBM ABAP-ok

    36/85

    Ans +=

    :nteracti#e reporting is a totally screen=orientate% e#aluation techni1ue

    From a highly aggregate% form the user can select %etaile% information for the

    re1uire% items using the menu an% function 5eys uch information coul%, for

    example, &e+

    = su&items of totals items

    = company shares

    = comparison #alues for user=%efine% comparison perio%s

    = stan%ar%iing an% consoli%ation entries

    4 What are the functions in the e%itor comman% line?

    Press F- or F4

    Examples inclu%e+

    :6nsert7=:nsert new lines at en% of text

    F:N" string =ultiple text search

    N6ext7string=$n/$ff text search

    86eplace7string - string . =8eplace tring - &y tring .

    : a&c :nsert tructure

    PP=all Pretty Printer

    EtcJ

    2 What are chain statements?

    Ans += A way to @oin together successi#e statements starting the same way

    Example+ W8:;E+/ UxyU, G, $9N;E8

    3 orrect the syntax+ %ata+ wfVname6.27 type ,

  • 7/26/2019 IBM ABAP-ok

    37/85

    wfVage607 type ,

    o#e myname to wfVname

    Answer+ %ata+ wfVname 6.27 type

    wfV age 607 type n

    mo#e UmynameU to wfVname

    What is program attri&utes type?

    Ans += Executa&le program, :N9"E program, o%ule pool, Function group,

    u&routine pool, :nterface pool, lass pool

  • 7/26/2019 IBM ABAP-ok

    38/85

    -- What functions %o the 9:NE an% C:P comman%s ser#e?

    Ans += 9:NE= 9:NE statement creates a line fee% first an% then %raws horiontal

    line

    C:P=generates a &lan5 line

    -. What are the %ata types within AP?

    Ans += P=Pac5e% num&er

    :=:nteger

    F=Floating point num&er

    N=Numeric text

    =;ext

    "="ate

    ;=;ime

    G='exa%ecimal

    -0 What purpose %oes :CE ser#ing?

    Ans += ;o %efine #aria&les that are similar to those you pre#iously %efine% or those

    that exist in the

    "ata "ictionary

    -4 What is the syntax of the $P9;E statement?

    Ans += $P9;E G!0" A T B 6$P9;E is optional7

    -2 'ow is the PA8AE;E8 statement %efine%? What %oes it %o?

    Ans += PA8AE;E8 + PA8- ;DPE P,

    PA8. "EFA9; UGU

    Allows a selection screen to appear for user=input when report is execute%

  • 7/26/2019 IBM ABAP-ok

    39/85

    -3 'ow %o the fiel%=sym&ol an% assign statements wor5 with each other?

    Ans += Fiel%=sym&ol statement inherits technical attri&utes of %ata o&@ects

    = Assign statement assigns attri&utes of :;AB to F

    - Name 0 ways to acti#ate the %e&ugger

    Ans += Mia menu na#igation

    et &rea5points in the program

    ;ype U/hU in the comman% fiel% when executing the program

    -

  • 7/26/2019 IBM ABAP-ok

    40/85

    = %able = "isplay the contents of internal ta&les

    -L What is the &asic format of the EE; statement?

    elect from where

    EG+EE; from ;ABNA

    W'E8E $9N;8D!0" U9AU

    'ow %o you limit the %ata retrie#e% &y a EE; statement?

    Ans += W'E8E clause

    Where an% where %o you use a goto comman%?

    Ans += NEME8

    Are the following logical expressions true or false?

    ; a7 #alue- ; #alue0

    ; &7 #alue0 I #alue-

    ; c7 #alue. &etween #alue- an% #alue 0

    F %7 #alue. E #alue-

    ; e7 #alue0 HI #alue-

    F f7 #alue0 UT2U

    ; g7 #alue. A U>AL*BU

    N$;E wil%car%s T,, X only wor5 with P

    What is the output of the following+

    *i#en ;ABA+

    ountry ity

    A NewDor5News

  • 7/26/2019 IBM ABAP-ok

    41/85

    A Kohannes#ille

    A artinarietta

    A 8oc5#ille

    B ittleton

    B rharles

    Ans += P8$*8A Program

    ;ABE+ ;ABA

    EE; F8$ ;ABA

    $N 'AN*E $F ;ABA=$9N;8D

    W8:;E+ /;ABA=$9N;8D, ;ABAV:;D

    EN"$N

    EN"EE;

    B ittleton

    What %o 'EC, EG:; %o in a program?

    = 'EC terminates the current loop or su&routine if logical expression is not

    fulfille%Y$utsi%e of a loop structure , su&se1uent statements in the current

    processing &loc5 are not execute% 6yntax 'EC FA* NE PAE7

    = EG:;=terminates the current loop or su&routineY outsi%e of a loop structure,

    su&se1uent statements in the current processing &loc5 are not execute%

    What is the %ifference &etween a fiel% string an% an internal ta&le?

    Ans += ;he %eclaration of an internal ta&le inclu%es an $98 parameter

    6the num&er of entries in the main storage roll area7

    fiel% string=correspon%s to one recor%

    internal ta&le=correspon%s to many recor%s

  • 7/26/2019 IBM ABAP-ok

    42/85

    ; or F+ o#e correspon%ing is an effecti#e way to mo#e fiel%s with li5e names

    from a "B ta&le recor% to an internal ta&le hea%er line?

    Ans += ;

    ; or F+ An appen% will a%% a recor% to a %ata&ase ta&le?

    Ans += 6F7Dou can only appen% to an internal ta&le

    What is the effect of an inclu%e structure statement?

    Ans += Allows you to 1uic5ly %eclare fiel% strings an% /or internal ta&les that are

    similar in structure to 8/0 8epository ;a&les %efine% in the "ata "ictionary

    ; or F+;he $E; statement will total up all P,:,F fiel%s in %ata&ase ta&le

    Ans += :f non=numeric entries in the hea%er line match those in the internal ta&le,

    $E; will a%% all numeric entries in the internal ta&le hea%er line to ta&le

    entries where match was foun% When no match is foun% the contents of the hea%er

    line is a%%e% to the en% of the ta&le as a new line

    ; or F+ ;he EE; statement allows the processing in internal ta&le

    Ans += 6F79se the $$P A; J EN"$$P instea%

    ; or F+ ;he $$P at comman% allows you to use the where clause

    Ans += 6;7 :f there is no ta&le entry satisfying the UwhereU logical expression ,the

    loop cannot &e execute% an% the system fiel% DV9B8 is set to a #alue not e1ual

    to ero :n any case the entire ta&le is rea%

    ; or F+ ;he rea% ta&le comman% using the 5ey clause is similar to the select single

    Ans += 6;7 Des in that they &oth return only one entry from ta&le But the 8EA" is

    associate% with an internal ta&le an% EE; is associate% with a %ata&ase ta&le

    'ow %oes the 8EA" with CED statement wor5?

    Ans += 8EA" ;ABE W:;' CED HUstringU or F:E"=NAEI

    ;he search argument is compare% character &y character with the start of the Uta&U

  • 7/26/2019 IBM ABAP-ok

    43/85

    internal ta&le lines an% returns one entry that matches

    What fiel% within the D ta&le contains the ta&le in%ex/

    Ans += ;he DV;AB:G system fiel% hol%s the in%ex #alue of the ta&le line which

    has &een place% in the hea%er line of an internal ta&le

    ; or F+ An internal ta&le can &e %elete%, mo%ifie%, or inserte% without the use of an

    in%ex?

    Ans += 6;7Within a $$P you can ma5e changes to an internal ta&le ;he line

    affecte% is always the current line :f you %onQt use the $$P comman% an in%ex

    must &e use% to change an% internal ta&le

    What %oes the EA8 an% 8EF8E' comman%s %o?

    Ans += EA8 + :nitialies the hea%er line

    8EF8E' + "eletes all ta&le lines Paging is release% %oes not clear the hea%er

    F8EE + "eletes all ta&le lines ,emory is release% %oes not clear the hea%er

    EA8 an% 8EF8E' are typically use% together

    Why woul% you use %escri&e ta&le comman%?

    Ans += ;o gather information a&out an internal ta&le 6ie $98 #alue ,:NE

    existing ta&le entries7

    What are the su&routines use% for?

    Ans += u&routines are use% in two %ifferent waysY

    -7 u&routines an% its call are in the same ABAP/4 program6internal call 7

    .7 ;he su&routine is an external program

    When shoul% you use an inclu%e #ersus a perform #ersus a function mo%ule?

    Ans += All are mo%ulariation techni1ues &ut typically the :N9"E is for %ata

    structures, the PE8F$8 is for ABAP/4 su&routines an% function mo%ules are for

  • 7/26/2019 IBM ABAP-ok

    44/85

    non=ABAP/4 su&routines

    What is the %ifference &etween internal an% external calls?

    Ans += :N;E8NA=within program

    EG;E8NA=outsi%e program

    Explain pass &y #alue, reference an% changing #alue?

    Ans += By Malue+When the su&routine is calle% ,the formal parameters are copies of

    the actual parameters6with their own storage location7

    By Malue an% 8esult + the formal parameters ha#e a separate storage location At the

    en% of su&routine the #alue of the formal parameter is passe% to the storage location

    of the actual parameter

    Assigne%

    By 8eference+ when calle% the formal parameters are not allocate% separate storage

    locations :nstea% the a%%ress of the actual parameter is passe% hanges to the

    #alues of the formal parameters therefore ha#e a %irect effect on the assigne% main

    program fiel%s

    What is the syntax of perform, inclu%e an% function mo%ules?

    Perform+

    PE8F$8 9:N*

    F$8 O;ABE

    9:N* MA9E 67 'AN*:N* MA9E 67

    :nclu%e+

    :N9"E

    Function mo%ules+

    A F9N;:$N Zfunction nameQ

    EGP$8;:N* J

  • 7/26/2019 IBM ABAP-ok

    45/85

    :P$8;:N* J

    'ow is %ata passe% to a function mo%ule?

    Ans += 9sing the EGP$8;:N* clause

    What are exceptions?

    Ans += ;he EGEP;:$N parameter is a section in the A F9N;:$N

    statement where exceptional situations can &e processe%

    'ow are they calle% an% han%le% in the co%e?

    A F9N;:$N Zfunction nameQ

    EGP$8;:N*J

    :P$8;:N*J

    EGEP;:$N N$;VF$9N" ! 0"-

    N$;VMA:" ! 0".

    $;'E8 ! 0"0

    AE D=9B8

    W'EN -

    W'EN .

    'ow can internal ta&les &e passe% to forms an% function mo%ules?

    Ans += :nternal ta&les are passe% &y reference in function mo%ules an% forms

    6For PE8F$8 F$8 statements use the ;ABE parameter7Mali% for ol%

    #ersion only

    What is glo&al Ms local %ata?

    Ans += ocal %ata %ata rele#ant only within a su&routine

    *lo&al %ata %ata rele#ant within the entire program

  • 7/26/2019 IBM ABAP-ok

    46/85

    What is ABAP wor5&ench?

    Ans += :ntegrate% graphical %e#elopment en#ironment of the 8/0 ystem

    ;he ABAP Wor5&ench allows you to %e#elop, maintain, an% manage client/ ser#er

    applications written in ABAP

    Dou can use the tools of the ABAP Wor5&ench to+

    [ Write ABAP co%e

    [ "esign screens

    [ reate user interfaces

    [ ;est applications for efficiency

    [ hec5 applications for errors

    [ 9se pre%efine% functions

    [ Access %e#elopment o&@ects

    [ Access %ata&ase information

    What are three the three categories of "A;A in the AP

    Ans +=

    [ aster "ata changes relati#ely rarely

    [ ;ransaction "ata 5ept for only a limite% time in the system together with any

    associate% in%ex ta&les

    [ ystem=specific "ata %ata, texts, ABAP/4 programs an% so on

    What are the ta&le types in AP?

    Ans += ;hree types +=

    [ ;ransparent ta&le += :n "": has one=to=one relationship with a ta&le in the

    %ata&ase For each ;; %efinition in the %ictionary, there is one associate% ta&le in

    %ata&ase with same no of fiel%s

  • 7/26/2019 IBM ABAP-ok

    47/85

    [ Poole% ta&le += :n 8/0 has many=to=one relationship in the %ata&ase ;he ta&le in

    %ata&ase has a %ifferent name an% fiel%s than the ta&les in "":

    [ luster ta&le += A cluster is similar to ta&le pool :t hol%s ta&les within it ;a&le

    clusters contain fewer ta&les than ta&le pools an% unli5e ta&le pools, the primary

    5ey of each ta&le within the ta&le cluster &egins with the same fiel% or fiel%s

    luster ta&le are com&ine% into a single row in the ta&le cluster &ase% on primary

    5ey

    What e#ent is execute% when ;A8; $F EE;:$N e#ent exits?

    Ans += ;he statement EN"=$F=EE;:$N is execute% ;his is %ifferent from

    ;$P statement, which terminates report processing all together

    'ow is the *E; A;E comman% utilie%?

    Ans + = :t occurs when all su&or%inate segments ha#e &een processe% an% &efore the

    system re1uests the next ta&le entry of the same ta&le 6hierarchy7

    'ow %o you use the ;$P comman%?

    Ans += ;he ;$P is specifie% within the processing &loc5 EN"=$F=EE;:$N,

    report processing is terminate% imme%iately an% the list is %isplaye%

    Explain the select=options statement

    Ans += :t generates a line on the selection screen, the first part of which contains a

    text, followe% &y a range for the input possi&ilities Parameter name specifie% in

    select options %efines as :nternal ta&le with same name ha#ing structure6selta&7 as

    follows +=

    ign,option,low,high yntex =

    EE;=$P;:$N F$8

    What is the syntax to %eclare %efault #alues?

    Ans + = EE;=$P;:$N

    Maria&leVname F$8 ta&leV element "EFA9; ZrangeQ ;$ ZrangeQ

  • 7/26/2019 IBM ABAP-ok

    48/85

    "oes EE; statement perform an authoriation chec5?

    Ans += EE; statement %oes not carry out any authoriation chec5s

    Why is it important to 5now this?

    Ans += ;o remin% the programmer that he/she shoul% %o this chec5s

    What are the attri&utes associate% with AP?

    Ans += AP= has the following attri&utes+

    -7 AP= syntax correspon%s to that of stan%ar% Qs

    .7 AP= is a su&set of stan%ar%

    07 AP= contains AP short forms

    ;he most important thing to remem&er a&out the EE; :N*E is?

    ;here are se#eral things to remem&er+

    -7 :t retrie#es only one row

    .7 :t %oes not nee% an EN"EE; statement

    07 ;'E F9 CED $F ;'E ;ABE 9; BE :N9"E" :N ;'E W'E8EA9E $F ;'E EE; ;A;EEN;

    'ow %o the BE;WEEN, :CE an% :N comparisons wor5?

    Ans += BE;WEEN AN" is inclusi#e

    :CE = string an% character wil% characters

    :N 6 , , JJ ,7

    an eta haracters &e use% in a where clause?

    Ans += eta characters are wil% characters , ie Z\Q, an% ZVQ Des they can &e use% in

    where clause

    ;echnical uestions from the B team 6*roup -7

  • 7/26/2019 IBM ABAP-ok

    49/85

    et -+

    - "irection for the use of #iew o&@ect within the program?

    Ans +=

    Miew o&@ect A #iew o&@ect is a #irtual ta&le tailore% to the nee%s of an application ;his all

    %irect access to specific %ataMiew o&@ect is use% in within an ABAP/4 program the same way a t

    is use% :f you ha#e create% a #iew o&@ect SM:EW , you can %isplay its contents using follow

    example program

    8EP$8; SEGAPE

    ;ABE+ SM:EW

    EE; F8$ SM:EW

    W8:;E+ / SM:EW

    EN"EE;

    . "irection for the use of chec5 &ox an% ra%io &uttons in screen painter?

    Ans +=

    reating 8a%io Button an% hec5 Boxes on the screen

    -7 *o to the full screen e%itor

    .7 Place an un%erscore at the point where you want to place the fiel%

    07 "efine the name of the fiel% using

    47 Place the cursor on the fiel% an% press

    27 ;hen press or %epen%ing on which graphic element you want

    37 ;hen you group relate% chec5 &oxes an% ra%io &oxes

    0 "ifference &etween 8a%io Buttons an% hec5 &oxes

    Ans +=

    8a%io &uttons force one an% only one entry to &e acti#e 6Malue ZGQ :nacti#e has #alue UU7 for e

  • 7/26/2019 IBM ABAP-ok

    50/85

    group &efore control is passes &ac5 to the program

    hec5 &oxes allow for any com&inations of entries on the screen

    4 When ta&le in %ata %ictionary is create% , the relationship &etween car%inality factor an% ta&le

    ar%inality?

    Ans += ;he following #alues are allowe% when inserting %ata+

    = - ;o - 6$ptional7

    N = - ;o 6$ptional7

    N = - ;o 6an%atory7

    : = - ;o - 6an%atory7

    "epen%ency factor+

    ;his %efines the foreign 5ey relationship when applying up%ates

    2 When an internal ta&le is create%, the settings criteria for the #alue of occurs?

    Ans += ;he o&@ecti#e of setting the #alue of an occurs for an internal ta&le is a 1uestio

    optimiation ;he following facts shoul% &e ta5en into account when ma5ing such %ecision

    -7 ;he complete %ata area of a program is 34>>> &ytes

    .7 ;he initial sie %eclare% is 5ept in roll area 61uic5er access to program7

    07 "ata entere% that excee%s the initial sie stores in the roll file 6lower access to program7

    Dou shoul% also analye the expecte% #olume an% access rates &efore ma5ing the %ecision

    3 When entering #alues on ta&le relate% with foreign 5ey using on=line program 6using insert7,

    chec5ing on possi&le entries on foreign 5ey is not carrie% out?

    Ans +=

    "irection for the use of area menu?

    Ans += Area menus are use% purely for the pathing to transactions ;hey contain the same informa

  • 7/26/2019 IBM ABAP-ok

    51/85

  • 7/26/2019 IBM ABAP-ok

    52/85

    &eginning of the %ialog step 68olle% in7

    &age area+ : &elie#e that the page area is a section of memory, which is the sie of --/> operat

    'or area+ ontains the graphical user interface elements for the %isplay an% entry of %ata

    !oll in+ When %ata is copie% from the role file to the roll area

    %echnical uestions from the *# team (+roup ,)

    Set -:

    - :t is possi&le to %elete %ata entere% with ABA/4 program in ta&le maintenance 'owe#er, %eletio

    %ata uploa%e% from A file in ta&le maintenance is not possi&le

    "efinitions+ : am not sure if : un%erstan% this 1uestion Are you as5ing if it is possi&le to %elete

    from a AP ta&le using information store% on a 9nix file or are you as5ing me if the contents

    AP file can &e %elete% &efore a 9nix file is loa%e%? : nee% more information to &e a&le to ans

    this 1uestion

    . ;he %ifference &etween two DN;AG :nsert ta&le name insert ta&le name, commit wor5

    ;he %ifference can &e %emonstrate% &y the examples &elow

    tart of Program :

    "ata&ase up%ate statements

    8un=time error occurs here

    En% of program -! .>

    /0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0-1

    tart of program .

    "ata&ase up%ate statements

    ommit wor5 statements !.>

    8un time error occurs here

  • 7/26/2019 IBM ABAP-ok

    53/85

    JJJJ!.>

    En% of program .!.>

    /0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0-1-1

    Program : will not up%ate the %ata&ase program . will

    Structured 2ogic

    - What is the %ifference &etween tructure :nternal ta&le?

    Ans +=

    = tructure exists in ABAP "ictionary an% programs &ut contains no %ata

    = :nternal ta&le exists only in program an% can contain %ata only at runtime

    4 all transaction mo%ule, gi#e syntax?

    Ans +=

    A ;8ANA;:$N OAN" C:P F:8; 8EEN O9:N*

    ;his statement sa#es the %ata of the calling program, an% starts transaction At the en% of the

    transaction, the system returns to the statement following the call in the calling report :f the EA

    statement occurs within the calle% transaction, the transaction en%s an% control returns to the

    program in which the call occurre%

    3 "efine Rhec5 R statements, how it wor5s?

    Ans += ;o terminate a single loop pass con%itionally, use the 'EC statement in the statement

    &loc5 of the loop

    :f the con%ition is not true, any remaining statements in the current statement &loc5 after the 'E

    statement are ignore%, an% the next loop pass starts can &e any logical expression

    < What is the %ifference when use fiel%s in hain, En% hain an% when use in u&routine?

  • 7/26/2019 IBM ABAP-ok

    54/85

    Ans +=

    L "ifference &etween Appen% an% ollect statement?

    Ans += Appen% statement always a%%s new line to :;AB from WA

    ollect += When the line is inserte%, the system chec5s whether there is alrea%y a ta&le entry

    matches the 5ey :f there is no correspon%ing entry alrea%y in the ta&le, the $E; statemen

    the same effect as inserting the new line :f an entry with the same 5ey alrea%y exists, the $E

    statement %oes not appen% a new line, &ut a%%s the contents of the numeric fiel%s in the wor5 are

    the contents of the numeric fiel%s in the existing entry

    -0 Explain Fiel% *roup6extract %ataset7?

    Ans +=

    An extract %ataset consists of a se1uence of recor%s ;hese recor%s may ha#e %ifferent structures

    recor%s with the same structure form a recor% type Dou must %efine each recor% type of an ext

    %ataset as a fiel% group, using the F:E"=*8$9P statement

    F:E"=*8$9P

    ;his statement %efines a fiel% group A fiel% group com&ines se#eral fiel%s un%er one name

    clarity, you shoul% %eclare your fiel% groups at the en% of the %eclaration part of your program

    A fiel% group %oes not reser#e storage space for the fiel%s, &ut contains pointers to existing fie

    When filling the extract %ataset with recor%s, these pointers %etermine the contents of the st

    recor%s

    -2 ;ransaction for enu painter?

    Ans += E4-

    -3 ;ransaction for creen painter? What is flow logic? Explain

    Ans += E2-

    Flow=ogic += o%e that processes a particular screen in the 8/0 ystem Flow logic statements

    syntactically similar to ABAP statements, &ut you cannot use flow logic 5eywor%s in ABAP

    Dou %efine flow logic in the flow logic e%itor of the creen Painter Flow logic comprises

  • 7/26/2019 IBM ABAP-ok

    55/85

    mo%ules+

    PB$ 6Process Before $utput7

    PA: 6Process After :nput7

    - ;ransaction for creation?

    Ans +=

    -< ;ransaction for ales $r%er 6 /"7 = reate, "isplay hange?

    Ans +=

    -L ;ransaction for "eli#ery hallan / "7 = reate, "isplay hange?

    Ans +=

    .- :f you want to run two programs , within one program how you run another program instea

    opening another session?

    Ans += 9B:; program

    .0 Example of neste% Relect R statement syntax?

    Ans +=

    . What is the %ifference &etween o#e assign statement?

    Ans +=

    3o4e+= ;o assign the #alue of a %ata o&@ect to a #aria&le , use the following statement+

    $ME ;$

    or the e1ui#alent statement

    !

    ;he contents of remain unchange% %oes not ha#e to &e a #aria&le = it can also &e a literal, a

    sym&ol, or a constant Dou must always specify %ecimal points with a perio% 67, regar%less of

    userQs personal settings

  • 7/26/2019 IBM ABAP-ok

    56/85

    ultiple #alue assignments in the form

    ! ! !

    Assign+= A:*N ;$

    When you assign the %ata o&@ect, the system chec5s whether the technical attri&utes of the

    o&@ect correspon% to any type specifications for the fiel% sym&ol ;he fiel% sym&ol a%opts

    generic attri&utes of that are not containe% in its own type specification Following the assignme

    points to in memory

    .< "escri&e RNew=PageR statement?

    Ans += ;he stan%ar% page hea%er consists of list an% column hea%ers ;o influence the representat

    of these in%i#i%ual components of the stan%ar% page hea%er, use NEW=PA*E statement+

    . What is B" an% 'ow you use it?

    Ans += Batche% "ata ommunication Batch input is an automatic proce%ure for the non=online

    transfer of %ata into the system B" is use% mainly to port %ata from legacy system to New sys

    9sing file access comman% li5e $PEN "A;AE;, 8EA" "A;AE; We populate the %ata

    %ata&ase ta&les ;his can &e run as a &atch @o& using B" AP strongly recommen%s that you

    same screen flow to populate a ta&le &ecause that way referential integrity an% a%%itional chec5

    %one properly9ser %ialog is simulate%

    0 What is "ataset an% 'ow you use it?

    Ans + = "ataset is %ata containe% in a file in A ;o open operating system file you use $P

    "A;AE; function F$8 $9;P9; or :NP9; or Appen% o%e

    4 What is a #ariant an% Where %o you use this?

    Ans += Mariant contains parameters for a program Dou can run a program either using #arian

    %irectly :f you run %irectly you ha#e to enter all the parameters an% if you use #ariants you %o

    nee% to enter parameters Dou can ha#e many #ariants for a program

    3 What is Fiel% ym&ol?

    Fiel% ym&ol are #aria&les ain a%#antage of the Fiel% ym&ol is you %o not ha#e to %efine fiel

  • 7/26/2019 IBM ABAP-ok

    57/85

    ;ype it can &e of any type an% any length %epen%ing on the fiel% you assign at the runtime

    Ex F:E"VDB$

    A:*N FA: = NAE: ;$

    What is enu painter? An% 'ow %o use it in your application?

    Ans += enu painter is tool to create enus, Push Buttons assignments an% from creens "uring

    time you can assign any menu status to a screen

    Dou assign a four=character function co%e for each function an% you use $C=$"E to i%en

    which function nee% to &e run Dou write co%e in PA: mo%ule for each function

    = uccess, 4 = failure

    ;hese are the ystem Fiel%s, you use this to generate a list

    D=;itle

    D=pagct

    D=rows

    D=scols

    ;hese are use% for interacti#e reporting

    D=urow

    D=9$

    L What is ogical %ata&ase an% Explain a&out *E; an% P9; mo%ules?

    Ans += Faster Way of executing for selecting recor%s

    ogical %ata&ase is not a physical %ata&ase :t is logical %ata&ase structure of ta&les where

    specify the relationship &etween a set of relate% ta&les E#ery logical %ata&ase has root ta&le c

  • 7/26/2019 IBM ABAP-ok

    58/85

    no%es :f you want to use *E; ta&le comman% in your program you nee% to %eclare that rel

    structure as a logical %ata&ase $nce you specify the structure you set EE;=$P;:$N an%

    "ata&ase Program an% mo%ify the co%e for P9; Forms ;his P9; forms are execute% whene#er

    use *E; function in the co%e

    -. What is creen Painter? An% 'ow %o you write a script for comman% Button?

    Ans += creen Painter is a tool to create a screens which can ha#e 9ser :nput fiel%s, omm

    &uttons, Frames, 8a%io Buttons, om&o &oxes, an% hec5 &oxes Cey point here is you nee

    specify $C=$"E 6you can gi#e any name &ut normally you use $C=$"E7 For $C function

    you %eclare same #aria&le in o%ule Pool also :n PA: mo%ule using ase statements to %eterm

    which 5ey was presse%

    AE $C=$"E

    W'EN "EE

    $"9E "elete V Function

    R=O Consltin$

    0 ':"E tatement, how it wor5s?

    Ans += "etail lists allow you to present more information than is containe% in the &asic list ;he can, for example, select a line of the &asic list for which he or she wants to see more %eta

    information Dou then %isplay the extra information in a %etail list

    ;his metho% re1uires that you ha#e pre#iously store% the contents of the selecte% line within

    program

    ;o %o this, you use the ABAP statement ':"E, which sa#es the fiel% contents for the current

    When you start a %etail list for a list line that has ':"E fiel%s, the system places their #alues into

    correspon%ing #aria&les in the program

    :n the program co%e, insert the ':"E statement %irectly after the W8:;E statement for the cur

    line

    ':"E+ WA=$NN:", WA=A88:"

    4 "efine 8AN*E statements, why you use in ABAP/4 programming?

  • 7/26/2019 IBM ABAP-ok

    59/85

    Ans += :n a%%ition to selection ta&les that you create using EE;=$P;:$N, you can use the

    8AN*E statement to create internal ta&les that ha#e the structure of selection ta&les Dou can u

    these ta&les with certain restrictions the same way you use actual selection ta&les

    3 What 5in% of ;ransaction %i% you use? Where %i% you use? Why %i% you use?

    Ans += E0< ABAP E%itor

    E-3 "ata %ictionary

    What are the comman%s, which can &e use% only in screen, flow logic &ut not in ABAP?

    Ans +=

    'ow %i% you %o pricing? 6inclu%ing menu flow 7 a&out policy

    ;a&le ====I 6ustomer/aterial 7 ======I Access e1uence 6price ustomer %iscount aterial 7

    ======I on%ition type ======I Pricing Proce%ure

    ==========I proce%ure %etermination

    " config =====I Functions ======I Pricing =======I ontrol "ata =====I

    En#ironment =====I reate ta&les

    - aintain con%ition ta&les of fiel%s that can &e use% as

    on%itions to chec5 for in pricing

    ;here is a fixe% list of fiel%s that can &e chec5e%

  • 7/26/2019 IBM ABAP-ok

    60/85

    -- What %i% you %o in payroll?

    Ans +=

    -. What %i% you %o in customiing $rg structure?

    Ans += et up ompany group, company co%e, controlling area, &usiness Area, cre%it control a

    financial management area, plants, storage $rganiation, %istri&ution channel, %i#ision , ship

    Points, loa%ing points, plant sections, person groups, person su&groups, an% Payroll su&units

    mappe% them

    -0 What %i% you %o in Account Assignment in material management? An% also a&out #aluation clas

    Ans +=

    -4 What are num&er ranges? 'ow %i% you assign?

    Ans +=

    -2 What %i% you %o in ;ime "ata?

    Ans +=

    -3 What are infotypes? 'ow %i% you use it? "o you remem&er any info types you use%?

    Ans += :n '8 mo%ule ta&les are calles :nfotypes which contains %ata for employees an% applicant

    :nfotypes use% +=

    >>>. ! Personal %ata

    >>>3 ! A%%ress

    - What type of materials %i% you use?

    Ans +=

    8$' 8aw material

    'AWA ;ra%ing

    FE8; Finishe% goo%s

  • 7/26/2019 IBM ABAP-ok

    61/85

    P8$" Pro%uct *roup

    WE;; ompetiti#e pro%uct

    -

  • 7/26/2019 IBM ABAP-ok

    62/85

    *; aterial %ata for storage type

    MFM :n#oices in sales "istri&ution

    MB8C Billing + 'ea%er "ata

    MB9C ales "ocument + 'ea%er tatus an% A%ministrati#e "

    MBPA ales "ocument + Partner

    MB8P Billing + :tem "ata

    MBFA ales "ocument Flow

    MBFAM* " "ocument + Flow 8ecor%s

    MBPAP$ :tem Partner in " "ocument

    C$NM on%itions 6Proce%ure "ata7

    -L 'ow %o you create logical %ata&ase? enu e1uence also

    Ans +=

    AE "e#elopment Wor5 Bench $ther $&@ect E":; ogical "ata&ases

    $8

    AE "e#elopment Program aintenance ABAP "e#elopment 9tilities

    "e#elopment / ;est ogical "ata&ases

    .> 'ierarchy of "ata "ictionary?

    Ans += ;a&les =I Fiel%s =I "ata elements =I "omains

    .- What is the %ifference &etween "ata elements an% "omain?

    Ans+ = A domain(+eneric data types)%escri&es the technical attri&utes of a fiel%, such as the

    type or the num&er of positions in a fiel% ;he %omain %efines primarily a #alue r

    %escri&ing the #ali% %ata #alues for the fiel%s referring

    ;o this %omain

  • 7/26/2019 IBM ABAP-ok

    63/85

    0ata elements(Specific data types) A %ata element is an elementary type :t %escri&es

    type attri&utes 6%ata type, fiel% length an% possi&ly the num&er of %ecimal places7 an% sc

    information 6explanatory text or fiel% help7 a&out unstructure% %ata o&@ects 6ta&le fiel%s

    structure fiel%s or #aria&les7

    ;a&le fiel%s an% structure fiel%s with the same contents shoul% refer to the same %ata elem

    ;his ensures that the attri&utes of these fiel%s are always consistent

    A %ata element can &e reference% in ABAP programs with ;DPE ;his permits you to %e

    #aria&les that ta5e on the type attri&utes of the %ata element in an ABAP program

    .. 'ow the ta&les in logical %ata&ases are relate% to each other?

    Ans += " are relate% to each other &y FC relationship to form a hierarchy

    .0 What are the %ifferent relations &etween two entities?

    $ne=$ne, $ne=any an% any=any

    :t is also calle% as car%inality

    N >,-,ore

    >, -

    N - or ore

    - -

    .4 What is 0=tier architecture? What %oes that mi%%le layer %o?

    P ===== A ===== "B

    = Application ser#er is a set of executa&les that collecti#ely interpret the ABAP/4 programs

    manage the input output for them

    .2 What %i% you %o in shipping? A&out the process?

    Ans+ = hipping on%itions are %efine% in ustomer aster 6;a&le CNA- 6*eneral "ata77

    ;ransportation groups are %efine% in aterial aster 6;a&le A8A 6*eneral "ata77

    All #ali% leg com&os must &e configure% in the system 6A leg is the lin5 &etween a starting

  • 7/26/2019 IBM ABAP-ok

    64/85

    a finishing point7

    ;he shipping point is %efine% for each or%er item

    ;he route groups legs together

    hipping "eli#ery $r%er 6create an% sa#e7 Pic5ing transfer or%ers 6create confir

    .3 What are the %ifferent sections in Functions?

    Ans += :P$8;:N*, EGP$8;:N* an% EGEP;:$N

    . :n your experience programming ABAP/4, What gui%elines %o you follow as &est practices?

    Ans+ = a7 tore %ata in internal ta&les to re%uce %uplicate processing

    &7 opy an existing process an% changes it

    c7 Follow prescri&e% naming con#entions for programs

    %7 9se an inclu%e statement 6S:9>>>-7 from the main %ocumentation &loc5

    e7 For %escri&ing the content of the program, such as %ate, program author, purpose, lis

    parameters an% specifies, list AP ta&les use%, an% list external input/output, ta&les/files

    use%

    .

  • 7/26/2019 IBM ABAP-ok

    65/85

    EG:;

    F$8JEN"F$8

    :FEEEN"$$P

    EAME

    $$PEN"$$P

    $"9EEN"$"9E

    $N 'AN*E $FEN"$N

    PE8F$8J9:N*

    EE;JEN"EE;

    ;$P

    W':EJEN"W':E

    .L 'a#e you e#er %one any transaction program/%e#elopment using ABAP/4, screen painter, an% m

    painter? :f so, %escri&e the steps or techni1ue use% to %e#elop transactions?

    Ans+ = ;he following list outlines the general steps that shoul% &e followe% when %e#eloping a

    AP 8/0 transaction : %o not ha#e to &e performe% specifically to this se1uence, &ut t

    topics/steps shoul% &e performe%

    - Preliminary wor5+ "esign the transaction, specify the transaction co%e in the system an% enter

    transaction attri&utes

    . "efine glo&al %ata in the %ata %ictionary "etermine which %omains, %ata elements, an% ta&les

    want to use

    0 reate an ABAP/4 mo%ule pool reate a mo%ule pool for the transaction an% assign a nameattri&utes accor%ing to the customer naming con#entions

    4 "efine screens 6creen Painter7+ Paint your screens, that %efines the positions an% texts o

    fiel%s on the screen an% assign appropriate names :n %oing this, you point the "ata "ictio

    fiel%s you ha#e %efine% in the "ata "ictionary, "efine the attri&utes of all screens

  • 7/26/2019 IBM ABAP-ok

    66/85

    2 "efine menus, win%ows, an% function 5eys 6enu Painter7+ "efine the interface for

    transaction with menus, pop=up win%ows an% function 5eys for each in%i#i%ual screen As

    function co%e to each function that the user can execute

    3 "efine screen flow logic

    Program the in%i#i%ual mo%ules+ Write the %etaile% processing logic, program an% mo%ules ca

    in the screen flow logic, pass the %ata &etween the mo%ule pool an% AP memory, proces

    function co%es from the interface an% process the reports

    'a#e you e#er create% a user=%efine% %ata&ase in AP/80? :f so how %i% you go a&out a%%ing a u

    %efine% %ata&ase to the system?

    Ans +=

    ;o a%% a user=%efine% %ata&ase to the system, the following steps are re1uire%

    -7 "efine the structure in the %ata %ictionary

    A *o to the "ata %ictionary aintenance screen Fill in the name of the %ata&ase you are %efin

    B "efine the %ata&ase structure

    ;o %o this, select the o&@ect class ta&les for e%iting :n the resulting screen, fill in the neces

    information a&out the %ata&ase

    Pro#i%e the %ata&ase fiel%s *o to the fiel%Qs screen so those new fiel%s can &e entere% into

    system Dou must atleast enter AN";, 8E:", 8;F", 8;F., 9;8 an% 9

    When you ha#e entere% all the re1uire% fiel%s sa#e the recor% structure

    " Acti#e the ta&le ;he ta&le is now %efine% in the "ata "ictionary an% 5nown to the syste

    large

  • 7/26/2019 IBM ABAP-ok

    67/85

    A%% the %ata&ase to the system &y going to the "ata&ase reate screen

    ;here select processing metho% of in =line, so that the %ata&ase has &een create%, you can now cr

    %ata&ase clusters with the EGP$8; comman% or access the %ata&ase recor%s using

    0- "escri&e the &asic framewor5 of an ABAP/4 program?

    Ans += ;he &asic structure of an ABAP/4 program is as follows+

    8EP$8; reportVname

    "A;A + page&rea5 6-.7 ;DPE ,

    "A;A + title 6->7 ;DPE ,

    ;ABE+ AB, "EF, GDS

    PA8AE;E8+ AB="

    F:E"=*8$9P+

    F:E"=DB$

    ! F

    :NE8;

    :N:;:A:A;:$N

    :N9"E A">>>-

    ;A8;=$F=EE;:$N

    all to extract %ata from the %ata&ase are performe% here

    EN"=$F EE;:$N

    ;$P=$F=PA*E

    EN"=$F=PA*E

    F$8 FormVName

    EN"F$8

  • 7/26/2019 IBM ABAP-ok

    68/85

    0. What are the functional mo%ules you ha#e strong &ac5groun%?

    Ans += F:, $

    00 What is the %ifference &etween a step=loop using internal ta&le an% a transparent ta&le?

    Ans +=

    +ection A

    Please circle ;6rue7 or F6alse7 for each of the following 1uestions+=

    o#e orrespon%ing is an effecti#e way to mo#e fiel%s with li5e names from a "B ta&le recor%

    to an internal ta&le hea%er line 6; / F7 ;

    An appen% will a%% a recor% to a %ata&ase ta&le 6; / F7 F

    ;he $E; statement will total up all P, : an% F fiel%s in a %ata&ase ta&le 6; / F7 F

    ;he EE; statement allows processing of an internal ta&le 6; / F7 F

    ;he oop at comman% allows you to use the W'E8E clause 6; / F7 ;

    An internal ta&le can &e %elete% o%ifie%, or inserte% without the use of in%ex 6; / F7;

    ;he EE; comman% performs its own authoriation chec5 6; / F7F

    ;he W'E8E clause in the EE; :N*E comman% is optional 6; / F7F

    When using the *E; an% E; PA8AE;E8 :" comman% the memory i% must &e %efine% to the

    "ata "ictionary? F

    ;he E; PA8AE;E8 comman%Qs function is to create a storage location in memory an%

    retrie#e its contents?;

    Section *

    ;here is only 6-7 correct answer for each of the following 1uestions Please circle the letter, which y

    thin5 correspon%s to the correct answer

    A Z:CEQ statement is use% to+

  • 7/26/2019 IBM ABAP-ok

    69/85

    6a7 o#e similar fiel%s &etween the hea%er areas of internal ta&les

    6&7 et %eclare% %ata fiel%s to the same characteristics as a %ifferent %ata fiel%

    6c7 Assign a %efault #alue to a parameter

    6%7 Pass parameters to a su&routine

    Ans += &

    All are examples of AP e#ents except+

    6a7 tart of election

    6&7 En% of election

    6c7 ;op of Page

    6%7 New Page

    Ans += %

    ;he &est %efinition of the ABAP4 wor5&ench is+

    6a7 A metho% of fin%ing fiel%s within the %ata %ictionary

    6&7 A metho% of na#igating &etween AP o&@ects an% a metho% of esta&lishing a hierarchy&etween relate% AP o&@ects

    6c7 A screen that contains the attri&utes for screens, programs, transactions, etc

    6%7 An easy way of creating o&@ects in AP

    Ans += &

    Which is correct for rea%ing an entire ta&le, "B;AB, into an internal ta&le, :;AB, structure that

    was pre#iously %efine%?

    6a7 EE; F8$ "B;AB :N;$ :;AB

    6&7 EE; :N*E F8$ "B;AB :N;$ ;ABE :;AB

    6c7 EE; F8$ "B;AB :N;$ ;ABE :;AB

  • 7/26/2019 IBM ABAP-ok

    70/85

    6%7 8EA" "B;AB :N;$ ;ABE :;AB

    Ans += c

    Which is an example of Zpassing &y referenceQ?

    6a7 PE8F$8 'ECVF:E" 9:N* F- F. F0

    F$8 'ECVF:E" 9:N* MA9E F- MA9E F. MA9E F0

    6&7 PE8F$8 'ECVF:E" 9:N* F- F. F0

    F$8 'ECVF:E" 9:N* MA9E F- MA9E F. F0

    6c7 PE8F$8 'ECVF:E" 9:N* F- F. 'AN*:N* F0

    F$8 'ECVF:E" 9:N* MA9E F- MA9E F. 'AN*:N* F0

    Ans += c

    A Z$ME=$88EP$N":N*Q comman%+

    6a7 o#es all %ata from an internal ta&le into a %ata&ase ta&le

    6&7 o#es all li5e name% fiel%s from one fiel% string to another

    6c7 A%%s all numeric fiel%s in a totals column

    6%7 Allows you to %eclare an internal ta&le to ha#e the same structure as %ata&ase ta&le

    Ans += &

    A ten &yte long character fiel%, W=9;N9, woul% &e %eclare% as+

    6a7 WV9;N9 ;DPE

    6&7 "A;A WV9;N9 :CE PAN=;:":

    6c7 "A;A WV9;N9 6->7 ;DPE 'A8

    6%7 "A;A WV9;N9 6->7 ;DPE

    Ans += %

    Each recor% within a %ata&ase ta&le is specifie% &y+

  • 7/26/2019 IBM ABAP-ok

    71/85

    6a7 A specific in%ex num&er or D=;AB:G

    6&7 A uni1ue 5ey structure which can &e same for multiple recor%s within the ta&le

    6c7 $ne fiel%, Cnown as the 5ey fiel%, that is specifie% to each recor%

    6%7 A uni1ue 5ey structure which consists of any num&er of fiel%s an% must &e uni1ue for each

    recor% within the %ata&ase

    Ans += %

    ;o set an initial #alue in the parameter, 9;N$, what wor% is re1uire% in the following

    statement to complete the syntax+ PA8AE;E8+ 9;N$6->7 ;DPE

    VVVVVVVVVVVVQ>>>>--->>

    6a7 Malue

    6&7 "efault

    6c7 :nitial

    6%7 i5e

    Ans += a

    Which of the following %oes not ha#e an EN" associate% with it?

    6a7 $$P

    6&7 "$

    6c7 *E;

    6%7 EE;

    Ansc += c

    --.0 Which is the &est example of a foreign 5ey?

    6a7 "ata element

  • 7/26/2019 IBM ABAP-ok

    72/85

    6&7 "omain

    6c7 A ZMA9EQ statement within the PA: mo%ule of the flow logic

    6%7 A chec5 ta&le

    Ans += %

    -. An on=line program consists of+

    6a7 Flow ogic, a screen, an% an ABAP program mo%ule pool

    6&7 A creen, an ABAP program mo%ule pool, an% a transaction

    6c7 Flow logic, screen an% a PA: e#ent

    Ans += &

    -0.4 PB$Qs+

    6a7 Are e#ents performe% in the screen after the user has entere% some %ata?

    6&7 :s a mo%ule pool for an on=line screen?

    6c7 :s an on=line e#ent?

    6%7 ontains all logic for error messaging

    -4.2 All of the following are examples of automatic screen fiel% chec5s except for+

    6a7 "ata formatting

    6&7 hec5 ta&les

    6c7 Malues ta&le

    6%7 ZMA9EQ statement in the PA: of the flow logic

    -2.3 A Z$:; W$8CQ comman%+

    6a7 8ea%s in a logical %ata&ase

    6&7 loses a logical unit of wor5 an% confirms the changes in the %ata&ase

    6c7 ancels a logical unit of wor5 an% rolls &ac5 all changes ma%e with the

  • 7/26/2019 IBM ABAP-ok

    73/85

    9P"A;E

    6%7 :s automatically performs at each Z9P"A;E %&ta&Q comman% line

    Ans += &

    -3 ;he following is an example of a call Zwithout returnQ+

    6a7 A ;8ANA;:$N ZMA$-Q

    6&7 9B:; ZAPM42AQ

    6c7 A 8EEN >>L

    Pro#i%e short answers for each of the following 1uestions in the space pro#i%e%+=

    - Why woul% you use the "E8:BE ta&le comman%?

    Ans += ;o fin% out no if entries in :;AB an% to fin% the #alue of occurs

    . 0. What are the 0 categories of "A;A in the AP system?

    0 04 What ABAP/4 comman% is use% to process a logical %ata&ase?

    Ans += *E;

    4 02 At what . points in the ABAP co%e can the ;$P comman% &ranch to?

    Ans += :f you use the ;$P statement within an e#ent &loc5, the system stops

    processing the &loc5 imme%iately -

    2 03 What is the %ifference &etween the templates Z\Q an% ZVQ %uring string comparison?

    3 0 Where is the processing logic locate% in an on=line program?

    Ans += PB$,PA:

    0< "escri&e the on=line processor What is its function?

  • 7/26/2019 IBM ABAP-ok

    74/85

    -> What are the steps in creating a screen?

    -- Where are the mo%ule statements %eclare%? Where is the logic within each mo%ule?

    -. What is the significance of the wor% Z$9;P9;Q in the %eclaration

    $"9E ;E;VCN$WE"*E $9;P9;

    =

    =

    EN"$"9E

    -0 "escri&e the fiel%s on the screen attri&utes screen creen types, follow up screens,

    cursor position, etc

    -4 What is gaine% &y using the "ictionary Fiel%s menu option when creating your

    screen?

    -2 'ow %o you assign an $CV$"E for a push &utton? 'ow is it use% in your ABAP?

    -3 What are the two effects of a foreign 5ey from a user stan%point?

    Ans += Foreign 5eys are use% to chec5 input on screens, an% to %efine the

    relationships netween the ta&les in a #iew, matchco%e o&@ect, or loc5 o&@ect

    - What are user %efine% #ali%ation chec5s in the flow logic?

    -

  • 7/26/2019 IBM ABAP-ok

    75/85

    Ans +=

    .. What effect %oes the F:E" statement ha#e within the flow logic?

    .0 :s the E; PA8AE;E8 statement to &e issue% in the PB$ or the PA: mo%ule?

    Why?

    .4 Where %oes the *E; PA8AE;E8 statement get its #alues? Which fiel% gets

    populate% with the new #alue?

    .2 Where can the E; 98$8 comman% &e execute%? What is its effect?

    .3 What are matchco%es an% how %o they effect a screen fiel%? Where are they

    specifie% in the on=line program?

    . What is the effect of an $N 'A:N=8E9E; comman% in your flowlogic?

    .

  • 7/26/2019 IBM ABAP-ok

    76/85

    6&7 A creen, an ABAP program mo%ule pool, an% a transaction

    6c7 Flow logic, screen an% a PA: e#ent

    Ans += &

    -0.4 PB$Qs+

    6a7 Are e#ents performe% in the screen after the user has entere% some %ata?

    6&7 :s a mo%ule pool for an on=line screen?

    6c7 :s an on=line e#ent?

    6%7 ontains all logic for error messaging

    -4.2 All of the following are examples of automatic screen fiel% chec5s except for+

    6a7 "ata formatting

    6&7 hec5 ta&les

    6c7 Malues ta&le

    6%7 ZMA9EQ statement in the PA: of the flow logic

    -2.3 A Z$:; W$8CQ comman%+

    6a7 8ea%s in a logical %ata&ase

    6&7 loses a logical unit of wor5 an% confirms the changes in the %ata&ase

    6c7 ancels a logical unit of wor5 an% rolls &ac5 all changes ma%e with the

    9P"A;E

    6%7 :s automatically performs at each Z9P"A;E %&ta&Q comman% line

    Ans += &

    -3 ;he following is an example of a call Zwithout returnQ+

    6a7 A ;8ANA;:$N ZMA$-Q

    6&7 9B:; ZAPM42AQ

  • 7/26/2019 IBM ABAP-ok

    77/85

  • 7/26/2019 IBM ABAP-ok

    78/85

    =

    EN"$"9E

    -0 "escri&e the fiel%s on the screen attri&utes screen creen types, follow up screens,

    cursor position, etc

    -4 What is gaine% &y using the "ictionary Fiel%s menu option when creating your

    screen?

    -2 'ow %o you assign an $CV$"E for a push &utton? 'ow is it use% in your ABAP?

    -3 What are the two effects of a foreign 5ey from a user stan%point?

    Ans += Foreign 5eys are use% to chec5 input on screens, an% to %efine the

    relationships netween the ta&les in a #iew, matchco%e o&@ect, or loc5 o&@ect

    - What are user %efine% #ali%ation chec5s in the flow logic?

    -

  • 7/26/2019 IBM ABAP-ok

    79/85

    .3 What are matchco%es an% how %o they effect a screen fiel%? Where are they

    specifie% in the on=line program?

    . What is the effect of an $N 'A:N=8E9E; comman% in your flowlogic?

    .

  • 7/26/2019 IBM ABAP-ok

    80/85

    8EENQ?

    What function is performe% &y the ZE; 8EEN >Q comman%?

    Where must you place the ZE; PF=;A;9Q omman% in your on=line program?

    Why it is a goo% i%ea to clear the o5Vco%e after %eci%ing which action to ta5e?

    'ow %o you specify that a function is an exit type comman%?

    What are screen groups?

    What is the correct syntax for %ynamically mo%ifying a large num&er of screen

    fiel%s?

    What is the purpose of the $":FD comman% when performing %ynamic screen

    mo%ifications?

    Marious E#ent for a screen?

    Ans += lic5ing Push Button, Function Cey, enu $ption

    'ow %o you run a report for a row in ta&le?

    Ans += 9sing *raphics ultiplexer ;here is an option some thing similar to screen

    capture which captures %ata only 9sing that %ata you can %raw graphs 60" an% ."7

    ;his option is a#aila&le all the time from enu] =I *enerate *raphics which

    captures the %ata then you nee% to %rag an% select the %ata you want to %raw a graph

    on $nce you select you can clic5 on *raphics, which launches graphics multiplexer

    What are user Exits an% transactions?

    Ans += *enerally, user exits are the forms %efine% within AP stan%ar% co%e 6usually

    starting with user exit7 ;hese pre%efine% areas in the co%e allow programmers to

    insert custom %efine% co%e into the stan%ar