Hello,
How can I mark leave for employee in SAP if he is absent. (Automatic)
I am using 'BAPI_PTMGRATTABS_MNGCREATION' for creating leave but it is approving leave by default, I also tried BAPI_ABSENCE_CREATE for creating leave but it is approved by default.
My requirement is to create non approved leave request for employee if he/she is absent.
I want to generate leave request for employee and then should go for approval.
I tried PT_ARQ_REQUEST_EXECUTE FM but didn't work for me.
Overall I want to know that is there any standard SAP solution for creating leave (non approved) of employee if he/she is absent or please suggest any solution.