Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issues while executing background job programatically

former_member215563
Active Participant
0 Kudos

HI All,

My Selction screen has a push button(BG) and the standard F8(Execute) button

1. If the user click the f8 button i.e sy-ucomm = ONLI , the report should run in foreground mode

2. If the user click the push button button  BGi.e sy-ucomm = FC01 , the report should run in background mode

    and create file in sharepath.( i have used fm JOB_OPEN ,SUBMIT etc for this)

3. If the user click the F9 button i.e sy-batch = X , the report should run in background mode

    and create file in sharepath

a)When I click the push button i.e point 2  , then the report executes in online mode only .I dont see any

jobs in SM37

Pls help!!!

-Faiz

1 REPLY 1

Former Member
0 Kudos

Hi Faizur,

you have the option to run the job in background for Point 3 right so option 2 is not required.

if a job is scheduled to run in background, then SY-BATCH will be 'X' and the program will run in the back ground.

In your case the program will be executed in the foreground.

Hope this details will help you. if not please let me know the exact point 2 & 3 requirements.

Regards,

Phani