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
How to upload data using catt ? : abap hr
BDC program to migrate data to SAP R/3 database. The data will be uploaded using transaction ME11. (Session Method) plz mention the detail coding Tahnks, Rahul
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
Explain the difference between a dialog program and a report?
HOW TO DIFFERENT CALL TRANSACTION ON THE BASIS OF DOUBLE CLICKING ON DIFFERENT FIELD.
****THANK YOU ALL ABAP EXPERTS**** I got a JOB as ABAP Consultant in Infosys.I cleared the interview.The question posted here are really good.I cleared interview based on this material only.It really works.I thank all members who posted que&ans here. Those who are in search of job in MNC study this question set only you will get sucess. Thanks once again allinterview.com and members of this community. tulika20021@rediffmail.com
Program lines for the radio button selection and unabling some input variables in section screen
How is conversion of data types done between abap/4 & external level?
What happens if only one of the commands set screen and leave screen is used without using the other?
Explain about drill down report?
How memory management happens for internal tables and work areas in abap?
Difference between Insert, Update and Modify?
What is the difference between skip and reserve?
What are base tables of an aggregate object? : abap data dictionary
Explain what is the purpose of sap script?