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

changing

Former Member
0 Likes
305

please check the below and suggest to me to change the report into background execution from foreground

FORM FOREGROUND_CHECK.

DATA: V_TITLE(35) TYPE C.

IF SY-BATCH = ' '. "executed in background

V_TITLE = SY-CPROG.

MESSAGE E224 WITH V_TITLE.

EXIT. "abort running this program.

ENDIF.

ENDFORM. "FOREGROUND_CHECK

2 REPLIES 2
Read only

valter_oliveira
Active Contributor
0 Likes
277

Hi Kamma.

Could you explain with more detail what's the objective of the change?

Sorry, but i couldn't get it.

Best regards.

Valter Oliveira.

Read only

Former Member
0 Likes
277
FORM FOREGROUND_CHECK.

DATA: V_TITLE(35) TYPE C.

IF SY-BATCH = '  '. "executed in foreground
V_TITLE = SY-CPROG.
MESSAGE E224 WITH V_TITLE.
EXIT. "abort running this program.
ENDIF.
IF sy-batch = 'X'.
 * background.
endif.
ENDFORM. "FOREGROUND_CHECK

Reward if this helsp.