cancel
Showing results for 
Search instead for 
Did you mean: 

BRF--Document GUID value returns NULL.

Former Member
0 Kudos

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.



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Experts,

Any inputs/suggestion/advice ?

Best regards.

Former Member
0 Kudos

Hello Gurus,

Please share your ideas.

I am able to get this document guid using export and import.

This is certainly not the best solution available and it is also not in OO ABAP context.

Please guide.

Best regards.

Abhijit.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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( ).