on 02-01-2024 10:58 AM
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..
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.