cancel
Showing results for 
Search instead for 
Did you mean: 

Setting field as 'mandatory'

Former Member
0 Kudos

Dear All,

Search doesn't work now in the forum so I can not find any posts related to this topic. I need to set some fields as mandatory in shopping cart. I played a bit with screen variants but mandatory setting for those fields are 'grayed out', for example 'price' field. Does anybody know how to deal with that?

In R/3 it's simple and nice, here it's a bit complicated...

I will reward you with points for usefull answers

kind regards,

Robert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can implement the BADI "BBP_DOC_CHECK_BADI" for making the fields in the SC mandatory.For sample code ,refer the foll link:

https://wiki.sdn.sap.com/wiki/display/SRM/SRMBADIRepository

BR,

Disha.

<b>Pls reward points for useful answers.</b>

Former Member
0 Kudos

Hi Disha,

So the idea you're suggesting is to issue a message if the field after check is still empty?

regards,

Robert

Former Member
0 Kudos

Hi,

The BADI check allows you to check all your SC data.

With your own coding you can:

-Check a field is not empty

-Check a value against local or backend data

-Check combination of fields values.

-....

In the BADI method IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK you fill in the output table ET_MESSAGES with all your messages (linked to the item through table field ITEM_GUID).

Best regards.

Vadim

Former Member
0 Kudos

Hi Vadim,

I already use this BADI but was looking for something like in ERP. If it can not be done by setting the field as 'mandatory' then of course, I will do it this way.

I granted you and Disha points for helping me out.

many thanks!

cheers,

Robert

yann_bouillut
Active Contributor
0 Kudos

Hi,

SRM is not working as R/3 or ECC where you can define mandatory, optional or hidden field.

You wimm have to use the badi mentionned above.

Kind regards,

Yann