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

SM35 - Processing BDC session - System variable

0 Likes
1,408

Hi Experts,

There is a system variable “SY-BATCH” which is set to ‘X’ when session is processed in background.

However my requirement is:-

1.    1. Whenever session is process in foreground then only set of validation which are written in user exit should executed.

2.    2. When session is process in“Display errors only or Background  mode“, it should not execute validation code.

Sy-batch NE ‘X’ condition is failing for “Display errors only” mode.

Any help would be much appreciated.

Thanks

Balram Adep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,116

Hello Bairam,

You can try export the processing mode value to memory (EXPORT/SET commands) also

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,116

In your code, before testing sy-batch use FM BDC_RUNNING to get information on parameters used to execute the BDC.

Regards,

Raymond

Read only

Former Member
0 Likes
1,118

Hello Bairam,

You can try export the processing mode value to memory (EXPORT/SET commands) also

Read only

0 Likes
1,116

Thanks Renan

Read only

0 Likes
1,116

That wont be easy to implement in SM35, which Enhancement spot ?

Regards,

Raymond

Read only

0 Likes
1,116

My requirement is:-

I am some validation code which are in user exit "EXIT_SAPFP50M_002".

It should be executed only when user process session with processing mode as foreground in SM35.

however i have try to call FM bdc_running in 'EXIT_SAPFP50M_002" but it is get blank in for export parameter CTU_INFO.

Any help would be much appreciated.

Thanks

Balram Adep