on 05-11-2011 11:37 AM
Dear Experts,
Facing a very difficult situation, expecting your valuable suggessions.
Let me tell you my requirement first.
I have one action type which is "LO" action means Lay Off. what is this action means if we run this action type then watever the amount maintained in IT0008 should be paid as 50% for all other component except 3 WT's which are WT 1150 - HRA, 1160 - Med Alw, and WT 1170 - Washn Alw.
To overcome the above scenario. I have written one PCR and in that i have use the condition that if employee is on "LO" action type then that WT Amt/2 else 100%. which is working for all the 50% case people. but, the problem is for only those above 3 WT's.
The scenario is If employee is on "LO" action for full month then the amount maintain in IT0008 for the above 3 WT's should be considered as Zero, whereas employee is on the same action i.e. "LO" for partial month i.e. any other action exist other than "LO" then system should pay 100 % amount maintained in IT0008......
which means I have to compare action type "LO" with calender days, if "LO" = Calendar days then 0% pay else 100% pay.
How to compare this above scenario pls let me knwo. This is my golive week and i have to solve this issue any how. Pls help me friends.
Eagarly Awaiting your inputs.
Regards,
TATA.
Edited by: Prashantkumar Tata on May 11, 2011 1:22 PM
Edited by: Prashantkumar Tata on May 12, 2011 6:49 AM
Hi,
Try with following logic,
1st rule: this rule for if condition
*
****
OUTWPMASSN
LO
SCOND=T IF
**
SCOND=F IF
2ND RULE FOR HALF PAYMENT WAGE TYPES EXCEPT 3 COMPONENTS
*
****
1010
AMT/2
ADDWT *
1020
AMT/2
ADDWT *
1030
AMT/2
ADDWT *
1040
AMT/2
ADDWT *
LIKE THAT ADD ALL EARNING WAGE TYPES ..... BUT DON'T ADD WT 1150 - HRA, 1160 - Med Alw, and WT 1170 - Washn Alw.
3RD RULE:
*
****
1150-----HRA
RTE=TASOLL
RTE-TAAU**
RTE*KGENAU
RTE/TADIVI
ADDWT *
1160 -- MEDICAL
RTE=TASOLL
RTE-TAAU**
RTE*KGENAU
RTE/TADIVI
ADDWT *
1170 ---WASHING
RTE=TASOLL
RTE-TAAU**
RTE*KGENAU
RTE/TADIVI
ADDWT *
I hope it may helps to you above logic....
Regards,
Devi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Devi, Praveen, Sujeeth,
Regards,
TATA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Any update ? Is that option working?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No no, i meant to say that you can see how to create a operation. So this was just for your refernce. I am writing the logic for it in kind of psuedo code. Just see if it is helpful -
Read IT0000 table P0000 for the Action type 'Layoff'.
Now loop on P0000 and check the following condition with APER table ->
P000-BEGDA LE APER-BEGDA and P000-ENDDA LE APER-ENDDA -> by this u can check if employee is there for whole month or not.
IF condition is true
vargt = 'Y'.
ELSEIF. <if condition is false that is emp is partially in layoff. >
vargt = 'N'.
ELSEIF <if layoff action is not there>
vargt = 'T'. -> tghis you need for normal processing when layoff action not applicable for emp.
ENDIF.
PERFORM fillvargt.
Now with return of Y, process and generate /801 and make /804 as zero.
With N process /804 and make /801 as zero.
For T process both as normally you are doing.
just check if it is ok for u.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.