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

BADI for PO's created in background

Hi All,

We have a scenario in which, Purchase Order gets created automatically in background whenever a Shopping Cart is approved.

I have to write an enhancement to select the Transaction Type for this Purchase Order, which is created automatically and in background.

I tried BADI BBP_DOC_CHANGE_BADI but the same is not getting called for POs created automatically in background.

It works for POs created in dialog mode by the user.

Is there any other BADI that I can use to change the POs which are created automatically in background.


Sameer Tapre

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 02, 2012 at 02:51 PM


    The DOC_CHANGE_BADI should be called, even in background mode.

    If you already can decide what transaction type it should be when the shopping cart is saved, set the field BE_DOC_TYPE in the shopping cart (in the doc_change_badi for SC). This should take care of the creation of the PO with the wanted transaction type.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2012 at 01:56 PM


    If you have classic scenario use BAdi: BBP_CREATE_BE_PO_NEW.

    & If extended classic scenario use BAdi: BBP_ECS_PO_OUT_BADI.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sameer,

      To add to Vinay's point, if you want the debugger to open up, you will need to set a breakpoint in the above mentioned badi as RFCUSERBBP ( dialog user)

      or use the FM BBP_PD_SC_TRANSFER to transfer the SC to ECC and place a breakpoint in the BBP_CREATE_BE_OUT_PO_NEW using your id.



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.