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

Problem with BBP_DOC_CHEK_BADI

adrian_mejido
Contributor
0 Likes
517

Hello,

I have a problem when I try to use the implentation of the BBP_DOC_CHECK_BADI. I need to do some validations when the user make the shopping cart. So I have decided to use this BADI. But my problem is this:

When the user click on the "SAVE" buttom, I check that the IV_PARK is not initial. If IV_PARK is not initial I do the validations. If one validation isn't wright, I add a new entry in the ET_MESSAGES export table. But instead of stopping the save process, the shopping cart is saved and the message that I have put on the table is showed too.

My iplementation should stop when I put a message in the ET_MESSAGES table.

Could somebody help me?

Thanks for all your time.

ADRIÁN MEJIDO.

1 ACCEPTED SOLUTION
Read only

adrian_mejido
Contributor
0 Likes
491

I have already solved my problem.

The problem was that I only did the validations when the user click on the save buttom ( IV_PARK = 'X').  I have delete this condition and now all work rightly, because the validations are always done.

Best regards,

ADRIÁN MEJIDO.

Hello,

I have a problem when I try to use the implentation of the BBP_DOC_CHECK_BADI. I need to do some validations when the user make the shopping cart. So I have decided to use this BADI. But my problem is this:

When the user click on the "SAVE" buttom, I check that the IV_PARK is not initial. If IV_PARK is not initial I do the validations. If one validation isn't wright, I add a new entry in the ET_MESSAGES export table. But instead of stopping the save process, the shopping cart is saved and the message that I have put on the table is showed too.

My iplementation should stop when I put a message in the ET_MESSAGES table.

Could somebody help me?

Thanks for all your time.

ADRIÁN MEJIDO.

3 REPLIES 3
Read only

gouravkumar64
Active Contributor
0 Likes
491

Hi,

At first check SAP help program for this (with shopping cart)

http://wiki.sdn.sap.com/wiki/display/SRM/Documentation+BBP_DOC_CHECK_BADI

If not solved,revert back.

Hope it helps.

Thanks

Gourav.

Read only

KiranJ
Active Participant
0 Likes
491

Hi,

Can you try to  implement this BADI as well

BBP_DOC_CHANGE_BADI

Read only

adrian_mejido
Contributor
0 Likes
492

I have already solved my problem.

The problem was that I only did the validations when the user click on the save buttom ( IV_PARK = 'X').  I have delete this condition and now all work rightly, because the validations are always done.

Best regards,

ADRIÁN MEJIDO.