Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

material changing price

Former Member
0 Likes
2,018

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,635

Hi,

check that one:

BAPI_MATVAL_PRICE_CHANGE

Regards

Hi,

check that one:

BAPI_MATVAL_PRICE_CHANGE

Regards

6 REPLIES 6
Read only

Former Member
0 Likes
1,636

Hi,

check that one:

BAPI_MATVAL_PRICE_CHANGE

Regards

Read only

Former Member
0 Likes
1,635

Hi,

Try

BAPI_M_REVAL_CREATEPRICECHANGE BAPI: Material Revaluation u2013 Generate Price Change

Read only

Former Member
0 Likes
1,635

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

Read only

0 Likes
1,635

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        =
            .

Read only

0 Likes
1,635

Hi,

Refer

Read only

0 Likes
1,635

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