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

Spool not generated in RSNAST00 program

Former Member
0 Likes
2,985

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.

11 REPLIES 11
Read only

Former Member
0 Likes
2,085

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.

Read only

0 Likes
2,085

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?

Read only

0 Likes
2,085

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.

Read only

0 Likes
2,085

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.

Read only

0 Likes
2,085

Okay, do you get the spool when you run it in foreground?

Read only

0 Likes
2,085

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.

Read only

0 Likes
2,085

I am not sure, I think you are looking for the spool in SM37, look for the RSNAST00 created documents in SP01.

Read only

0 Likes
2,085

Hi,

I am not able to see the spool in SP01. The spool is not being generated.

Read only

0 Likes
2,085

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.

Read only

Former Member
0 Likes
2,085

just goto se16,, open NAST table... give your RMA number in OBJECT key and see the details..

Read only

Former Member
0 Likes
2,085

Hi,

Thank you for all the replies. My requirement is solved by putting wait command after the SUBMIT statement.