on 08-01-2012 1:28 PM
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.
Thanks,
Sameer Tapre
Hi,
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.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you have classic scenario use BAdi: BBP_CREATE_BE_PO_NEW.
& If extended classic scenario use BAdi: BBP_ECS_PO_OUT_BADI.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards,
Naveen
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.