06-29-2010 1:19 PM
I've tried to call report painter in a program.
But it didn't work well. It didn't make any result.
the result is different from the result excuting it by tcode
How can I solve this problem.
blow is the source code. it works well when I change the program name with another one.
i_ascii type standard table of listzeile .
data : wa_ascii type listzeile .
rspar_1-SELNAME = 'SAVEDAT'.
rspar_1-KIND = 'P'.
rspar_1-SIGN = 'I'.
rspar_1-OPTION = 'EQ'.
rspar_1-LOW = 'X'.
rspar_1-HIGH = 'X'.
append rspar_1.
SUBMIT GPD73F0G6U07HBC1V48W3WU4KKA using SELECTION-SCREEN '1000' with selection-table rspar_1 EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = z_ABAPLIST
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = z_abaplist.
03-17-2011 1:38 AM
03-03-2021 1:58 PM