Application Development 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: 

Multiple Spool download

Former Member
0 Kudos

Hi Friends,

I am using a FM RSPO_RETURN_SPOOLJOB inside a program to download the spool request to a file in Appln.Srvr ,if i input the spool number on the selection-screen as a Parameter, iam able to get the spool request downloaded to a file, but if i give a range of Spool number for INSTANCE from 1203 to 1206 i get a run time error with the following details with the error pointing at the below code.

Currently p_spool is being passed as Parameter in the program.

How could this be changed to download multiple spool request at a time .Please suggest.

|

The call to the function module "RSPO_RETURN_SPOOLJOB" is incorrect:

The function module interface allows you to specify only

fields of a particular type under "RQIDENT".

The field "P_SPOOL" specified here is a different

| field type

CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'

EXPORTING

rqident = p_spool

Thanks

Meenakshi

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

Change the parameter to Select Option and use LOOP-ENDLOOP and call FM inside that.

2 REPLIES 2

amit_khare
Active Contributor
0 Kudos

Change the parameter to Select Option and use LOOP-ENDLOOP and call FM inside that.

Former Member
0 Kudos

Hi

Once spool is created, read table TSP01 based on u r spool details and get the latest spool number

Pass this to FM