Skip to Content
0
Former Member
Nov 14, 2012 at 08:23 PM

Help , Customization Done for 2 level approval of leave request

355 Views

Dear Experts, I need help


I have z copied std wf 12300011. I want to extend the no of approver levels from 1 in std wf to 3 levels


this code don't change the status to SENT when the leave request is modified, occurs a dump

ABAP Programming Error

UNCAUGHT_EXCEPTION

CX_OS_DB_INSERT

CA_PT_REQ_HEADER==============CP



DATA: request TYPE REF TO if_pt_req_request,
event TYPE tim_req_xfer_event VALUE cl_pt_req_const=>C_REQSTAT_SENT,
wf_request type TIM_REQ_ID .


CALL METHOD cl_pt_req_badi=>get_request
EXPORTING
im_req_id = wf_request
IMPORTING
ex_request = request.


CALL METHOD cl_pt_req_badi=>initiate_state_transition
EXPORTING
im_request = request
im_event = event
IMPORTING
ex_new_status = me->status.


what's happen?

Regards