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'.
SUBMIT GPD73F0G6U07HBC1V48W3WU4KKA using SELECTION-SCREEN '1000' with selection-table rspar_1 EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
LISTOBJECT = z_ABAPLIST
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.
CALL FUNCTION 'WRITE_LIST'
listobject = z_abaplist.