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 JG-SAPHR on Jan 7 at 9:04 PM
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

---------------Original Message---------------
From: HR Functional
Sent: Saturday, January 07, 2012 12:08 PM
Subject: Check DWS for Two Working Days and Generate the Allowance

Hi experts,

I have a requirement to check a daily work schedule and generate an
allowance. If employee works for a DWS continuously for 2 days
then, generate a meal allowance.

Can experts guide me how do I count 2 working days to check DWS?

Thanks in advance,

G

 
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
JG-SAPHR  
Senior SAP HR Consultant
achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

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