on ‎2011 May 27 5:29 PM
I'm somewhat new to programming in SRM. I'm trying to add some error checking to our shopping cart process. I thought I could add these checks to the BBP_SC_CHANGE method, but I don't want the type of pop-up box that comes up if I just use the 'Message' command. I'd like to have a message come up at the top of the shopping cart screen, similar to the system-standard messages that come up, once you click 'Order' or 'Check'. Should I be using a different method than BBP_SC_CHANGE, and what can I do to get messages to appear on the shopping cart screen?
Request clarification before answering.
Hello,
In order to generate error messages, you should use BBP_DOC_CHECK_BADI instead of BBP_DOC_CHANGE_BADI.
This badi has a message table, which will be populated by your own code and raised in the screen when provided.
Regards,
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. I noticed that the BBP_DOC_CHECK_BADI doesn't have a lot of useful information passed into it, like the BBP_DOC_CHANGE_BADI does. I'm trying to do a check between the purchasing group and location partner (which are both available in internal tables that are passed into BBP_DOC_CHANGE_BADI. Is there any way to access this data in the BBP_DOC_CHECK_BADI?
Hello Robert,
First, read wiki below:
[Documentation BBP_DOC_CHECK_BADI|http://wiki.sdn.sap.com/wiki/display/SRM/Documentation+BBP_DOC_CHECK_BADI]
Then to get Shopping Cart data details, call function module BBP_PD_SC_GETDETAIL using BAdI parameter IV_DOC_GUID as importing parameter.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.