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
the problem is that , while i am undergoing with my practice session, i am creating too many new programs.they are occupying much space in my hard-disk. how to delete un-necessary programs completely from my data- base........... plz help me with this .....
How do you do bdc for a table control? : abap bdc
Difference between sy-tabix and sy-index? Can you check sy-subrc after perform?
Explain some essential objects in abap dictionary?
What is a persistent class?
Hi every one ! You people are doing a great job here , Im going to attend Tata Technologies interivew on this sunday,Can anyone who has already attended this company interivew or other companies interivews in abap pls share ur experience with me and help me to get into job my id ushareddyabap@gmail.com. Thankyou verymcuh
After running a BDC program in background, next day morning when you see the results, few records are not updated(error records). What will you do then ?
How many types of buffering? : abap data dictionary
please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?
What are the data types of the external layer? : abap data dictionary
What is get cursor field?
How many types of tables exists and what are they in data dictionary?
What is the difference between bdc_open_group and bdc_open_dataset. : abap bdc
How to create report in SD open sales order which covers all Organization, delivery status, shipping details and partner function details. plz mention the detail coding Tahnks, Rahul
What are the different function modules used in sapscript?