on 10-25-2007 7:55 AM
Dear All,
When I am running the program in background the spool request I am taking from SY-SPONO to one of the variable and then that variable passing to function module RSPO_RETURN_SPOOLJOB, but the program giving error is that
"Error in RSPO_RETURN_SPOOLJOB, Spool 0" or "Spool Request 0 does not exits ".
So please give the suitable answer for that.
So I want to know that , when program runs in a background can spool request number is available in SY-SPONO .
Regards,
Vikram
Please tell how you solved the issue. I am facing the issue trying to use the FM in a program to email spool contents via a link. I am getting the correct Spool Id from sy-spono and using it in the program to 1) convert to INT4 and 2) use as the email subject.
Thank you,
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is solved.....
Thank you very much.......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Vikram,
You can refer table TSP01 for the spool no.
Pass the spool name along with date time details & you should be able to get the latest spool
Best regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By submitting to background job, then you can use SY-SPONO. But there is a draw back - if you are submistitng this from a program, the SY-SPONO is available only inside the submitted program, it get refreshed outiside it. so you will have to capture it & use it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikram
As you probably know, sy-spono is empty and this is why the error is occurring. Why not use
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
EXPORTING
RQOWNER = SY-UNAME
AUTHORITY = SPOOL_AUTHORITY
TABLES
SPOOLREQUESTS = SPOOL_LIST
EXCEPTIONS
NO_PERMISSION = 1.
To get the spool numbers and then pass into RSPO_RETURN_SPOOLJOB.
Regards
Gareth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If you run the report in background, the system will generate a spool.
I think it will not handle the spool generated during the background job.
regards
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.