cancel
Showing results for 
Search instead for 
Did you mean: 

SWC_get_property

Former Member
0 Kudos

I coded following to find the AGENT but anyhow its not working.I able to test object T024D with same object key in SWO1 but its not working in my report.

types: begin of ty_objectkey1,

Plant type WERKS_D,

Controller type DISPO,

end of ty_objectkey1.

data: ls_objectkey1 type ty_objectkey1 .

data: lf_T024D type SWC_OBJECT.

lt_agent TYPE SWP_AAGENT,

ls_objectkey1-plant = '5002'.

ls_objectkey1-Controller = 'B30'.

SWC_CREATE_OBJECT lf_t024d 'T024D' ls_objectkey1.

SWC_get_property lf_t024d 'Agent' lt_agent.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It corrects this line of the code :

Incorrect

- SWC_get_property lf_t024d 'Agent' lt_agent.

The "Agent" attribute does not exist and yes the "Agents".

correct

If sy-subrc is initial.

- SWC_get_property lf_t024d 'Agents' lt_agent.

endif.