on 09-24-2008 1:42 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.