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

multiple spool

Former Member
0 Likes
551

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
498

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

2 REPLIES 2
Read only

Former Member
0 Likes
499

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

Read only

Former Member
0 Likes
498

Hi,

The exporting parameter RQIDENT of the function module RSPO_RETURN_SPOOLJOB can take only a single value as the input. To get the range of values what you can do is in the program you can get all the values which fall between the range and store them in a internal table and then loop at that internal table and download each spool. Try this approach and it may work.

Thanks.