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

How to create an entry in COMMON_TM subnode of BO /SCMTMS/BUPA?

mustafa_74199
Participant
0 Likes
616

Hi everyone,

My question is very simple. How can i create any entry in the COMMON_TM subnode? When i try to create it with the button as you can see in the first picture, i get dump. (2. picture). I also wrote down my own logic (the code snippet below). But save method throws an exception and i get dump again. (3. picture)

        CREATE DATA ld_data.<br>        ld_data->kunnr = <ls_data_bp>-partner.<br><br>        APPEND INITIAL LINE TO lt_mod ASSIGNING FIELD-SYMBOL(<ls_mod>).<br>        <ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.<br>        <ls_mod>-node        = /scmtms/if_bp_c=>sc_node-common_tm.<br>        <ls_mod>-data        = ld_data.<br>        <ls_mod>-key         = <ls_data_bp>-root_key.<br>        <ls_mod>-source_key  = <ls_data_bp>-root_key.<br>        <ls_mod>-source_node = /bofu/if_bupa_constants=>sc_node-root.<br>        <ls_mod>-association = /scmtms/if_bp_c=>sc_association-root-common_tm.<br><br>        lo_srv_mgr->modify( EXPORTING it_modification = lt_mod ).<br><br>        lo_trans_mgr->save( IMPORTING ev_rejected = DATA(lv_rejected) ).<br>
<img data-attachment="2038541" src="/storage/temp/2038541-image.png" alt="image.png" style="background-color: initial; font-family: Arial, Helvetica, Verdana, Tahoma, sans-serif; font-size: 15px; white-space: normal; color: inherit;">

Accepted Solutions (0)

Answers (0)