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 narrow casting and wide casting?
What is the tcode to create indexes?
What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
What are indexes? : sap abap data dictionary
How do you get the number of lines in an internal table? How to use a specific number occurs statement?
Hat are the different types of mode (run code) in call transaction method?
How to convert the Unit for 'Distance' (The value from one Unit to another).
How did you test the form you developed? How did you taken print?
Define infotype ? : abap hr
What is the function of the transport system and workbench organizer?
GUYS any one please can u post questions in sap a bap webdynpro questions.. please i need to know some technical questions regarding webdynpro and ADOBE forms ?
What is singleton pattern in OOPS?
Mention some important events in abap programming.
1. what is IDOC monitoring ? what is the tcode used for idoc monitoring ? 2 . what is change pointer in ale ?
How do you send files to the legacy systems from sap and vice versa? How does one know that the legacy files have come on to the sap server you are working on? : abap bdc