Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: Modify component quantity field (ekpo-bdmng) before saving a process order (COR1)

$
0
0

Hi K,

 

I update just bdmng field at component_table. Maybe is needed to update more fields.  I've attached the code where I update component_table_old and component_table.

 

Best regards.

 

 

 


FIELD-SYMBOLS: <fs_componentes> LIKE LINE OF component_table,
               <fs_resto_comp>  LIKE LINE OF component_table.
.......>

**** Block to calculate component parameters and characteristics.
    >.......

 

*****Block to  copy all register which should be uploaded in COMPONENT_TABLE_OLD
 
  LOOP AT component_table ASSIGNING <fs_resto_comp> WHERE matnr NOT IN lr_materiales.

    IF <fs_resto_comp>-matnr = lv_matnr.
      append <fs_resto_comp> to  COMPONENT_TABLE_OLD .  
      lv_quant_h2o = lv_quant_h2o +  <fs_resto_comp>-bdmng.
      lv_cont = lv_cont + 1.
    ELSE.
      lv_quant_rest = lv_quant_rest +  <fs_resto_comp>-bdmng.
    ENDIF.

  ENDLOOP.
  .....
 

******Block to calculate new quantity of component
 
  .....

*****Block to update bdmng field in component table.
  
    LOOP AT component_table ASSIGNING <fs_componentes> WHERE matnr = lv_matnr.

        <fs_componentes>-bdmng = lv_bdmng.

    ENDLOOP.


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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