2008 Jul 16 9:24 AM
Hi,
how can i pass an internal table from one program to other using the submit statment?
Thanks,
Rakesh.
Hi
Check this sample snippet it gives you an idea
EXPORT F1 FROM F1
F2 FROM F2
ITAB3 FROM ITAB3
TO INTERNAL TABLE ITAB.
Regards
pavan
2008 Jul 16 9:28 AM
Hi,
use the syntax
SUBMIT <prog> WITH <rangetab> IN <table>.for details check the link
http://help.sap.com/saphelp_webas620/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm
Regards,
Anirban
2008 Jul 16 9:32 AM
i want to submit an internal table declared in the program not select-option.
2008 Jul 16 9:29 AM
Hi,
You can add EXPORTING LIST TO MEMORY in addition to SUBMIT command and use FM LIST_FROM_MEMORY to get the table
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
Hope this helps
//Kothand
2008 Jul 16 9:35 AM
Hi
Check this sample snippet it gives you an idea
EXPORT F1 FROM F1
F2 FROM F2
ITAB3 FROM ITAB3
TO INTERNAL TABLE ITAB.
Regards
pavan
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |