on 04-27-2007 12:51 PM
Hi,
I need to show an error message for custom field which I have added on Header level of PO .I am using SRM 5.0 I need to show that error using <b>BBP_DOC_SAVE_BADI</b> .While I will save that PO if certain value is not there I want to popup that error message.
I wll get detail of PO in Doc_Save BADI .
How could I can populate error message from there ?
Thanks,
SS
Hi
Which SRM version are you using ?
All the Data after makning changes in the PO document, will be also aviavale in BBP_DOC_CHANGE_BADI for the filter type- BUS2201 (Purchase orders) in your case. You can either do a validation there using BBP_DOC_CHECK_BADI.
The Business Add-Ins [BADI] - BBP_DOC_CHECK_BADI should be used for customer messages to be triggered ->
Do let me know, incase still face any issues.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why would you want to use the BBP_DOC_SAVE_BADI? You can just as easily implement the CHECK badi and add an additional IF statement that you only want the code to run after pushing the save/order button. That way you have all the standard SAP functionality available and only when you want it.
Hi
When you want to save this Error message in the shopping cart. (Before / After clicking on Shopping cart )
<b>Try this, it will help -></b>
<u>Standard SAP calls the function module before saving the Shopping cart document, once you press on "Hold / Held" the Shopping cart button.</u>
<b>Use the function module - CALL FUNCTION 'BBP_PD_SC_CHECK' and get all the et_messages[] (Standard and custom error messages) - This will call BBP_DOC_CHECK_BADI and will generate Error messages, if any on the shopping cart screen (Web page).</b>
Hope this will definitely help.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.