Skip to Content
avatar image
Former Member

Comparison between Action days with Calendar days

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 12, 2011 at 03:22 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2011 at 11:16 AM

    Hi,

    Any update ? Is that option working?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    May 16, 2011 at 06:03 AM

    Dear Devi, Praveen, Sujeeth,

    Regards,

    TATA.

    Add comment
    10|10000 characters needed characters exceeded