cancel
Showing results for 
Search instead for 
Did you mean: 

BRF--> calling an attribute from one method to other

Former Member
0 Kudos

Hello Experts,

We are working in SRM 7.0 process controlled workflow using BRF. We have a situation where we have to pass document_guid from item map to area_guid method. Therefore I created a customized z attribute in a following way.

attribute level visibility typing associated type

Zgc_GUID Instance Attribute public type ref to zcl_**************

in my item map I am doing following.

zgc_guid =  is_document-document_guid.
    export zgc_guid from zgc_guid to memory id 'Z_GUID' .

in my are_guid methid i am getting using import like the following.

import zgc_guid  = zgc_guid  from  memory id 'Z_GUID' .
 lo_area = /sapsrm/cl_wf_area=>/sapsrm/if_wf_area~get_instance_by_guid(
    iv_area_type = 'ZCL_******************'' "/sapsrm/if_wf_process_c=>gc_area_type_manager " " " "'ZCL_WF_APV_FACADE'  "
    iv_area_guid = ZGC_GUID "is_area-area_guid "
    ).

I want to know is it standard and valid technic to achieve this or is there any OO abap way to do so ? Doing like this I am getting desired results but I would like to confirm whether this is correcr way of doing so or not. If not please advise how to add customized z attribute in item_map method and how to call it using "/sapsrm/if_wf_process_c=>z customized attribute

Thank you in advance.

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Experts,

Please reply.

I don't think import/export is the right way to use in OO abap context.

Please share your ideas.

Best regards.