on 10-30-2012 4:59 AM
Hello experts,
We are into SRm 7.0, process controlled workflow.
I am trying to get document guid in /SAPSRM/IF_WF_AREA~GET_RESPONSIBLE_APPROVERS method of customized z class.
To get document GUID, I am using instance from /SAPSRM/CL_CH_WD_BO_MAPPER.
Following is my code.
data : guid_instance TYPE REF TO /SAPSRM/CL_CH_WD_BO_MAPPER.
sc_guid TYPE bbp_guid.
CALL METHOD GUID_INTANCE->/SAPSRM/IF_CLL_BO_MAPPER~GET_BO_GUID
RECEIVING
RV_BO_GUID = sc_guid
But this SC_GUID returns NULL value. I am not able to figure out why it is passing NULL value. is there anything wrong ? Earlier I had tried using /SAPSRM/CL_CH_WD_TASKCONT_FACT. But it also returned NULL value. Is there anything else I need to declare ?
Please share your ideas/suggestions.
Best regards.
Experts,
Any inputs/suggestion/advice ?
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Experts,
Please share your ideas/experience.
How to pass document guid from item map or area guid to get responsible approvers ? GET_BO_GUID method returns null value of guid. It didn't work for me. Import/export from/to memory id works but it is certainly not OO context.
Please advise.
Best regards.
Abhijit.
Hi Abhijit,
You can take as examples the standard delivered resolver examples. Such as RR_EMPLOYEE (/SAPSRM/CL_IM_WF_RR_EMPLO)
* Get responsibility area reference for given area GUID
lo_area = /sapsrm/cl_wf_area=>/sapsrm/if_wf_area~get_instance_by_guid(
iv_area_type = /sapsrm/if_wf_process_c=>gc_area_type_employee
iv_area_guid = is_area-area_guid
).
* Return all responsible users assigned to that area
rt_approver = lo_area->get_responsible_approvers( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.