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] Check DWS for Two Working Days and Generate the Allowance

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

Reply from HR Functional on Jan 8 at 6:54 AM
HI JG,

Thanks for the help. I will provide more information. We are using TM04
schema, without clock times.

Currently, employees quite often work for onshore & offshore and they
change their schedule accordingly. System generates the allowance when
employee uses the DWS - "ONSH" continuously for 2 days, it generates an
allowance on the 2nd day. The PCR for the existing situation is as below:

PCR1
*
***
VARSTDAYPG
|_ONSH
|_ADDZL 3000
------
PCR-2:
*
***
HRS=LONSH
|_*
|_=ADDZL *

-----
Now, the change of business request is :
if DWS=OFFS (or) any other daily schedule is the second day, then payout
Onshore allowance also for the first day with ONSH. How do I check if
day2nd =OFFS and then allow allowance to generate?


Thanks in advance for your help.
G

---------------Original Message---------------
From: Jagan Gunja
Sent: Saturday, January 07, 2012 9:05 PM
Subject: Check DWS for Two Working Days and Generate the Allowance

Hi
Do you need to check the DWS or do you need to check if the empl is working continuosly on two days, or the start/end times each day?
To check the DWS, you can use op'n VARST. You can find possible values to be used with VARST or for any op'n. However to check if it is the same as previous day, you need to store the DWS code or name.
To check start/end times each day:
In the time eval schema function TIMTP processes day breaks. This will result in breaking the current day's attendance. Use following before this line to store each day and check next day.

Insert this line in schema to check if empl is present.
IF ZPRS -If empl present today
PTIPZSTR GEN -store start/end time
PTIPZCHK GEN -check if same attendance today as yesterday

PCR's:
Check if empl is present today
PCR ZPRS
D VARSTPRSNT Present?
N SCOND=F IF -no
Y SCOND=T IF -yes

Store the start/end times in a time pair:
HRS=PBEG - get current pair start tiome; use HRS=PEND pair start time.
ADDDBxxxxZ, where xxxx is a time type - to be configured.
Similarly for end time use PEND and store in yyyy t/type.

Check previous day's start/end:
HRS=PBEG - get current day start
D HRS?Lxxxx same as yesterday?
*
= HRS=PEND -yes;check day end
= D HRS?Lyyyy - -same
= *
= = HRS=1 ADDZLmmmm -yes;generate meal allw mmmm w/t.

Hope this helps.

FIND WHAT YOU NEED. EXPLORE, THINK, YOU WILL FIND ANSWERS
YOU MAY MAKE MISTAKES IN DEVRELOPMENT. IT HELPS TO LEARN AND DEVELOP YOURSELF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards, JG

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
HR Functional  

achievement
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

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