cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ASSIGNED_FUS don't found in BOBX

Jimmy21
Participant
0 Likes
1,220

I have to retrieve data from /SCMTMS/TOR > ROOT > ASSIGNED_FUS using BOPF with ABAP. When I enter from BOBT t-code I found the value, but when I try to seach the path and structures in BOBX t-code I can't it. Please can you help me?

BOBT

BOBX

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion

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

Jimmy21
Participant

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 ).
Dominik_Tylczynski
SAP Champion
SAP Champion

jimmy.moreno See my updated answer.

Answers (0)