Reqirement in Basicpay IT
In our system A wagetype "monthly gross" is the basis for remaining wagetypes in basic pay Infotype(0008).
As per the amount we given to Monthly gross wagetype,system automatically shows up the amounts for the respective remaining wagetypes.
System is calcualting the Basic pay as 40% of Monthly gross amount.
As per the new requirement,the Basic salary is always equal or more than Rs.5000/-.
If monthly gross of an employee is Rs.10000,system calculate Basic as 4000/-.But
As per the new requirement the Basic should be equal to Rs.5000/- whenver the Monthly gross amount is less than 12500/-
System has to condider Rs.5000/- as the minimum basic salary eventhough the monthly gross wagetype amount less than 12500/-.
Dear experts,Please share your ideas to match the requirement.
Praveen Tiwari replied
Do the folowing -
1. Go to BAdI HR_INDVAL.
2. Try creating a new implementation in customer name range.
3. Now code should satisfy the following requirement -
a. Read the infotype 8 for the total salary from which you will get the basis.
b. Read the basis percentage from V_T539J <- Note that may be you need a seperate wage type asif you are storing the data here. Because the data from this table will be read if you will assign indirect valuation for this wage type as INVAL/ B or C. Else you may store this percentage in someother wage type as number and store it in V_T510 if it vary for all pay scale area, pay scale type, pay scale group and pay scale level. If it is constant for all thr groups then you can store this into V_T511K table with a new (Z) constant. Elseif you can hard code it. (Hard-coding should be the last option as it may change sometime in future and then you need to change the program just because of hard coding 1 value).
c. Now you got 1 parameter out of the 2 your need.
d. Second paramter is 5000 as per you - if it vary for all pay scale combination then you can store it in V_t510 for all the combination with amount. Elseif it is constant you can store it in V_T511P (payroll constant table). Elseif you can hard code it. (Hard-coding should be the last option as it may change sometime in future and then you need to change the program just because of hard coding 1 value).
e. Now compare the value you got from step c and d and retrun the minimum.
Note that the new inval module you have defined needs to be assigned to the basis wage type in V_T511.