on 12-17-2005 3:40 AM
Hi guys, I just want to know the use of the following ABAP syntax. I tried using the F1 help but I still couldn't understand it fully. Please give examples and explanations on what they do in programs. Below are the syntax:
field-symbols
initialization
start-of-selection
top-of-page
at line-selection
at new
at end
delete adjacent...comparing
loop at itab assigning
set parameter id
endat
If you could give me examples and explanations I would really appreciate it.Thanks!
Hi Viraylab,
If u want to get examples for these simply goto se38 and there in one of the menu items you will be able to see <b>abap examples</b> click on that and various sample programs will be listed there.
Thanks & Regards,
Vanita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
**field symbols are used similar to pointers in C..
Loop at itab assigning <fs_itab> --> fs_itab is the field symbol which stores the addressof itab..so u can directly modify itab without using statement 'MODIFY'.
**Start-of-selection--> this statement indicates the start of database access in the code.
**top-of-page--> to write anything(HEADING) at the beginning. this event gets trigerred at the first write statement.
**at line-selection> it is used in interactive lists. in ur output, when u click on a line, this event triggers> subsequently the secondary list appears.
**at new--> while in a loop, consider a field...if u want something specific for every new value of this field in the table,use it.
eg at new matnr. write 'New Material'.
**at end of--> similarly used as at new.
**delete adjacent...comparing--> suppose there r records in itab and u want only one record for each matnr.. so if there r multiple records for a matnr..use this...( comparing matnr).
**set parameter id--> to put values in a screen field
**endat--> concluding statement for 'at'.
Hope it helps.
Regards,
Bikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.