‎2010 Sep 14 10:37 AM
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
‎2010 Sep 14 10:44 AM
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
‎2010 Sep 14 10:44 AM
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
‎2010 Sep 14 12:09 PM
‎2010 Sep 15 2:55 PM
‎2010 Sep 15 3:30 PM
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
‎2010 Sep 15 4:04 PM
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 .
‎2010 Sep 15 4:42 PM
Depends on the doubt. Happy to keep discussing, but please open a thread in forum "suggestions & comments" if required.
Thomas