We have to create Wage types for country grouping 04 and infotype group 0015.
The scenario is that User enters for each wage type number/unit in hours/days/kms and for each fixed wage type there is an rate fixed(in decimal places) and it calculates the Number * Rate and gives the final amount.. The Rate undergoes changes every year.
I had thought of
a) creating constants and using them in rule OR
b) using the indirect valuation "CONST" and giving a fixed value in table T510K.
In option "b", I am facing the problem that I can't give the wage amount in table T510K in decimals as it gives an error "Decimal places are not permitted". If i give a value without decimal place, it allows me to save in T510K
and when i enter a Number/Unit in IT 0015, it multiplies to the rate with the value in T510K and gives the amount in IT15.
My problem is I want to use the same kind of behaviour where User only enters the Number and Unit in IT 15 and it calculates based on the Rate stored in config and multiplies and saves the value in Amount field . The rate could be in decimals.
I don't know how to create such configuration.
Thanks & Regards,
The easiest way to handle your scenario would be to create a constant in v_t511k, the user would enter the value in It-15, and the pcr as written below would do he calculations
Rte= kxxxx(xxxx is ur constant)
the advantage would be that the rates would be time based(having validity periods) and just in case of a retro will not throw any errors.
I would suggest that you create your constants in V_T511K. In the PCR processing the WTs from IT0015, you could then use the operation sequence RTE=KZZZZZ MULTI RNA ADDWT * , where ZZZZZ is the constant from V_T511K.
Should you require more decimals than is available in V_T511K, then the amount of your constant could be multiplied by 10 (or 100, or 1000) in the table, and you would use the same factor to divide the product of your multiplication (as in RTE=KZZZZZ MULTI RNA AMT/10 ADDWT * ).