‎2008 Jan 11 7:52 AM
Hi
I have a situation like the below:
I want to populate an Internal Table with a few values from Standard Tables, like:
matnr, ersda and ernam from MARA
maktx from MAKT
ebeln, bstyp and bsart from EKKO.
I have a single internal table with different field names as well.
I mean, the fieldnames of the Standard table are different from the fieldnames of the Internal table.
How can I populate data? Urgent!
‎2008 Jan 11 7:57 AM
Hi,
the length and type of internal table fields should match with stanard tables fields,then only u can write them in where condition.....plz check the same...
Regards,
Nagaraj
‎2008 Jan 11 7:58 AM
Hi,
Declare 3 internal tables as below
IT_MARA with fields MATNR, ERSDA, ERNAM
IT_MAKT with fields MATNR, MAKTX
IT_EKKO with fields EBELN, MATNR
Now you have MATNR as the common field in all the tables.
Select Required data from MARA, MAKT, EKKO
Loop at EKKO table.
Read entry from MARA Internal table where MATNR = WA_EKKO-MATNR.
If entry exist move data to final internal table.
Read Entry from MAKT internal table where MATNR = WA_EKKO-MATNR.
If entry exist move data to final internal table.
Append Final Internal table
Endloop.
Regards,
Satish
‎2008 Jan 14 4:07 AM