cancel
Showing results for 
Search instead for 
Did you mean: 

Find Rule Resolution for MRP controller group objetct T024D

Former Member
0 Kudos

Hi,

I am using FM "RH_GET_ACTORS" to find the agent corresponding to plant and MRP controller the code

i am using is as follows,rule i am using is AC20000054

types: begin of ty_objectkey1,

Plant type WERKS_D,

Controller type DISPO,

end of ty_objectkey1.

data: lt_objectkey1 type standard table of ty_objectkey1,

ls_objectkey1 type ty_objectkey1 .

data: lf_T024D type SWC_OBJECT.

swc_container ac_container.

SWC_CREATE_CONTAINER ac_container.

ls_rule-object = 'AC20000054'.

ls_objectkey1-plant = '5000'.

ls_objectkey1-Controller = 'A12'.

SWC_CREATE_OBJECT lf_t024d 'T024D' ls_objectkey1.

SWC_SET_ELEMENT ac_container 'ORG_OBJECT_ID' lf_t024d .

CALL FUNCTION 'RH_GET_ACTORS'

EXPORTING

act_object = ls_rule-object

TABLES

actor_container = ac_container

actor_tab = lt_agent

EXCEPTIONS

no_active_plvar = 1

no_actor_found = 2

exception_of_role_raised = 3

no_valid_agent_determined = 4

no_container = 5

OTHERS = 6.

IF sy-subrc <> 0.

** Do Nothing*

ENDIF.

i maintained entries corresponding to Org Object T024D,but stll i am getting exception 3 in FM can anyone

guide me regarding the same.

Rushikesh

Accepted Solutions (0)

Answers (1)

Answers (1)

imthiaz_ahmed
Active Contributor
0 Kudos

Where did you write this code, since the rule does the job by itself if took care of the PFOM entries.

Regards, IA