We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-hr] PCR to check date type in payroll

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by JG-SAPHR (Senior SAP HR Consultant)
on Jun 17 at 12:20 AM
Hi Candy

To find the interval between a date type value in IT 41, following example shows the use:the operation in the format NUM=Faaesb

NUM=FZ1JB - from the date type Z1 obtain the date value, then from that date calculate the number of years till the start of the current WPBP split.

The operation has a good amt of help info, if you care to look. You would need to experiment a little to get what you need.

To compare with a fixed date say 01.01.2000, you can do the following:

Configure a constant ZSTRT with start date as 01.01.2000 and end 31.12.9999 value say 1.

Create a PCR as below:
TABLET511KNUM=KZSTRTNUM=BBEGDANEXTR
1 ZERO=&STRTADDWT&STRTNEXTR
2 TABLEPN NUM=BBEGDANEXTR
3 NUM-& STRT

First line gets the start date of 01.01.2000 of the constant ZSTRT in T511K into NUM field.
Line 2 saves it in var STRT.
Line 3 gets the start date of this for-pay-period in NUM
Line 4 gets the difference in number of days between the two.

If you need in years, you may need to create an operation.

NOTHING IS EASY! YOU NEED TO WORK FOR IT! Every expert have done that!

Hope this helps.
Regards, JG

---------------Original Message---------------
From: Candy
Sent: Friday, June 10, 2011 2:39 AM
Subject: PCR to check date type in payroll

Dear Experts,

I need help how to write PCR to check date type in payroll. I have scenario below:
Employee will get pay if 2 conditions meet: If there is input for the wage type in IT15, it will check if it's on December pay run and employee is hired (date type 01) less than 01.01.2000 then it will get paid.
I think I can use CMPER to check the Dec month, right? how about the date type that less than 01.01.2000? Any suggestion is appreciated. Thanks.

Regards
Candy

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
JG-SAPHR
SAP HR Top Contributor

Contributed the most posts in a group for 3 consecutive months to earn a Gold Achievement
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language