cancel
Showing results for 
Search instead for 
Did you mean: 

Adding exceptions to BADI?

Former Member
0 Kudos

Hi Experts,

I'm implementing BADI CRM_OPPORT_H_BADI, within which I need to use the exception do_not_save.

How can I add exception to a BADI implementation?

Any pointers to this would be highly appreciated.

TIA.

Regards,

Richa

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Exception could not be added to CRM_OPPORT_H_BADI. Therefore, functionality was divided among the 2 BAdIs.

Former Member
0 Kudos

Hi,

you can't add own exceptions to a standard BAdI.

But there is another BAdI 'ORDER_SAVE' where you can throw the exception 'DO_NOT_SAVE'. Try to use this instead.

If you need details for the order (you only get the GUID in this BAdI), use FM 'CRM_ORDER_READ_OW'.

Hope this helps.

Best regards,

Claudia

Former Member
0 Kudos

Hi Claudia,

Thanks for that help.

But I need to restrict Save while implementing CRM_OPPORT_H_BADI itself.

Is there some way I can do that without implementing ORDER_SAVE?

Thanks,

Richa.