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

Sequence of logic - background job call

Hi ,

iam working on an requirement , user enters the data in selection screen , output will display with records , i added custom pushbutton on application toolbar , now the user enters the button a background job should be created and remaining logic should be executed ( doing rate change for customer).

idid logic for displaying report using ALV GRID and also added the push button then my logic is as below.









i know FM open-job, submit ,close_job should be called for automatic background.

my question when i need to call these FM's, because after user pressing the button , using the final itab the remaining logic should execute ,

do i need to create another report and keep my additional logic and call that from first report. or can i do everything in same report.

please help with order of the logic i should call.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 31, 2017 at 09:51 AM

    Of course you could do everything in one program but my opinion is that it's much better to separate the tasks this way:

    • program 1 for display stuff
    • program 2 for background stuff
    • database or file system (or any other means) for communicating data between program 1 and program 2
    • global class for doing common tasks
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 01, 2018 at 02:18 AM

    Thanks for reply, I separated my logic to program1 and program 2. and using EXport for Itab transfer,

    but when I debug from Progarm1 , not entering into program 2 ( even aftet setting a breakpoint on program2).

    can I debug in rutime?



    Add a comment
    10|10000 characters needed characters exceeded

    • Please don't post a question as an "answer". There's a "convert into comment" button if I remember well.

      You can't debug a background job the way you say. Search "debug job" in SCN for solutions (SM37 and "jdbg" for instance, eventually "job interception" if you need to make the job wait for you so that you can start it, or in the worst scenario add an endless loop + SM50/SM66 to debug the workprocess).

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.