The reason is, I want employees to be able to apply for leave even when the payroll is locked. The changes they wil be making i think its better to que them in program RPTARPOST. Im gonna stop this program during payroll and restart after payroll for the changes to start updating the master data.
What do you mean by "apply for leave request"? You mean keeping leave request in system?
Obviously it's possible but just not for the same payroll period which is locked. You can keep records for dates out of locked payroll period.
This is because to make sure when running payroll nothing which can effect on payroll result, like changing in salary or changing in time management for leave, absence, overtime and so, will change.
By the way what is RPTARPOST for? I could not find this report in system! Would you please possibly check if the spelling is correct?
When payroll is locked and you try to do changes on the Portal>ESS e.g. Taking leave, it gives an error message "Payroll ZA is locked". So i want to get rid of this message and allow changes to be done even when the payroll is locked, but however this changes musn't update backend during payroll, arther que them somewhere and press enter to update after payroll completion.
By the way I recommend to post your issue at https://scn.sap.com/community/erp/hcm/employee-self-service
I assume there may be a typo and you are referring to the standard SAP program RPTARQPOST? Otherwise I would expect a custom program to be named in the customer name range Z* , Y*, etc ...
I would take another look at your processes before trying to make any changes to SAP standard, especially in the area of payroll processing which is so critical. In general, employees should be requesting leave for future dates, so I would have thought the incidence of payroll lock errors should be relatively small. If employees are requesting leave via the portal and this is being approved by line managers, the above program should ideally be scheduled to update the back-end system during non-working hours and when payroll is not being run. If 'locks' do occur, the program will automatically try to re-process the approved request the next time it runs (from memory, I think it will try 3 times or several times before a manual intervention is required).
Payroll lock errors occur for very good reasons, based on experience with many customers and evolving based on best practices over many years. For this reason, I recommend to look your processes again and not to consider making changes that would increase risk of other undesirable knock-on effects.
So, I still stick to how I know this has been implemented for many customers without issues ... which is: during payroll lock, employees should only be able to request leave for future dates (i.e. not dates affected by the current payroll run). Best practice would be that in general employees should request leave in advance and it should be approved, etc. The problem is that by booking leave for a current or past payroll period, it is the same as if an employee were to change their bank details or address during a payroll run, it can have an impact on pay. This is why the payroll lock is in there as a safety mechanism.
Therefore, if you schedule the leave posting program to run before/after payroll, you should get very few errors caused by locks. I would suggest if you do still get errors, these would be exceptional (in which case perhaps they could be dealt with manually) or they may indicate an issue with the process design, which could be re-visited. I personally would do these things rather than make a change to the way standard payroll locks work.
Regarding SE91, I'm a functional person rather than techical, so I would have to refer you to a member of your Basis or technical team for advice on how to proceed with changing a generated message, sorry!
If you really need to change the message type from ERROR to WARNING for only the leave request application, there is a node in SPRO for the very same requirement.
Please open the following node and read the SAP Documentation(performance assistant) of this node.
Spro--> Personal Management --> Employee Self-Service --> Service Specific settings --> Working Time --> Leave Request --> Processing Processes --> Configure Output of messages.
Message Class : HRTIM00BLPRETRO
Message no: 015: Payroll area &1 locked
Please let me know incase of further doubts.
Thanks and Regards,