2009 Jul 20 8:18 AM
hi all
I am trying to update moving price of a material, but it seems that BAPI_MATERIAL_SAVEDATA does not work. I also tried other fm found searching the forum; but for each of these, I get no error .. but no update is made on material. can anybody please help me?
thanks
gabriele
2009 Jul 20 8:29 AM
hi all
I am trying to update moving price of a material, but it seems that BAPI_MATERIAL_SAVEDATA does not work. I also tried other fm found searching the forum; but for each of these, I get no error .. but no update is made on material. can anybody please help me?
thanks
gabriele
2009 Jul 20 8:29 AM
2009 Jul 20 9:29 AM
Hi,
Try
BAPI_M_REVAL_CREATEPRICECHANGE BAPI: Material Revaluation u2013 Generate Price Change
2009 Jul 20 9:46 AM
HI ,
BAPI_MATVAL_PRICE_CHANGE
You use this BAPI to change material prices. If stock exists for the material, a revaluation posting will be created.
Regards ,
Shankar GJ
2009 Jul 20 11:51 AM
I have already tied this, and the bapi_ret2 tells me that operation is ok. .. but in mm03 price is not changed. can someone please paste a code sample to see where is my error? this is what I tried:
DATA price_table TYPE TABLE OF bapi2027_pc_list.
DATA wa LIKE LINE OF price_table.
wa-plant = 'Division'.
wa-material = 'Material'.
wa-change_mov_price = new_price.
INSERT wa INTO TABLE price_table.
CALL FUNCTION 'BAPI_M_REVAL_CREATEPRICECHANGE'
EXPORTING
comp_code = 'Company Code'
pstng_date = sy-datum
* IMPORTING
* ML_DOC_YEAR =
* ML_DOC_NUM =
TABLES
material_price_list = price_table
return = ret
.
IF ret IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
.
2009 Jul 20 12:07 PM
2009 Jul 20 1:04 PM
I already see that post I can confirm that the bapi is deactivated and does not worl anyway ... debugging, I changed the value of error_flag in runtime, letting the bapi go on .. but no update
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |