Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pricing Routine-Turn off Condition based on a Sub-Total

Problem: Routine is not working. When I debug, kwert does not get value the first time. When I click on conditions in sales order for a second time, I can see value populated for kwert. How to properly code such requirement?

I am trying to code a pricing routine for the first time. I would like to turn off access to conditions of CTXJ if a sub-total to which it points to is 'zero'. I tried both VOFM requirement and Condition base value without success. I think I am missing some pre-step in the code.

Step 100 Sub total relevant for Tax = 0.00

Step 110 CTXJ (Tax code determination) From/To: 100 Routine 600

Required: Do not access CTXJ condition records if the Tax base is zero.

Routine 600 (requirement):

FORM KOBED_600.

*{ INSERT SEAK900512 1

if xkomv-kwert = '0'.

xkomv-kinak = 'X'.

xkomv-mwsk1 = ''.

else.

xkomv-kinak = ' '.

endif.

*} INSERT

ENDFORM.

FORM KOBEV_600.

*{ INSERT SEAK900512 1

if xkomv-kwert = '0'.

xkomv-kinak = 'X'.

xkomv-mwsk1 = ''.

else.

xkomv-kinak = ' '.

endif.

*} INSERT

ENDFORM.

Edited by: RY on Jun 8, 2011 8:02 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question