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

PROGRAM IN JOB

Former Member
0 Likes
699

HI guys , i want my program to execute some routines (form - endform ) if it is running in background and some others routines when a user is executing it , any advices of how could i achive that ? thank you

Moderator message: next time, please (re)search yourself instead of asking basic questions.

Edited by: Thomas Zloch on Sep 14, 2010 2:29 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
675

Hi,

You can use SY-BATCH syatem field to check whether it is running in background or foreground. For ur requirement,

If sy-batch = 'X'.

some routines.

Else.

some routines

Endif.

I think it will solve ur problem.

Regards,

Selva M

6 REPLIES 6
Read only

Former Member
0 Likes
676

Hi,

You can use SY-BATCH syatem field to check whether it is running in background or foreground. For ur requirement,

If sy-batch = 'X'.

some routines.

Else.

some routines

Endif.

I think it will solve ur problem.

Regards,

Selva M

Read only

0 Likes
675

thank you Selma

Read only

Former Member
0 Likes
675

What is a basic Question in your opinion ?

Read only

0 Likes
675

SY-BATCH is very basic for an ABAP programmer, you can find this information easily by searching before asking, which is strongly encouraged by the [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement].

Thomas

Read only

0 Likes
675

Maybe it is very basic for an abap programmer , by the way i ve never asked about this variable , only about the background process . ill check your rules of engament i really thought that this site was about helping people with theirs doubts .

Read only

0 Likes
675

Depends on the doubt. Happy to keep discussing, but please open a thread in forum "suggestions & comments" if required.

Thomas