2011年4月8日 星期五

Passing data from one ABAP program to another

1. You have to define an internal table ITAB in program AAA. 
2. In the program AAA you export your ITAB to the memory. 
    EXPORT ITAB TO MEMORY ID 'TD' (ID is the name of memory, you don't need to create it ). 
3. In program BBB you have to declare The same table (same table's name and same fields). 
4. In BBB you can import ITAB : 
    IMPORT ITAB FROM MEMORY ID 'TD' 
5. Now you can export it to AAA after modifications. 
    EXPORT ITAB TO MEMORY ID 'TD'
6. In AAA : 
    IMPORT ITAB FROM MEMORY ID 'TD'
This solution is independant to SUBMIT. 
 
Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com/ab020.htm

沒有留言:

張貼留言