Answer Posted / 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 |
Post New Answer View All Answers
What is the advantage of structures?
What is a table pool?
Can you create a table with fields not referring to data elements? : abap data dictionary
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary
What does a lock object involve?
What are the different types of the sap abap data dictionary objects?
What is occurs in internal table?
wht is the diff. b/n initialization and lotus of event
Why do we use abstract class
Define external layer?
What are the three hierarchical levels of data types and objects?
Explain the advantages/disadvantages of logical databases?
Static and instance variable and method with live example. Why and when to use
What is the difference between open_form and close_form?
What do you mean by batch data communications programming?