cancel
Showing results for 
Search instead for 
Did you mean: 

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

Rajuyr
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Rajuyr
Participant
0 Kudos

I was able to resolve my original issue of taxation in a different method. However, I am still interested to know if there is a possible solution to the problem described.

For now, I am closing this question as un-answered.

thanks,