2010 Jul 14 4:35 PM
Hi,
My requirement is I have certain RMA numbers in internal table and I have to submit RSNAST00 program in background to process all these numbers. I have done that but I am not able to see the generated spool in sp01 transaction. I can see the finished job in sm37 without the spool list being created.
Please help.
Hi,
My requirement is I have certain RMA numbers in internal table and I have to submit RSNAST00 program in background to process all these numbers. I have done that but I am not able to see the generated spool in sp01 transaction. I can see the finished job in sm37 without the spool list being created.
Please help.
2010 Jul 14 4:45 PM
Go to the application, Extras -> output are where ever you can see the output type and now go to the "communication method" and see if "Release for output" is switched off. If this is switched on, the spool request is deleted immediately after the print.
2010 Jul 14 4:49 PM
Hi,
Thanks for the quick reply but I am not able to figure out in which application? Can you please specify in which transaction I have to see it?
2010 Jul 14 4:59 PM
I am sorry, I am not aware as to in which transaction you can see the RMA numbers.
Here is an example of where to find the same in the sales orders or the delivery.
For the sales orders.. I will to to VA02/03 and then go to inside the sales order.. now go to Extras -> Output -> Header-> Edit. Now click on the communication method you will see the check box "Release for output"
Now, follow the similar path for where ever the RMA numbers are being generated.
2010 Jul 14 5:06 PM
Hi,
I have seen in transaction va02 for the communication method for my RMA numbers but for the entry release after output is not ticked. Spool should be generated in such a case. Please suggest if there are any alternate solutions.
2010 Jul 14 5:11 PM
2010 Jul 14 5:16 PM
I am running my program in foreground only but I am submitting RSNAST00 program in batch.
The code that I have written is
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
JOBCOUNT = lv_jobnumber
IF sy-subrc <> 0.
ENDIF.
SUBMIT rsnast00 WITH s_kappl = 'V1'
WITH S_OBJKY in r_itab
WITH s_nacha = wa_itab-nacha
WITH s_kschl = p_output
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
via JOB lv_jobname NUMBER lv_jobnumber
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobnumber
jobname = lv_jobname
STRTIMMED = 'X'
IF sy-subrc <> 0.
ENDIF.
SELECT SINGLE MAX( listident )
INTO lv_spool
FROM tbtcp
WHERE jobname = lv_jobname
AND jobcount = lv_jobnumber.
if sy-subrc = 0.
write : 'RSNAST00 ran successfully'.
endif.
endif.
Please suggest what modifications I need to make because the value in lv_spool is always 0.
2010 Jul 14 5:23 PM
I am not sure, I think you are looking for the spool in SM37, look for the RSNAST00 created documents in SP01.
2010 Jul 15 7:54 AM
Hi,
I am not able to see the spool in SP01. The spool is not being generated.
2010 Jul 15 2:54 PM
Okay, Now here are the options to try and find where the problem is.
Step 1: Check in VA42 if you have any output type in yellow (meaning yet to be processed).
step 2: Only if you don't have any thing in Yellow. select a line and click on repeat output, now go to further data and ensure that the Dispatch time is set to "1. Send with periodically scheduled job".
Step 3: Run RSNAST00 in foreground for any of the RMA numbers and see if you are able to create the spool.
2010 Jul 14 5:02 PM
just goto se16,, open NAST table... give your RMA number in OBJECT key and see the details..
2010 Jul 22 10:53 AM
Hi,
Thank you for all the replies. My requirement is solved by putting wait command after the SUBMIT statement.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |