what is the use of field symbol?
Answers were Sorted based on User's Feedback
Field symbols is like pointer in 'C'.
By the use of field symbol u can modify the internal table,
work area, user command etc without using modify keyword.
U can also modify internal table of standard program by
field symbols.
field-symbol <fs> type any.
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / dileep kumar chinnaiah
Adding to "Zulfiqar Beg"
A Simple example.
FS are like ATM cards while your internal tables are Bank
accounts.
any transactions you do with your ATM card will be reflected
to your account straight. (Like Pass/Call by reference)
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / anji yv
incase of any modifications in internal table generally we loop the internal table to workarea and we have to modify in the work area and we have to write the modify statement to modify the internal table.
if we use field symbols then automatic modification can be done with out writing modify statement..
Performance wise field symbols are much bettar than the normal work area.
REPORT ZSAPN_FIELDSYMBOLS.
DATA : IT_MARA TYPE TABLE OF MARA.
DATA : WA_MARA TYPE MARA.
FIELD-SYMBOLS : <FS_MARA> TYPE MARA.
SELECT * FROM MARA
INTO TABLE IT_MARA UP TO 50 ROWS.
LOOP AT IT_MARA ASSIGNING <FS_MARA>.
IF <FS_MARA> IS ASSIGNED.
WRITE :/ <FS_MARA>-MATNR, <FS_MARA>-MTART, <FS_MARA>-MEINS.
ENDIF.
ENDLOOP.
Is This Answer Correct ? | 0 Yes | 0 No |
plz can any one list out the set of questions on support project. I am waiting for ur reply
I have 100 records and 75th record contains error,if i use call transaction how many records will update the data base and if i use session method how many will update?
For what purpose Chain Endchain statement is used?
What is INDEX Concept. What is Primary Index and Secondary Index and Difference between Primary & Secondary Index
while running bdc for call transaction method, in gui_upload function we use filetype 'ASC' for tab delimited seperated data. like that for csv(comma delimited) data what we have to use as filetype??? ie FILETYPE = ?????
How can we access the correction and transport system?
Can we set page headers to details lists?
How To Debug Ale ....
difference between report and module pool
What is an Unpack command?
how to replace the Old BDC transactions with the new enjoy SAP transactions
Tell me that any enhancement object comes under which category? either implementation or in support project