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

Get Spool request dynamically

Former Member
0 Likes
744

Hi All,

I have to get the spool request dynamically to pass that to the FM

CALL FUNCTION 'RSPO_DOWNLOAD_SPOOLJOB'

EXPORTING

ID =

FNAME = .

so that I will be able to download the content into excel file.

Please help.

Points will be awarded for useful answers,

Thanks,

Sarath.C

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
614

Field SY-SPONO will give you the last generated spool. If you are creating only one spool than access this field to get the spool number.

Regards,

Naimesh Patel

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
614

Select from TSP01 to find the spool number. (or keep it when opening spool via function like OPEN_FORM and the like, which a returned parameter/structure which contains this number)

Regards

Read only

0 Likes
614

Raymond,

I have data in three internal tables which is generated from a standard FM and to align them I pass it to another FM which finally creates a Spool request. Can you tell me how to fetch the spool request from TSP01 for the corresponding program Im executing.

Regards,

Sarath.C

Read only

Former Member
0 Likes
614

Hi

parameter: spool type TSP01-RQIDENT.

data: filename type rlgrap-filename value 'c:/fax.txt'.

DATA: IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0 WITH HEADER LINE.

CALL FUNCTION 'RSPO_DOWNLOAD_SPOOLJOB'

EXPORTING

ID = spool

FNAME = filename.

Regards

Read only

naimesh_patel
Active Contributor
0 Likes
615

Field SY-SPONO will give you the last generated spool. If you are creating only one spool than access this field to get the spool number.

Regards,

Naimesh Patel