cancel
Showing results for 
Search instead for 
Did you mean: 

Why Check BADI

Former Member
0 Kudos

Hi all,

Why do we need to activate the check BADI and Change BADI for Purchase Order?

Alerady in SRM check and change button ,could you please give me some eg?

Thanks and regards

Harish shetty

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for the reply.

"Example of CHANGE BADI can be: Update the price of shopping cart item with the contract price".

In this case how this BADI helps.Any way once we pick the contract, line item price will be automatically copied to shopping cart right?

Can you please give some clearity here?

Thanks and regards

Harish

Former Member
0 Kudos

Hello Harish,

As of standard SRM, User enters the estimated price of the item in shopping cart, even if a contract exists for that material the price is not updated automatically with the contract price in shopping cart. Approval happens on the this estimated price. Though when it will result in a PO it will take the price from contract. So, one of business requirement will be to update the price of the item with contract price.

There are quite a few used cases for change BADI, just search the forum with CHANGE_BADI.

Hope this helps.

Thanks

Ashutosh

Former Member
0 Kudos

Hi Ashuthosh,

Thanks for the reply.

"Example of CHANGE BADI can be: Update the price of shopping cart item with the contract price".

In this case how this BADI helps.Any way once we pick the contract, line item price will be automatically copied to shopping cart right?

Can you please give some clearity here?

Thanks and regards

Hareesha

Former Member
0 Kudos

Hi ,

Could you please give me any other example for Change BADI

Thnx

Harish shetty

Former Member
0 Kudos

Hello Harish,

Example of CHANGE BADI can be: Update the price of shopping cart item with the contract price.

Changes are subject to the document-specific checks. Basically you want to change the value of some specific fields based on the entry by the user.

The parameter FLT_VAL acts as a filter value that assigns the BAdI implementation to a particular document type. You can use the BAdI to change the following documents:

Shopping cart (filter value BUS2121 - shopping cart EC), Purchase order , Confirmation,

Invoice, Bid invitation, Bid, Auction, Contract, Purchase order response, SUS purchase order

SUS purchase order response, SUS confirmation, SUS shipping notification

Hope this helps.

Thanks

Ashutosh

Former Member
0 Kudos

Hi Harish,

Check BAdI is used to raise any custom messages you may want which is not available in the standard. You can do certain validations and raise an error or warning message.

Using BAdI BBP_DOC_CHECK_BADI, you can carry out your own checks for the document data after you have entered the user and before you save the document to the database. You cannot change any data.

Ex: You can check the price fields and raise an error message if it is unfilled saying price cannot be zero.

Similarly DOC_CHANGE_BADI to make changes to the document, after user entry and before saving the document to the database. These changes are subject to the document-specific checks.

Eg: You can fill the values in a field depending on the values present in another field or u can set a default value for particular fields.

Hope this Helps.

Thanks,

Pradeep