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 |
what objects can be generated by the batch input recorder?
Explain the difference between domain and data element?
Explain buffering concept usage?
Explain the advantages/disadvantages of logical databases?
What is the difference between a pool table and a transparent table and how they are stored at the database level?
Explain what is sap script? What is the purpose of sap script? Difference between sap script and report?
What is luw or data base transaction ?
Hi Experts, we have coded in smartforms also but why we r going to driver program for smartforms..
What table stores online messages?
what is technical documentation and functional documentation? what are the steps for unit testing?
what is meant by serialization ?
difference between at selection-screen and at selection-screen output?