Skip to Content
author's profile photo Former Member
Former Member

RSNAST00 using SUBMIT syntax without Pop Ups?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2006 at 06:42 PM

    Try to submit RSNAST00 as a background job.

    DATA: number TYPE tbtcjob-jobcount,
          name   TYPE tbtcjob-jobname VALUE 'PRINT_OUTPUT',
          print_parameters TYPE pri_params.
    
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
    
    SUBMIT rsnast00 WITH s_kappl = <i>val1</i> 
                    WITH s_objky = <i>val2</i>
                    WITH s_kschl = <i>val3</i>
                    WITH s_nacha = <i>val4</i>            
                    TO SAP-SPOOL
                    SPOOL PARAMETERS print_parameters
                    WITHOUT SPOOL DYNPRO
                    VIA JOB name NUMBER number
                    AND RETURN.
    
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
          ...
        ENDIF.
      ENDIF.
    ENDIF.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2006 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2006 at 11:48 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.