09-02-2010 7:06 AM
Hi all,
I need some help on how to go about the below requirement.
I need to run report RSAU_SELECT_EVENTS as a batch job by creating the variants and have to create a new report which convert the spools available after executing RSAU_SELECT_EVENTS into PDF format and transferring them to client server.
Could somebody explain the best approach for the above requirement.
Thanks in advance.
09-02-2010 7:15 AM
Hi,
Please check the sample code below..Here you need to convert data into OFT format from ASCI then do processing.
Get list of past due PO and STO's
submit rm06em00 with selection-table l_i_rspar
exporting list to memory and return.
Get list output
call function 'LIST_FROM_MEMORY'
tables
listobject = l_i_list
exceptions
not_found = 1
others = 2.
if sy-subrc = 0.
FM called to convert the output to ASCII format
call function 'LIST_TO_ASCI'
tables
listasci = i_records
listobject = l_i_list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.
if sy-subrc = 0.
Do nothing
endif.
Freeing the memory
call function 'LIST_FREE_MEMORY'
tables
listobject = l_i_list.
endif.
Thanks
Subhankar
12-16-2011 9:24 AM
You can send any ABAP list created by a background job via email as PDF.
You can find a short description how to setup the job here:
[RSECNOTE_via_mail|https://websmp103.sap-ag.de/~sapdownload/012002523100000318602010E/SIM200_RSECNOTE_via_mail.pdf]
Kind regards
Frank