Dear All,
I am calling a report from another by using SUBMIT stmt. My requirement is that the spool generated will automatically be sent to ARCHIVE and not hung up in the spool.
Can anybody advice?
I developed the code like..
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
AUTHORITY = space
IMMEDIATELY = 'X'
NEW_LIST_ID = 'X'
NO_DIALOG = 'X'
IMPORTING
OUT_ARCHIVE_PARAMETERS = wa_archi
OUT_PARAMETERS = wa_print
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
wa_print-pdest = p_outd. "p_" stands for paramaters]
wa_print-prcop = p_nocp. "p_" stands for paramaters]
wa_print-linct = p_rept. "p_" stands for paramaters]
wa_print-primm = w_prim. "p_" stands for paramaters]
wa_archi-archiv_id = p_stom. "p_" stands for paramaters]
wa_archi-sap_object = p_objt. "p_" stands for paramaters]
wa_archi-ar_object = p_doct.
wa_archi-info = p_info.
wa_archi-arctext = p_ptxt.
wa_archi-formular = p_fort.
SUBMIT zrpm991a
TO SAP-SPOOL
SPOOL PARAMETERS wa_print
ARCHIVE PARAMETERS wa_archi
WITHOUT SPOOL DYNPRO
VIA JOB l_jobname NUMBER l_jobcount
WITH SELECTION-TABLE t_select
AND RETURN.
NB: My Functional partner said that; if I can achieve this, then the report will appear in the transaction OADR after 5 minutes.
Regards
Ullas
Edited by: UllasU on Jan 12, 2012 10:27 AM