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

background execution

Thank you guys,

I have one more problem.

When i click clock button(Execute button), iwant to

execute the program in background.

Howto do this..

i know to check with background..ie..sscrfields-ucomm =' SJOB'.

For Online do we have to check for any value at screenfields?

could you pls help me out.

ambichan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 08:38 AM

    Hi,

    Take a look at SUBMIT (report) USER user VIA JOB job NUMBER n. Do an F1 on SUBMIT statement.

    To check whether you are in background or foreground mode, check the value of sy-batch.

    If you are using CALL TRANSACTION, use addition MODE 'N' for background, and UPDATE 'A' for asynchronous update.

    Regards

    Message was edited by: Shehryar Khan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 08:48 AM

    Hello Ambichan,

    The normal Execute Button has the Function Code <b>ONLI</b>. you will just have to set this to <b>SJOB</b> in the PAI to make the same button trigger the Background job.

    Look at this code...

    tables sscrfields.
    
    parameters p_test.
    
    at selection-screen.
      if sscrfields-ucomm = 'ONLI'.
        sscrfields-ucomm = 'SJOB'.
      endif.
    
    start-of-selection.
      write p_test.

    Get back if you have any doubts.

    Regards,

    Anand Mandalika.

    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.