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

background?

Former Member
0 Likes
559

Hi all,

if the report is running in background i need to do some validation?

how can i check this?

vkr.

4 REPLIES 4
Read only

ferry_lianto
Active Contributor
0 Likes
534

Hi,

You can use SY-BATCH to check background job.


IF SY-BATCH = 'X'.
 ...                     " Your validation
ENDIF.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
534

if sy-batch = 'X'.

*----write validation code

endif.

Read only

Former Member
0 Likes
534

at selection-screen.

if sy-batch eq 'X'.

doyour validations here

ENDIF.

Read only

Former Member
0 Likes
534

Go TO SE38, fill the values in the selection screen,

Execute in Background..

Then Go TO SE37 , mark the spool, go to command window and type shbg, press F7 thrice, the ctrl will come to your program , you can validate yourself.

Regards,

Baburaj