Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Determine if BBP_SC_CHANGE has been called from 'Start Manual Assignment'

I am using BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE to do a custom determination of the Purchasing Group. I do want this to take effect for new Carts and times when automatic assingment of Purchasing Group is wanted(in our custom solution) e.g. changing Company Code in Go Shopping>Check Status ... but NOT when Start Manual Assignment has been clicked in 'Redistibution of Workload' (Auto Assignment dosn't seem to use this BADI).

How can I tell what caused the BADI to be called? It is called in a new Task so SY-TCODE/UCOMM/CPROG are blank/no use. Are there Exits where I can store SY-UCOMM to memory?

Former Member


then use the reverse: "if not sy-tcode is initial", so the custom determination in your BADI is called only in dialog mode (with a real T-CODE), and not when called in a new task, i.e. during workload reassignment.

Could there be other cases where SC are updated in starting new task ? I don't think so.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question