This is ABAP Beginner GUID with all Code and in detailsFull description
resume
ABAP AccentureDescrição completa
EXERCISES INTERNAL TABLES and REPORTS 1 Create an internal table taking all the fields from BP! and dis"la# fields Com"an# $ode% &o$'ment n'mber% &o$'ment t#"e and date of do$'ment( ) Create an internal table taking fields* Com"an# $ode% &o$'ment n 'mber 'mber%% A$$o'nt A$$o'nt t#"e and Ta Ta+ + $ode from table BSE, and dis"la# the same -ith $ol'mn headings( . Create an internal table -ith follo-ing fields/ Sales &o$'ment and 0aterial from table BAP( &ate% Name of the 'ser and sales do$'ment t#"e from table BA and Pri$e gro'" and $'stomer gro'" from table B&( Sort the table a$$ording to 0aterial n'mber and dis"la# the $ontents( 2 Create an internal table $alled T3BSIS ha4ing a similar str'$t're as table BSIS( E+"lore all "ossible methods to $reate the internal table -ith header line 5 -itho't header line( 6'se data t#"es% data 7 begin of 7(end of% data 7( data 7( In$l'de str'$t're 7 et$(8 Also $reate a field string !3BSIS( Po"'late the internal $ode and dis"la# $ontents of BSIS( Sort the table a$$ording to $om"an# $ode and dis"la# $ontents( 9 &etermine for ea$h material t#"e 60TA 60TART8 RT8 the 9 table entries -ith the highest gross -eight 6as a ranked list8( To do this% read the table 0ARA and store the material t#"e 60TART8% 60TART8% material n'mber 60ATNR8% 'nit of meas're 60EINS8 and gross -eight 6BR,E:8 into an internal table( Allo- the 'ser to s"e$if# the 0aterial t#"e as a "arameter on the sele$tion s$reen( ; Create a list of the ma+im'm n'mber of a4ailable seats for ea$h $arrier $arrier(( To To do this% read the table S!LI,
= Read the table S!LI,'al to L<( Read the internal table -ith entr# -ith the ke# CARRI& ? L< and CONNI& ? @2@@% m'lti"l# the "ri$e b# . and -rite the modified entr# ba$k to the internal table( Then O't"'t the internal table(
Read table TABNA TABNA into internal table and o't"'t the fields Co'ntr#% Id% Name1% and Sales( Sort the table -ith Co'ntr#( &elete all internal table lines -ith sales lo-er than 9@%@@@( Read internal table -ith ke# ,B* and @@@@@@@.* and m'lti"l# the sales b# . and $hange table entr#( Insert an# one re$ord of #o'r $hoi$e( !ind o't ho- man# lines are there in the internal table( Remo4e all the $ontents of the table( &eallo$ate the memor# asso$iated -ith table(
D se tables L!A L!A1% 1% L!B1 and L!01( &efine an internal table -ith the follo-ing/ Lifnr like Lfa1lifnr% B'krs like Lfb1b'krs% Ekorg like Lfm1ekorg( Add data from these table into the internal tables( Sort the internal table Lifnr( Read the internal table -ith Lifnr ? A9* and $hange name to trainee( P't ba$k the re$ord into the table( &elete first three re$ords of internal table( Clear header for internal table ea$h time #o' a$$ess a re$ord(
1@ Create a re"ort% -hi$h -ill gi4e th e e+isting sto$k for a material( The re"ort sho'ld h a4e s'btotal of the sto$k for ea$h storage lo$ation and ,rand total of the sto$k at the end of the "lant(
Plant data sho'ld start at ne- "age( In"'t/ Sele$tion s$reen -hi$h -ill allo- one to sele$t a range of materials( 0aterials/ O't"'t Re"ort format as follo-s/ Plant Storage lo$ation 0aterial n'mber &es$ri"tion Sto$k 6'nrestri$ted8
,rand total F F F F F F
Tables and fields/ 0aterial N'mber 0ARA0AT 0ARA0ATNR NR &es$ri"tion 0AT 0AT0ATX 0ATX Plant 0ARC:ERS Storage lo$ation 0AR&L,ORT Sto$k 0AR&LABST se Standard !ormatting $olors( E+$e"tion handling/ Error message G 0aterial not fo'nd G H if 0aterial not "resent(
11 ,enerate a re"ort to list the follo-ing details from the tables L!A1 L!B1 4endor no(% 4endor name% $it#% state% tele"hone no(% fa+ no(% $om"an# $ode and terms of "a#ment( ser shall ha4e o"tions to sele$t the 4endor n'mber range for -hi$h the re"ort is generated( ( Re"ort title/ endor 0aster Listing ) endor Name/ 3333333333333 endor no( / 3333333333333
Address/ 3333333333333 333333333333333333 33333 Tele"hone Te le"hone no( 33333333333333 333333333333333 3 !a+ no / 33333333333333 Com"an# $ode Terms of "a#ments 3333333333333 3333333333333333 33333333333333333 3 All te+t 'sed in the re"ort shall be generated 'sing te+t elements onl#( The o't"'t list shall ha4e a footer sho-ing "age no(% date and Intelligro'"*6left $orner8
1) ,enerate a re"ort for dis"la#ing material des$ri"tion% "lant storage data( In"'t/ 0aterial n'mber 60ARA0ATNR8 60ARA0ATNR8 &ata to be dis"la#ed for the follo-ing three materials onl#( 1( BP==@019 )( !P9;=D@@.1 .( !P);9)@11 O't"'t format/ 1151151DD Re"ort Re"ort to anal#Je material sto$ks 0aterial No( &es$ri"tion !PD;21)1@1 0edite$h Patterned :eld Rod Oatmeal ;@* Plant Storage Lo$( nrestri$ted sto$k ++++ +++++++++++ +++++++++++++++ All te+ts are to be generated 'sing Te Te+t +t Elements onl#( se tables/ 0ARA% 0AT% 0ARC and 0AR&( SBROTINES 1( Read a n'mber bet-een @ and 1@@ and another digit bet-een @ and D( :rite a s'bro'tine that -ill $al$'late the s'm of all n'mbers 6belo- the limit8 that end -ith the digit( The "arameters to be "assed are limit and digit both b# 4al'e and s'm b# referen$e( E+( If limit ? ;= and digit ? 2 then s'm sho'ld be the s'm of 2%12%)2%.2% ((;2( )( :rite a s'bro'tine CENTRESTRIN,% -hi$h -ill o't"'t a string on the $ente r of a line( The s'bro'tine -ill a$$e"t "arameters STRIN, "ass b# 4al'e( .( :rite a "rogram e+tensi4el# 'sing s'bro'tines to "rint the e>'i4alent n'mber in -ords( !or e+am"le/ if the n'mber is ;;% the o't"'t sho'ld be SIXTK SIX( Limit the n'mber range from @ H DD( A$$e"t the in"'t n'mber as a "arameter( 2( A$$e"t a date from the 'ser( :rite a date as ddmm#### -here mm is month -ritten as AN5!EB50ar7et$( 0ake 'se of s'bro'tines(
9 !or ea$h flight $onne$tion% $al$'late the sales for all flight s of an airline $arrier( se internal table for $al$'lating the sales( se a s'bro'tine for the o't"'t b# "assing the internal table as the "aramete