Quantcast
Channel: SCN : Discussion List - BOPF Application Framework
Viewing all articles
Browse latest Browse all 249

Change item didnt´t work.

$
0
0

Hi experts.truck

I'm working in TM web dynpro aplication .In the process I mark 3 unit freight and  one truck then should be created 1 order freight with this 3 units.

caminhão.png

But after saved the order is created without the 3 units:

ca3.png

 

 

I need understand why isnt created.

 

CLEAR lt_mod.

 

   CALL METHOD /scmtms/cl_mod_helper=>mod_create_multi

     EXPORTING

       it_data = lt_fo_root

       iv_node = /scmtms/if_tor_c=>sc_node-root

     CHANGING

       ct_mod  = lt_mod.

 

   /scmtms/cl_mod_helper=>mod_create_multi(

     EXPORTING

       it_data        = lt_fo_item

       iv_node        = /scmtms/if_tor_c=>sc_node-item_tr

       iv_source_node = /scmtms/if_tor_c=>sc_node-root

       iv_association = /scmtms/if_tor_c=>sc_association-root-item_tr

     CHANGING

       ct_mod         = lt_mod ).

 

   /scmtms/cl_mod_helper=>mod_create_multi(

     EXPORTING

       it_data        = lt_fo_stop

       iv_node        = /scmtms/if_tor_c=>sc_node-stop

       iv_source_node = /scmtms/if_tor_c=>sc_node-root

       iv_association = /scmtms/if_tor_c=>sc_association-root-stop

     CHANGING

       ct_mod         = lt_mod ).

 

   /scmtms/cl_mod_helper=>mod_create_multi(

     EXPORTING

       it_data        = lt_fo_succ

       iv_node        = /scmtms/if_tor_c=>sc_node-stop_successor

       iv_source_node = /scmtms/if_tor_c=>sc_node-stop

       iv_association = /scmtms/if_tor_c=>sc_association-stop-stop_successor

       iv_do_sorting  = abap_true

     CHANGING

       ct_mod         = lt_mod ).

 

   /scmtms/cl_mod_helper=>mod_create_multi(

     EXPORTING

       it_data        = lt_fo_summary

       iv_node        = /scmtms/if_tor_c=>sc_node-summary

       iv_source_node = /scmtms/if_tor_c=>sc_node-root

       iv_association = /scmtms/if_tor_c=>sc_association-root-summary

     CHANGING

       ct_mod         = lt_mod ).

 

   CLEAR: lv_error.

 

   lo_fo_srvmgr = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( /scmtms/if_tor_c=>sc_bo_key ).

 

   lo_fo_srvmgr->modify(

     EXPORTING

       it_modification = lt_mod

     IMPORTING

       eo_change = lo_change

       eo_message = lo_message ).

 

   IF lo_message IS BOUND .

     /scmtms/cl_common_helper=>msg_convert_bopf_2_bapiret2(

        EXPORTING

          io_message  = lo_message

        CHANGING

          ct_bapiret2 = lt_return[] ).

 

     lo_message->get_messages(

       EXPORTING

         iv_severity             'E'

       IMPORTING

         et_message              = lt_message ).

 

     IF lt_message IS NOT INITIAL.

       lv_error = 1.

     ENDIF.

   ENDIF.

 

 

 

All code is attached

thasnks


Viewing all articles
Browse latest Browse all 249

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>