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

how to validate a program in background

Former Member
0 Likes
600

hello folks,

i need to validate my program, my program should run only in background

in case if it runs in foreground it should give error message. how to validate my

program.

can any one just tell the procedure how to do it.

any help will be greatly appreciated,

thanks in advance.

regards,

cnu

1 ACCEPTED SOLUTION
Read only

former_member183804
Active Contributor
0 Likes
437

Hello CNU,

following snippet should do.

Regards

Klaus


if ( 'X' ne sy-Batch ).
  message e000 with 'Only in Batch'(BTC).
endif.

2 REPLIES 2
Read only

former_member183804
Active Contributor
0 Likes
438

Hello CNU,

following snippet should do.

Regards

Klaus


if ( 'X' ne sy-Batch ).
  message e000 with 'Only in Batch'(BTC).
endif.

Read only

Former Member
0 Likes
437

Hi CNU

make your prg to start with a transaction(se93) and make that transaction to start only in background in sm37..

regards