Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger error message in SRM Backend PO

flvia_s
Participant
0 Likes
1,082

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,047

Hi,

     Try using BADI BBP_CREATE_BE_PO_NEW. Hope this is the one you are looking for.

~Athreya

8 REPLIES 8
Read only

Former Member
0 Likes
1,048

Hi,

     Try using BADI BBP_CREATE_BE_PO_NEW. Hope this is the one you are looking for.

~Athreya

Read only

0 Likes
1,047

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.

Read only

0 Likes
1,047

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

Read only

0 Likes
1,047

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).

Read only

0 Likes
1,047

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

Read only

0 Likes
1,047

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. =/

Read only

Former Member
0 Likes
1,047

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

Read only

0 Likes
1,047

Hi, Keerthi.

When creating PO in RFx response, Badi BBP_DOC_CHECK_BADI is not checked.

Thanks!