cancel
Showing results for 
Search instead for 
Did you mean: 

How to change PO price by BADI ME_PROCESS_PO_CUST

CCyndy
Discoverer
0 Kudos
172

While I am changing PO price at ME_PROCESS_PO_CUST~PROCESS_ITEM with code like followed, but the price will be changed after check(save) button clicked.

    DATAlt_pr1      TYPE mmpur_tkomv.
    CALL METHOD im_item->get_conditions
      IMPORTING
        ex_conditions lt_pr1.

    READ TABLE lt_pr1 ASSIGNING FIELD-SYMBOL(<pr1>WITH KEY kschl 'PB00'.
    IF sy-subrc 0.
      <pr1>-kbetr <pr1>-kposn.
      CALL METHOD im_item->set_conditions
        EXPORTING
          im_conditions lt_pr1.
    ENDIF.

as the code , I succeed change price of item 10 to 10, and item 20 to 20; but after I saved it or clicked the check button, the price of item 20 will be changed to 10
View Entire Topic
Azeemquadri
Contributor
0 Kudos

When do you want the price change to happen. Does it happen on save.

CCyndy
Discoverer
0 Kudos

as the code , I succeed change price of item 10 to 10, and item 20 to 20;

but after I saved PO or clicked the check button, the price of item 20 will be changed to 10

CCyndy
Discoverer
0 Kudos

..