cancel
Showing results for 
Search instead for 
Did you mean: 

PO Changed data at the time of confirmation getting saved . Although error messages are populated in BBP_DOC_CHECK_BADI

Former Member
0 Kudos

Hi All,

Here i am having a issue . When i am trying to save  PO data(Confirmed quantity changed) , having  BBP_DOC_CHECK_BADI is populated by error messages, but still it is sucessfully getting saved. How can i stop this saving of data ?

Accepted Solutions (0)

Answers (2)

Answers (2)

flvia_s
Participant
0 Kudos

Hi, Suvendu.
Did you solve this issue? I'm facing the same situation.

Best regards,
Flavia

laurent_burtaire
Active Contributor
0 Kudos

Hello Suvendu,

this is SAP standard process.

If you have business rule telling purchasing document does not have to be saved when errors occur, try following process:

- check in BBP_DOC_CHECK_BADI if any  error message is populated (type "E"),

- if yes, add an abort message inside BAdI message table (type "A").

Maybe it could prevent document to be saved as process will be interrupted.

Regards.

Laurent.

Former Member
0 Kudos

Hi Laurent.

Thanks for your reply . But i have used both 'E' and 'A' message types. Only difference it has that it shows serious error ( for Abort) but then also data is getting saved.  Here one interesting thing i want to mention that for same process if we press send then error gets captured through BBP_DOC_CHECK_BADI and it is not  proceeding through subsequent processes.  Can we handle it through message control ? I tried that one also , standard message is getting triggered but still  changed data is getting saved. I am considering  Object type BUS2230 and BUS2232

Regards

Suvendu

laurent_burtaire
Active Contributor
0 Kudos

Hello,

try by calling function BBP_PD_ABORT inside BAdI if error messages exist.

If it does not work make an enhancement inside function module BBP_PROCDOC_SAVE for you concerned object types according to your business rules.

Regards.

Laurent.