‎2009 Jun 02 7:39 AM
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
‎2009 Jun 02 7:41 AM
Change the parameter to Select Option and use LOOP-ENDLOOP and call FM inside that.
‎2009 Jun 02 7:41 AM
Change the parameter to Select Option and use LOOP-ENDLOOP and call FM inside that.
‎2009 Jun 02 7:46 AM
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.