Skip to Content
0
Former Member
Jun 12, 2009 at 10:36 AM

Issue in Update Standard Price using BAPI_M_REVAL_CREATE PRICE CHANGE

555 Views

Hi folks,

I was using BAPI_M_REVAL_CREATE PRICE CHANGE to update standard price, but this BAPI is not working for me..

Can anyone give me an example to run it?

My code is like this:

t_comp_code = t_thold_final-bukrs .

t_material_price_list-plant = t_final-werks.

t_material_price_list-material = t_final-matnr.

t_material_price_list-val_type = t_final-bwtar.

t_material_price_list-change_std_price = t_final-stprs.

APPEND t_material_price_list.

CLEAR t_material_price_list.

CALL FUNCTION 'BAPI_M_REVAL_CREATEPRICECHANGE'

EXPORTING

comp_code = t_comp_code

pstng_date = sy-datum

IMPORTING

ml_doc_num = w_mblnr

TABLES

material_price_list = t_material_price_list

return = t_return1.

Please help as after runing this there no error in return and no material document no created.

thanks,

varun

Edited by: Varun Gupta on Jun 12, 2009 4:06 PM

Edited by: Varun Gupta on Jun 12, 2009 4:08 PM