You are on page 1of 6

RSNAST00 using SUBMIT syntax

without Pop Ups?


This question is answered
Hi All,

I am using RSNAST00 to process and print 2 delivery outputs via 'SUBMIT RSNAST00 WITH... AND
RETURN' syntax in the ABAP of my Z Transaction Code. Basically, I create the outputs at delivery
creation stage (they do not print) and then print them later using my Z transaction. It all works fine
except for the fact that when RSNAST00 runs the following 2 popups appear when successful:

PopUp #1. Output Processing analysis

"Processing log for program Zxxxxx routine ENTRY

Processing log for program Zyyyyy routine ENTRY"

PopUp #2. Information

"2 outputs were processed in total (2 successfu 0 incorrectly)"

Is there anyway for me to suppress these screens as the user does not want to see them when they
run the Z transaction?

Should I run RSNAST00 using SUBMIT in the background? If so, can anyone help with the syntax?

I really need to suppress these popups!


Thanks,

N.
Tags:

abap

Niall Fitzmaurice
February 01, 2006 at 12:48 PM
0 Likes
Correct Answer

Shyam Loganathan replied


January 31, 2006 at 19:42 PM
Try to submit RSNAST00 as a background job.

Copy Code
1. DATA: number TYPE tbtcjob-jobcount,

2. name TYPE tbtcjob-jobname VALUE 'PRINT_OUTPUT',

3. print_parameters TYPE pri_params.

4.

5. CALL FUNCTION 'JOB_OPEN'

6. EXPORTING

7. jobname = name

8. IMPORTING

9. jobcount = number

10. EXCEPTIONS

11. cant_create_job = 1

12. invalid_job_data = 2

13. jobname_missing = 3

14. OTHERS = 4.

15. IF sy-subrc = 0.

16.

17. SUBMIT rsnast00 WITH s_kappl = <i>val1</i>

18. WITH s_objky = <i>val2</i>

19. WITH s_kschl = <i>val3</i>

20. WITH s_nacha = <i>val4</i>

21. TO SAP-SPOOL

22. SPOOL PARAMETERS print_parameters

23. WITHOUT SPOOL DYNPRO

24. VIA JOB name NUMBER number

25. AND RETURN.


26.

27. IF sy-subrc = 0.

28. CALL FUNCTION 'JOB_CLOSE'

29. EXPORTING

30. jobcount = number

31. jobname = name

32. strtimmed = 'X'

33. EXCEPTIONS

34. cant_start_immediate = 1

35. invalid_startdate =2

36. jobname_missing =3

37. job_close_failed =4

38. job_nosteps =5

39. job_notex =6

40. lock_failed =7

41. OTHERS = 8.

42. IF sy-subrc <> 0.

43. ...

44. ENDIF.

45. ENDIF.

46. ENDIF.

0View this answer in context

Not what you were looking for? View more on this topic or Ask a question

3 replies
Rashid Javed replied
January 31, 2006 at 19:32 PM
Hmm may be you can submit the report to a background job, this way there will be no popups.

for example

1: Call function job_open .....> get the job number

2: submit report RSNAST00 and return

username SY-UNAME

via job JOBNAME number JOBNUMBER

...[your other submit options].....

3: call function job_clsoe

This way your report will be submitted as background job

hope this helps.

cheers.
0 likes

Correct Answer

Shyam Loganathan replied


January 31, 2006 at 19:42 PM
Try to submit RSNAST00 as a background job.

Copy Code

1. DATA: number TYPE tbtcjob-jobcount,

2. name TYPE tbtcjob-jobname VALUE 'PRINT_OUTPUT',

3. print_parameters TYPE pri_params.

4.

5. CALL FUNCTION 'JOB_OPEN'

6. EXPORTING

7. jobname = name

8. IMPORTING
9. jobcount = number

10. EXCEPTIONS

11. cant_create_job = 1

12. invalid_job_data = 2

13. jobname_missing = 3

14. OTHERS = 4.

15. IF sy-subrc = 0.

16.

17. SUBMIT rsnast00 WITH s_kappl = <i>val1</i>

18. WITH s_objky = <i>val2</i>

19. WITH s_kschl = <i>val3</i>

20. WITH s_nacha = <i>val4</i>

21. TO SAP-SPOOL

22. SPOOL PARAMETERS print_parameters

23. WITHOUT SPOOL DYNPRO

24. VIA JOB name NUMBER number

25. AND RETURN.

26.

27. IF sy-subrc = 0.

28. CALL FUNCTION 'JOB_CLOSE'

29. EXPORTING

30. jobcount = number

31. jobname = name

32. strtimmed = 'X'

33. EXCEPTIONS
34. cant_start_immediate = 1

35. invalid_startdate =2

36. jobname_missing =3

37. job_close_failed =4

38. job_nosteps =5

39. job_notex =6

40. lock_failed =7

41. OTHERS = 8.

42. IF sy-subrc <> 0.

43. ...

44. ENDIF.

45. ENDIF.

46. ENDIF.

0 likes

Niall Fitzmaurice replied


February 01, 2006 at 12:48 PM
Thanks for your input Rashid and Sam.
I am now happily creating the RSNAST00 program as a job and it is working fine. The code example
was perfect!

Kind regards,

N.

You might also like