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 7:38 AM
Hi JG,

Thanks again. I will check tomorrow if business can agree for further cost
on ABAP resource since I'm a functional person. But can I know, is it the
only way (writing user operation) to check 2 DWS on 1st & 2nd day?

But looking at the PCR - ZPRS, it seems it is checking only if employee is
not absence & his attendance hours not nill. Is ZCHK is the continuation of
ZPRS?

Thanks in advance,

G

---------------Original Message---------------
From: Jagan Gunja
Sent: Sunday, January 08, 2012 7:07 AM
Subject: Check DWS for Two Working Days and Generate the Allowance

Hi

Further, in the ZPRS pcr, you may need to check if the emp's today's working hrs are not nil. This is because it has been seen that VARST uses a switch which is set only if IT 2001 or 2002 is entered. Hence you can do as below:
Note NEXTR is to be used to go to next line where required and it is not indicated here.

PCR ZPRS
SCOND=F IF initialise as absent
D VARSTP2001 Absent?
* -yes
N HRS=S -no; attendance hrs not nil?
Y D HRS?0
Y *
Y > SCOND=T IF - -yes, empl present


Alternative to all of above including dws start/end storing, etc :
a) Create a user op'n &CHKDWS to compare yesterday's DWS with today's DWS; if it is same, set HRS=1 else to zero. You can copy the ABAP code part of op'n VARST which reads the DWS and also obtain the previous day's DWS.
b) Use a PCR to do as below. Use ACTIO to call the PCR in the schema.

PCR ZCHK

D VARSTP2001 Absent?
* -yes
N HRS=S -no; attendance hrs not nil?
Y D HRS?0
Y *
Y > &CHKDWS -Empl present; compare DWS today with yesterday
Y > D HRS?0 -DWS same?
Y > *
Y > > HRS=1 ADDZLmmmm -yes;create meal allw.

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
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

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