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

hook a new BAdi or User Exit on a SAP transaction?

I'm having a following dilemma. I have a screen for Creating/saving/changing Orders on mySAP CRM under the transaction CRMD_BUS2000115. For this transaction there are no user exits or badi defined. I want to hook a some action on order Save. Now I've found a BADI ORDER_SAVE but this BAdi is called whenever a order is saved. I want to call the action just on this specific transaction. Now i've surfed a little and it seems that if a SAP hasn't defined a badi or a user exit on a transaction there is nothing one can do. One can hook new Badis just on his own code. I'm I getting this right, is there absolutely no way of adding a completely new BAdi or User Exit on a SAP transaction?

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Aug 07, 2004 at 07:05 AM

    Hello Astrit

    Your right, there is absolutely not way of adding a new BAdI on a SAP standard transaction. (Unless ofcourse if you modify the standard program).

    However if the ORDER_SAVE BAdI is doing what you want I don't understand what your problem is.

    You say want to restrict your action to one transaction. Why can't you do this in code by checking on sy-tcode?

    Best regards

    Thomas Madsen Nielsen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nielsen,

      I haven't done it, because I was not in knowledge of it :-). I'm new to SAP with nobody around to ask me such great questions.

      Together with the sy-CPROG I can get now a pretty god idea from where the order_save badi has been trigered off.

      So simple it was - thanks a lot !