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 |
How do you find if a logical database exists for your program requirements?
What are the value tables?
While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization
What is going life actually? What is the role of a functional consultant in it? : sap abap hr
visibility section for class level and attributes level
In module pool program how to pass the one screen input value to another screen input value?
What are the different types of parameters? How can you distinguish between different kinds of parameters?
How many primary keys can be created for a table?
will a break-point statement trigger in background job? say yes or no. then whats is the reason?
What are the functional areas?
What is tcode se16. For what is it used. Explain briefly?
What is the purpose of BAPI 'BAPI_SALESORDER_SIMULATE'? Write a sample program.