Hi All,
I am working on following SRM version
SRM_PLUS 702 0006 SAPK-70206INSRMPLUS SRM_PLUS for mySAP SRM
SRM_SERVER 702 0006 SAPK-70206INSRMSRV SRM_SERVER
And am using process controlled workflow.
My SC workflow has two level.
I have a requirement where for a SC for first level, after the deadline has reached i have to auto approve the SC level and SC should move to level 2.
I have written Pre exit in class /SAPSRM/CL_WF_EVENT_ADAPTER, method TRIGGER_EVENT.
To achieve this i tried many options :
1. Using FM SAP_WAPI_EXECUTE_WORKITEM, SAP_WAPI_DECISION_COMPLETE
Result: Work item complete , workflow level still not completed
2. Use FM BBP_PD_SC_STATUS_CHANGE_WF
Result : No impact on SC workflow
4. Use method /sapsrm/cl_wf_process_mgr_sbwf=>system_decision
Result No impact on SC work flow
5. Used sc_adv class to set the decision
Result : No impact on SC workflow
lo_pdo_bo_sc_adv ?= /sapsrm/cl_pdo_factory_sc_adv=>get_instance(
iv_header_guid = iv_document_guid
iv_mode = /sapsrm/if_pdo_constants_gen_c=>gc_mode_approval
iv_user_id = sy-uname
iv_user_language = sy-langu
iv_wiid = lv_workitem_id
).
lo_pdo_bo_sc_adv->/sapsrm/if_pdo_do_approvalstat~set_item_decision( it_item_status = lt_item_approval_stat ).
lo_pdo_bo_sc_adv->/sapsrm/if_pdo_adv_base~submit_decision(
CHANGING
co_message_handler = lo_pdo_msg_consumer " Methods for message handling
Can anyone suggest an option which i should try?
Regards,
Ashish Shah