Application Development and Automation 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: 
Read only

backround task - abap check

Former Member
0 Likes
443

hi,

is it possible to check if a report is executed by an job (run in backround task)?

thanks

mike

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
413

if sy-batch = 'X'.

  • Its running in batch.

else.

  • Its running online.

endif.

2 REPLIES 2
Read only

Former Member
0 Likes
414

if sy-batch = 'X'.

  • Its running in batch.

else.

  • Its running online.

endif.

Read only

former_member283648
Participant
0 Likes
413

Hi,

if you query the db view TRDIR with the program name, it will tell if it is run by any background job.