on 2014 Jan 21 7:17 AM
Hi,
We are using auto Approval for shopping cart and adhoc approvers is allowed.
We have got a scenarion to make teh approver as mandatory based on one custom field.
I have tried to get the approved with the class /SAPSRM/CL_WF_APV_FACADE but i am not getting the data's .
We are getting data only after order but we need the data before ordering the SC.
Any suggestion?
Request clarification before answering.
Hello,
you can get SC process info in BAdI SC check:
DATA: lo_instance TYPE REF TO /sapsrm/cl_pdo_bo_sc_adv,
lo_pdo_sc TYPE REF TO /sapsrm/if_pdo_bo_sc,
lo_message_handler TYPE REF TO /sapsrm/if_pdo_msg_consumer.
DATA: ls_process_info TYPE /sapsrm/s_pdo_wf_process_info,
lo_pdo_sc = /sapsrm/cl_pdo_factory_sc_adv=>get_buffered_instance( iv_doc_guid ).
IF lo_pdo_sc IS BOUND.
lo_instance ?= lo_pdo_sc.
TRY.
lo_instance->/sapsrm/if_pdo_do_apv_ext~get_process_info(
IMPORTING
es_process_info = ls_process_info
CHANGING
co_message_handler = lo_message_handler
).
CATCH /sapsrm/cx_pdo_abort.
ENDTRY.
ENDIF.
In ls_process_info-proc_detail_list, you will have the process levels information.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.