Leave Request Creation and ptreq_header table
I am creating a leave request using the FMs
'PT_ARQ_REQUEST_PREPARE', 'PT_ARQ_REQUEST_CHECK' and 'PT_ARQ_REQUEST_EXECUTE'.
After that, it is generating a request ID, how do i check that the leave has been created in the system. I am presently cheking in the table ptreq_header, however the request ID is not present there? Am i on the right track? Please guide. How else can i find the request id and have proof that the leave has been created in the system?
Hi Partha ,
you are passing the Correct command to the Function module.
*Using program RPTARQUIATEST create a request and check whether its updating table PTREQ_HEADER. if it works use the below points to fix your program issue.*
In Program RPTARQUIATEST in the line No 514 a perform request_create_antrag is used ( inside the When 102 statement ). its is used in standard for creating the leave request.
below Function modules are called in a same sequence in that above mentioned perform.
CALL FUNCTION 'PT_ARQ_REQUEST_PREPARE'
CALL FUNCTION 'PT_ARQ_REQUEST_CHECK'
CALL FUNCTION 'PT_ARQ_REQUEST_EXECUTE'
Please check the code of the perform of program RPTARQUIATEST and check whether you are missing something.
Hope it helps.