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

How to read flow after program submit?

Former Member
0 Likes
590

Hi gurus!

I need to submit sap standard program RPRCCC_READ_BTA and than I need to send the result by email.

This is what result message looks like:

My code is:

   SUBMIT rprccc_read_bta TO SAP-SPOOL USING SELECTION-SET 'TEST1' AND RETURN.

Now I need to take data from spool. I can use FM   RSPO_RETURN_ABAP_SPOOLJOB, but I need to know Spool Request Number, where can I get it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

OK the solution was found here:

http://scn.sap.com/thread/633336

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
552

First you could use EXPORTING LIST TO MEMORY so you no longer have to worry about spool number. Then call FM LIST_FROM_MEMORY to get the data to memory.

Else use, before SUBMIT, call FM GET_PRINT_PARAMETERS to insure not immediate print and delete of the spool.  The spool number will be sy-spono.

Regards,

Raymond

Read only

0 Likes
551

Hi Raymond, thanks for you answer, but unfortunately it's not working. In List from memory I am geting two records with two numbers and no text

Read only

Former Member
0 Likes
553

OK the solution was found here:

http://scn.sap.com/thread/633336