Application Development 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: 

Requirement Routines & Mandatory Option for condition type

Former Member
0 Kudos

Hi All,

A tax condition type is being setup as mandatory in the pricing proecdure.

It has a requirement routine associated to it. If the requirement routine is not satisfied, sy-subrc is 4 and hence, no tax is calculated for it but mandaotry setting demnds it to have some value. In such situations, will it over-ride the config. setting of mandatory condition type & if not so, how can I over-ride. It is compulsory to have the mandatory option ticked but its ok to over-ride it for some conditions specifed in the requirement routine.

Please advice.

Thank you,

Shiv

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Shiv,

Any critial configuration related information is available in internal tables based on which standard SAP does validations. So mandatory property of the condition type as configured in the pricing procedure, would also be available in some internal table of KOMV (KOBLI is the field indicating whether it is mandatory or not)

So in your requirement routine you can code so as to make KOBLI blank whenever the tax condition type is being deactivated by setting SY-SUBRC to 4.

Please reward if helpful.

Regards,

KC

3 REPLIES 3

Former Member
0 Kudos

hello shiv!

i am facing the same question. did you find a solution?

thanks!

matthias

Former Member
0 Kudos

Hi Shiv,

Any critial configuration related information is available in internal tables based on which standard SAP does validations. So mandatory property of the condition type as configured in the pricing procedure, would also be available in some internal table of KOMV (KOBLI is the field indicating whether it is mandatory or not)

So in your requirement routine you can code so as to make KOBLI blank whenever the tax condition type is being deactivated by setting SY-SUBRC to 4.

Please reward if helpful.

Regards,

KC

Former Member
0 Kudos

u need to write specific code in the rouinue... wherein when it fails in some scenarios it has to override...