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. 

Fast Links:
BDC program examples:
Auto Disallowed Back Posting to Previous Period

Get help for your ABAP problems
Do you have a ABAP Question?

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

ABAP Programming Tips
ABAP and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.