Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Log tracking using RSAU_SELECT_EVENTS

Former Member
0 Likes
1,538

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.

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.

2 REPLIES 2
Read only

Subhankar
Active Contributor
0 Likes
884

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

Read only

Frank_Buchholz
Product and Topic Expert
Product and Topic Expert
0 Likes
884

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