on 2023 May 15 5:49 AM
Request clarification before answering.
Hello jimmy.moreno
Go to "Node Elements", instead of node structure and to associations of the ROOT node in BOBX:
The associated node of ASSIGNED_FUS is TOR_ROOT:
The TOR_ROOT node is XBO (cross business object) node that leads to the ROOT node of /SCMTMS/TOR object:
The table type of /SCMTMS/TOR ROOT is /SCMTMS/T_TOR_ROOT_K:
Therefore /scmtms/if_tor_c=>sc_association-root-assigned_fus returns et_data as /SCMTMS/T_TOR_ROOT_K type.
DATA:
lt_tor_root_fu TYPE /scmtms/t_tor_root_k.
lo_svc_mngr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-root
it_key = lt_key
iv_association = /scmtms/if_tor_c=>sc_association-root-assigned_fus
iv_fill_data = abap_true
IMPORTING
* eo_message = DATA(lo_message)
* et_target_key = DATA(lt_fo_tem_tr_key)
et_data = lt_tor_root_fu "where can I find the structure for this?
EXCEPTIONS
OTHERS = 1 ).
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dominik, this is my second program using BOPF. I found the path but I don't see the structure for retrieve et_data:
lo_svc_mngr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-root
it_key = lt_key
iv_association = /scmtms/if_tor_c=>sc_association-root-assigned_fus
iv_fill_data = abap_true
IMPORTING
* eo_message = DATA(lo_message)
* et_target_key = DATA(lt_fo_tem_tr_key)
et_data = lt_tor_root_fu "where can I find the structure for this?
EXCEPTIONS
OTHERS = 1 ).
jimmy.moreno See my updated answer.
User | Count |
---|---|
7 | |
5 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.