on 03-08-2011 8:24 AM
Hello
I want to Allow employees to submit their vacation in ESS and manager to be able to approve , but without posting to 2001 when payroll is locked , I want to keep this requests in system till payroll exit , then I want to posted to IT2001 & IT2002 , my issue is , I canu2019t find how payroll record control ESS , I want to stop payroll record from controlling ESS , please help me
thankx
Hi,
If it is a standard leave request it should check the control record.
If it is custome application , check the following steps
Table T569V-Control Records
Get the status(filed name -state ) of control record from T569V .
status 1 for Released for payroll.
get the period from table T549Q for PERMO.
Compare the system date and period with T549Q that automatically checks the ABKRS and validate.
And Incoraporate the logic in your program.
I Hope that it will be useful for your requirment.
Please refer this code.
SELECT SINGLE abkrs FROM pa0001
INTO lv_abkrs
WHERE pernr = init_pernr
AND endda GE sy-datum.
IF lv_abkrs IS NOT INITIAL.
SELECT SINGLE state FROM t569v INTO lv_status WHERE abkrs = lv_abkrs.
IF sy-subrc = 0.
IF lv_status = '1'.
lv_year = sy-datum+0(4).
lv_period = sy-datum+4(2).
lv_year = lv_year - 1.
IF lv_period = '04'.
lv_f_period = '01'.
ELSEIF lv_period = '05'.
lv_f_period = '02'.
ELSEIF lv_period = '06'.
lv_f_period = '03'.
ELSEIF lv_period = '07'.
lv_f_period = '04'.
ELSEIF lv_period = '08'.
lv_f_period = '05'.
ELSEIF lv_period = '09'.
lv_f_period = '06'.
ELSEIF lv_period = '10'.
lv_f_period = '07'.
ELSEIF lv_period = '11'.
lv_f_period = '08'.
ELSEIF lv_period = '12'.
lv_f_period = '09'.
ELSEIF lv_period = '01'.
lv_f_period = '10'.
ELSEIF lv_period = '02'.
lv_f_period = '11'.
ELSEIF lv_period = '03'.
lv_f_period = '12'.
ENDIF.
SELECT SINGLE begda endda FROM t549q INTO (lv_start_date, lv_end_date) WHERE permo = '67' AND pabrj = lv_year AND pabrp = lv_f_period.
IF sy-subrc = 0.
IF sy-datum BETWEEN lv_start_date AND lv_end_date.
CONCATENATE 'Payroll area HO is locked for master data maintenance' e_message INTO e_message SEPARATED BY space.
EXIT.
ENDIF.
ENDIF.
Thanks & Regards,
Kumaran Duraiswamy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is standard process of leave request, If payroll area is locked, an employee can request approve except that rptarqpost wont post these requests during payroll lock!
Is this not working for you?
Have you suppressed the message via BADI ie Note 923423 or table
HRWEB_TRANS_MESS?
customise the message in below
Message class: HRTIM00BLPRETRO
Message number: 015
You have to follow the below path for customizing
PTARQ > Customizing > Service specific settings > Leave Request
> Processing Process > Configure Output of Messages
Kindly consult the Note 923423
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you for your reply , but i need to make it for standard leave request , is there any way to stop payroll from locking the leave request ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
8 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.