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

REPORT_SUBMIT in the Macrobuilder

All -

There is an Operator function available in macrobuilder which is "REPORT_SUBMIT" and it seems like it allows you to execute a report program in the background by clicking a macro. Is anyone aware of the exact syntax of this function on how to specify the program and variant to be executed?

Thanks

Gaurav

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 08:45 PM

    Hi Gaurav,

    I have never used this function. But looks like you are right. You can execute a report using this function:

    This is what the sap help says

    "REPORT_SUBMIT( 'program_name' ; <'job_name'> ; <'job_number'>; <'newmode'>) causes the specified program to be executed. Use the optional arguments, job name and job number, if you wish the program to run in the background. If you set the argument 'newmode', the results are displayed in a new window."

    Please refer to this link:

    http://help.sap.com/saphelp_scm50/helpdata/en/1d/310eb3d0ee11d4b2e40050da385632/frameset.htm

    Add a comment
    10|10000 characters needed characters exceeded

    • Further testing it seems that the syntax is actually

      PROGRAM, then NAME OF THE JOB AS IT WILL RUN AND THEN BE VISIBLE IN SM37 (so you can call this anything in the macro and that is what it will become)

      The Job Number, I am yet to figure out what it is. DOesnt seem to matter what is in here.

      (I thought it was the job number of an already created SM37 job, but this is wrong)

      Also I cannot get any background jobs to work

      ie using program

      /SAPAPO/TS_BATCH_RUN

      As i cant seem to put any variant that gets through the 2nd variant stage.

      error message

      Fill in all required entry fields

      So, back to the drawing board for what I want.

      May try this instead

      creating a macro function to trigger an event, which could then be linked to a background job.

      This looks like it would work OK.

      http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20fac120-4382-2910-2ca5-ece311642649

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.