Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from JG-SAPHR on Jan 28 at 9:10 AM Hi, If you have already determined the OT hours, then you can use a PCR called with ACTIO, before CUMBT - to determine day of week and add the required OT hours to the appropriate w/t. VARSTWEDAY gives day of week like 1 = Monday, ... 7=Sunday. I think this depends on how the week start/end is defined. You can try VARSTLWDY also. Regards, JG
| | | ---------------Original Message--------------- From: HR Functional Sent: Thursday, January 26, 2012 10:59 AM Subject: How to Split Overtime Hours into Two Wage Types? Hi Experts, Kindly help me with below issue. I'm stuck in the middle of the PCR. We are using TM04 schema. The issue is , OT hours should be calculated from Mon-Sun. Within this week, first 7,5hours should goto WT 2020 and the rest of the hours should go to WT2021. I wrote PCRs as below. -------- PCR1. (Initialisation) Varstwdy 1 N HRS=M0901 ADDDB 0901Z Y HRS=0,00 ADDDB0901Z ------ PCR2 : (Evaluate OT - ) OUTOTWGTYP **** |_ ADDOT * 0300 |_HRS=D0901 HRS?COVERT (Constant stored with 7,5hrs in V_T511K) * HRS-COVERT HRS- * ADDOT 2020 > HRS=OVERT ADDOT 2020 HRS>0 HRS<D0901 GENOWB* ADDOT 2021 ----- PCR 3: HRS=D0901 HRS-M0901 ADDDB0901Z I'm unable to get the result. When hours are >7,5, how do I check the condition to split the hours and put them into WT 2021? Thanks in advance, G | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |