HOW DO WE JOIN TWO INTERNAL TABLES USING READT STATEMENT??
Answer Posted / geeta
Hi This I searched on sdn and thought to post .
data: wa_gfsb like line of i_gfsb,
wa_gfsbdata like line of i_gfsbdata,
lv_tabix type sy-tabix.
* Sort Table by Plant.
sort i_gfsbdata by matnr.
loop at i_gfsb into wa_gfsb.
read table i_gfsbdata into wa_gfsbdata
with key matnr = wa_gfsb-matnr binary search.
if sy-subrc is initial.
lv_tabix = sy-tabix.
loop at i_gfsbdata into wa_gfsbdata
from lv_tabix.
if wa_gfsbdata-matnr ne wa_gfsb-matnr.
exit.
else.
wa_gfsbdata-werks = wa_gfsb-werks.
wa_gfsbdata-verpr = wa_gfsb-verpr.
wa_gfsbdata-peinh = wa_gfsb-peinh.
modify i_gfsbdata from wa_gfsbdata.
endif.
clear wa_gfsbdata.
endloop.
endif.
endloop.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a batch input session? : abap hr
What is off cycle payroll run
What is the difference between a substructure and an append structure? : abap data dictionary
What is the difference between field-group header and other field groups?
What is the difference between table and template?
What is lock objects? : sap abap data dictionary
What is the lock object?
How are the function code handles in flow logic?
What is design pattern? Provide example .Why are we using it?
What are two methods of modifying sap standard tables? : abap data dictionary
Can i have some Realtime Scenarios on Reports.
What are the parameters in bdc_insert? : abap bdc
What is the different between abap and ooabap? Why do we use ooabap?
Explain how to create any functions? How to go about it?
Explain what are the events used for logical database?