2013 Mar 21 5:50 PM
Hi, experts.
We are in SRM702 version. When user clicks on "Create a PO" button in RFx response, I should validate data and trigger an error message to SRM screen if it's necessary. So here is my question: is there a BADI to achieve this requirement? I have already tried BBP_DOC_CHECK_BADI and /SAPSRM/IF_BADI_SOA_MAPPING but it doesn't seems to work as I need.
Thanks in advance.
2013 Mar 21 6:30 PM
Hi,
Try using BADI BBP_CREATE_BE_PO_NEW. Hope this is the one you are looking for.
~Athreya
2013 Mar 21 6:30 PM
Hi,
Try using BADI BBP_CREATE_BE_PO_NEW. Hope this is the one you are looking for.
~Athreya
2013 Mar 21 7:40 PM
Hi, Athreya.
Thanks for your reply.
BADI BBP_CREATE_BE_PO_NEW would be usefull if it wasn't the fact that it doesn't have a message error table as a parameter.
At the moment I could manage to display the message error that I've wanted, but the PO is still been sent to XI. Do you know how to interrup this process?
Thanks in advance.
2013 Mar 22 7:01 AM
Hi Flavia,
Try implementing BADI BBP_DOC_CHECK_BADI. The interface method has the options to set error messages as one of the return parameters. Do the required validations and pass the error messages if any. Hope that will interrupt the data flow to XI.
Hope this helps,
~Athreya
2013 Mar 22 12:46 PM
Hi Athreya.
Thanks again for your reply.
As I mentioned in the first message, I did try to use BBP_DOC_CHECK_BADI, but at that very moment, the RFx Response is closed to edition and so this BADI is not checked anymore (except if I click on refresh).
2013 Mar 24 6:33 AM
Hi Flavia,
Have you tried to exit the process by using exit statement or similar ones. I am not sure how effectively that would work .
In the worst case scenario, you may try finding all the BADIs that get called in the process and see if any of them can be used.
Below is a document that would help you in finding out the BADIs.
http://scn.sap.com/docs/DOC-33611
Hope this helps,
~Athreya
2013 Mar 25 1:48 PM
Hi Athreya. Thanks again for your tips.
I'll try to find more Badis as your link is suggesting.
It's weird, cause in badi /SAPSRM/IF_BADI_SOA_MAPPING I'm using a method that has a parameter ct_messages, wich should exit the logic flow once I have inserted an error message, but is seems like the process is simply ignoring it. =/
2013 Mar 22 2:15 PM
Hi,
Please check the FLT_VAL of BBP_DOC_CHECK_BADI.
In this case,i think it should be BUS2201.
Filter value enable you to assign the implementation to a specific document type.
Regards,
Keerthi
2013 Mar 22 2:52 PM
Hi, Keerthi.
When creating PO in RFx response, Badi BBP_DOC_CHECK_BADI is not checked.
Thanks!