Skip to Content
author's profile photo Former Member
Former Member

SM35 - Processing BDC session - System variable

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2014 at 12:27 PM

    Hello Bairam,

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      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

  • Posted on Jan 03, 2014 at 12:25 PM

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

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.