Skip to Content
0
Former Member
Jan 05, 2006 at 10:24 AM

BAPI_MATERIAL_SAVEDATA not updating the materials

1541 Views

Hi Folks,

I am trying using the BAPI_MATERIAL_SAVEDATA to change the MRP Type of the existing articles. Basically to mass update the articles.I am passing the Material only to the BAPIMATHEAD parameter and also populating the BAPI_MARC where the MRP type has to be changed and I also populate the corresponding BAPI_MARCX with 'X' that has to be changed to the Function Module. I could find when debugging the error message E 091 MH 'You must use retail functions to process the article' that is generated from another function module MATERIAL_MAINTAIN_DARK 'within BAPI_MATERIAL_SAVEDATA. I am using the FM as given below.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = i_bapimathead

  • CLIENTDATA = i_bapimara

  • CLIENTDATAX = i_bapimarax

PLANTDATA = i_bapimarc

PLANTDATAX = i_bapimarcx

IMPORTING

RETURN = i_bapireturn.

  • TABLES

  • MATERIALDESCRIPTION =

  • UNITSOFMEASURE =

  • UNITSOFMEASUREX =

  • INTERNATIONALARTNOS =

  • MATERIALLONGTEXT =

  • TAXCLASSIFICATIONS =

  • RETURNMESSAGES =

  • PRTDATA = i_BAPIHM

  • PRTDATAX = i_BAPIHMX.

  • EXTENSIONIN =

  • EXTENSIONINX =

Please help me understand if I have missed anything as why I am getting this error message. Many thanks.

Regards,

Tim