cancel
Showing results for 
Search instead for 
Did you mean: 

Comparison between Action days with Calendar days

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Devi, Praveen, Sujeeth,

Regards,

TATA.

Former Member
0 Kudos

Hi,

Any update ? Is that option working?

Former Member
0 Kudos

No Praveen that option is not working, one more thing i cudnt find that operation in pe04 ....:(...still waiting for other experts views.

Regards,

TATA.

Former Member
0 Kudos

You mean to say INREC is not there......

But it there is my system, anyway have you tried creating a operation and all ?

Former Member
0 Kudos

Praveen,

This operation exist, no documentation for it i am trying to understand this how it or similar will help to fulfill my scenario.

Regards,

TATA.

Former Member
0 Kudos

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.