cancel
Showing results for 
Search instead for 
Did you mean: 

Contract expired warning on SHC creation

Former Member
0 Kudos

Dear Experts,

I have encountered a warning message upon checkout from a catalog. I have selected items with an expired contract. Upon display of the shopping cart i see this message (W)Line 1: Contract expired; document date 20110801 outside contract validity 20110204- 20110531. What i want to do now is change this as an error message and throw the same message when check is done or the shopping cart is submitted. How can i change this message as an error? For the check and submission, do i need to do additional customizations?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

If warning message is a standard one, have a look at How-To below:

[Start or delivery date in the past - Controlling messages|http://wiki.sdn.sap.com/wiki/display/SRM/Startordeliverydateinthepast-Controlling+messages]

This is for delivery date, but process is equivalent.

If it is a specific one, change its type in Check BAdI.

Regards.

Laurent.

Former Member
0 Kudos

Hi Laurent,

I've tried maintaining the message as an error for SHC and SHC items. But seems not to be working, it's still a warning, should this be defined in Doc Check BADI?

Thanks

laurent_burtaire
Active Contributor
0 Kudos

Hello,

If standard switch from warning to error message does not work, make your own check in BAdI using this standard message class with type 'E'.

Regards.

Laurent.