Application Development and Automation 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: 
Read only

Pricing Routine

Former Member
0 Likes
354

Hi,

I am doing a pricing routine to calculate the TAX AMOUNT using RV64A608.But its not happening.

My logic will be :

Tax amount = (MRP/100+Tax%) * Tax%

My main problem is on which field the output will be dispalyed.My calculation is:

data: s1 type komv-kbetr.

s2 type komv-kbetr.

like that........

if xkschl = 'some condition'.

s1 = xkomv-kbetr "MRP

end if.

if xkschl = 'some condition'.

s2 = xkomv-kbetr "Tax

s3 = s2 + 100.

s4 = s1 / s3.

s5 = s4 * s2.

where will the s5 value be passed so that it will be displayed into the pricing condition.

Kind Regards,

Edited by: Prasenjit Sengupta on Jul 30, 2009 4:02 PM

1 REPLY 1
Read only

Former Member
0 Likes
283

Hello,

You have to use the structure XKOMV.

It should be the reverse,

For example, XKOMV-<field> = s1. as this structure XKOMV will be used in the program.

Cheers,

Balaji