Skip to Content
author's profile photo Former Member
Former Member

PCR Logic

Dear Gurus;

I'm writing a PCR but there is a condition in that PCR that i don't know how to write it can anyone help me write its coding?

the logic of that PCR is;

If the employee is hired and terminated in the same month then he'll get a deduction for xxx amount if the termination came in the mid of another month after the hiring one then he won't get this deduction.

Can anyone help me write that condition.

Best Regards;

Lobna

Edited by: lobna Diaa on Oct 26, 2011 12:50 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 27, 2011 at 06:14 AM

    Do You want system to calculate this one Automatically ? if yes i feel Fedrico explanation will Suffice the requirment

    But , My Query is why cant we do it Manually ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2011 at 12:32 PM

    If your payroll periods are monthly and you have both dates -termination and hiring- in infotype 0041 you could use

    NUM=FXXM_A
    ?
    0
          NUM=FYYM__
         ?
         0
                Both dates lies in the same month
    

    where XX is hiring and YY is leaving date in infotype 0041

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Federico;

      Actually I'm trying to write the PCR Logic that you've consulted me with but I need your help in doing this plz.

      Actually I've started the PCR as you dictated me by writing

      NUM=FXXM_A

      NUM?0

      After that step what should I write?

      After comparing by 0 in case bigger or smaller than what should I write?

      I'm Guessing that I should write my PCR

      But this 0 stands for what? as to be able to know what exactly i should write.

      Appreciating your cooperation

      Best Regards;

      Lobna

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.