cancel
Showing results for 
Search instead for 
Did you mean: 

Condition Base Value Routine

Former Member
0 Kudos

Hello all,

I am currently facing an issue where we have created a Custom Condition Base value routine for a Tax Condition type.

In our scenario, we have Sales Tax condition type ZZTX which has the following parameters:

Cond. class D Taxes

Calculat.type A Percentage

Cond.category D Tax

Rounding rule Commercial

Also since its a tax condition type, it is set to D - cannot be modified manually.

Also in the pricing procedure, the condition type is pointing row 301 to pickup the condition value basis. This is for the normal scenarios. However when a particular condition is satisfied (which is coded in routine 902 for ZZTX) the code in 902 is supposed to change the condition base value for ZZTX.

800 0 ZZTX Tax for Sales 301 10 902 MWS

This functionality is not working at this point. When I debug, I can see the code appending the calculated value to the condition base value for ZZTX.

However on the screen, I still see the condition base value being picked up from row 301.

I need some input from you guys so as to find it the condition type zztx should have some parameters set to allow the change or is there a problem in the 902 routine ?

Kindly advise

Thanks

Vin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

this is the problem with 902 routine. Please update xkwert for your base value in routine.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vin,

Please check with your ABAP expert if he has done below to fetch calculated value to hold it correctly,

l_val_190 TYPE kwert, l_val_210 TYPE kbetr,

I guess it is to do with Data type only in your 902 routine

Hope this will solve your probelm,

Regards,

Siva