cancel
Showing results for 
Search instead for 
Did you mean: 

Wants to retrieve output of program running in background

sun_light
Explorer
0 Kudos

Hi gurus,

Im running program rkcfile7 in background, wants to get it's output for further processing

I don't want to use exporting to memory

Because when I use exporting to memory I can't able to submit my ext report for background job

I tried class get salv method also, but it is not fetching any data

I tried to spool also, but it prints into pdf,

Instead of printing into pdf, I want to pass that data into internal table

Thanks in advance....

Sandra_Rossi
Active Contributor
0 Kudos

program RKCFILE7 = transaction code KCLJ = EDT: Execute Transfer

including here the output to get into internal table (from OP comment somewhere):

View Entire Topic
keremkoseoglu
Contributor
0 Kudos

You can try enhancing rkcfile7.

Add a hidden parameter to the selection screen, let's call it P_SECRET.

Pick a strategic spot where the output is prepared but not yet printed. If P_SECRET = 'X', write the data to a temporary table and leave the program.

In your Z-program, submit rkcfile7 with the option P_SECRET = 'X' and fetch the data from the temporary table later on.

sun_light
Explorer
0 Kudos

Hi,

Can u pls provide any ref doc or sample code link, it will be more useful to understand

Thanks in advance

keremkoseoglu
Contributor
0 Kudos

sun_light here is a sample link: https://keremkoseoglu.wordpress.com/2020/03/16/how-to-steal-data-from-standard-sap-reports/ . You have to replace the EXPORT TO MEMORY part with a temporary table though.