iam having 3 internal table how can i pass data to the 4th
internal table
Answer Posted / lokesh
you have 3 internal tables u want to populate these 3
internal tables data to 4th internal table ..right
Check out this eg code :
suppose we think u have 3 Internal tables i.e.,
t_marc,t_mara,t_makt
and 4th internal table is itab[final interanl table]
Start-of-selection.
Select matnr werks lvorm from marc
Into table t_marc
Where matnr = s_matnr
And werks = p_werks.
If t_marc is not initial.
Loop at t_marc .
Read t_marc into itab with key matnr = t_marc-matnr.
Select matnr Mbrsh Meins maktl from mara
Into table t_mara
For all entries in t_marc
Where matnr = t_marc-matnr.
Select matnr maktx spras from makt
Into table t_makt
For all entries in t_marc
Where matnr = t_marc-matnr.
Move :
T_mara-mbrsh = itab-mbrsh.
T_mara-meins = itab-meins.
T_mara-maktl = itab-maktl.
T_makt-maktx = itab-maktx.
T_makt-spras = itab-spras.
Endloop.
Else .
Write : / ‘No data is found in the first internal
table T_marc’.
Endif.
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
What kind of financial periods exist in SAP? What is the relevant table for that?
What is off cycle payroll run
what are the two methods of modifying sap standard tables? : abap data dictionary
Explain lsmw?
what is diff between idocs,bdc,rfc and bapi. give real time answer
What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary
What is the difference between commit-work and rollback-work tasks?
How to insert a line into abap internal tables?
How to upload data using catt ? : abap hr
In BDC, data transfer is done success in foreground mode but if we done the same in background mode it shows errors. What is the reason?
Explain the concept of clusters in payroll
hi i need detailed information on badi and bapi how can this work in real time senarios plz explain with exp
Why do we declare a method of a class final? What can be the purpose? Give a scenario.
Explain what are the different functions used in sap script? What are the parameters used in each function?
What happens if only one of the commands set screen and leave screen is used without using the other?