SUBMIT statement not passing parameters to called ... - SAP Community
source link: https://community.sap.com/t5/technology-q-a/submit-statement-not-passing-parameters-to-called-program/qaq-p/13590872
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
4 hours ago
Hi all,
I am using below submit statement to call ZACCT_R program, but when I run the code calling program is not passing parameter values to called program(ZACCT_R). So not getting any output from called program.
Actually here I want to take ZACCT_R final output internal table to process it further
SUBMIT ZACCT_R WITH BUKRS EQ P_BUKRS
WITH BUDAT EQ P_BUDAT
WITH GSBER EQ P_GSBER
WITH KUNNR IN SO_KUNNR
EXPORTING LIST TO MEMORY AND RETURN.
IMPORT IT_OUTPUT FROM MEMORY ID 'ZACCT'.
please suggest..
- SAP Managed Tags:
- ABAP Development
Accepted Solutions (0)
Answers (1)
26m ago
Hi @Mahesh1
according to the online help you should read the final table of of the called programm with the function module 'LIST_FROM_MEMORY' instead of IMPORT FROM MEMORY. Here´s the example from online help:
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK