on ‎2022 Apr 08 1:21 PM
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;">
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 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.