Skip to Content

How could i know the user is using Bdc or MM01 in Badi.

Hi,

I am facing one problem,

Ie. For my client some people are manually creating the materials , Some are using the BDc.So, Who ever use . BADI_MATERIAL_CHECK I have this badi. it is doing Some validation. If i use bdc or Manually the code is triggering in BADI. And if i check SY-TCODE IS MM01.

Because Bdc is executing the MM01 Screens Background.

My Requirement is i would like to know At Badi. Whether the Transaction is user has used Either BDC Or MM01..

Can any body tell me How could i know the Call transaction has used or not.

Need your valuable suggestions.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 20, 2016 at 02:45 PM

    Use field SY-BINPT. This field will be X, if BDC is running.

    Thanks,

    Juwin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 22, 2016 at 08:17 AM

    Be aware that SY-BINPT can be initial during a BDC execution if some code like

    CALL TRANSACTION 'MM01' USING bc_tab OPTIONS from options.

    is executed with options-nonbinpt set. Also if some BAPI are executed (direct call or some IDOC) the flag won't be set also, but sy-tcode may be the same than during actual execution of transaction.

    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.