Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

loop using field symbols

Former Member
0 Likes
1,196

how to use read stmts and append stmts inside the loop -endloop using the field symbols

4 REPLIES 4
Read only

geert-janklaps
SAP Mentor
SAP Mentor
1,051

Hi,

This blog might give you some more insights on using field-symbols:

https://blogs.sap.com/2017/09/05/dynamic-programming-in-abap-part-1-introduction-to-field-symbols/

Using field-symbols inside or outside a loop doesn't really matter, the principles are the same.

Best regards,

Geert-Jan Klaps

Read only

michael_piesche
Active Contributor
1,051

You need to clarify your question and actual problem.

Those that are able to help out don’t want to play the guessing game.

Read only

irfanjazz1
Participant
0 Likes
1,051

data: it_mara type table of mara,
      it_makt type table of makt,
      it_final type standard table of typ_final,

field-symbols : <fs_mara>  like line of it_mara,
                <fs_makt>  like line of it_makt.
                <fs_final>  type  type typ_final.


loop at it_mara assigning <fs_mara>.

append initial line to it_final assigning <fs_final>.

read table it_makt assigning <fs_makt> with key matnr = <fs_mara>-matnr.

endloop.
try it with your logic....

if u need any clarification ping me...

regards...

Read only

dev_parbutteea
Active Contributor
1,051

field symbols are basic concepts in ABAP for which you can already find a lot of info by searching the web.