Skip to Content
0
Former Member
Aug 06, 2007 at 08:03 AM

problem on function "BAPI_MATERIAL_SAVEDATA"

28 Views

hello friend,

When I use the function "BAPI_MATERIAL_SAVEDATA" to update a material data, I can update the data of these fields : Material group, Old material number

Division, Division. but I can not update the fields's data: Size/dimensions, Ind. std desc. When I creat a material use the function: "BAPI_MATERIAL_SAVEDATA", the same problem caused.

Anybody can help me? Thanks and Best Regards!

My code is below:

WA_HEADDATA-MATERIAL = 'xxxxxxxx'.

WA_HEADDATA-BASIC_VIEW = 'X'.

WA_CLIENTDATA-MATL_GROUP = 'xxxxxxxx'. "Material group

WA_CLIENTDATA-OLD_MAT_NO = 'xxxxxxxx' . "Old material number

WA_CLIENTDATA-DIVISION = 'xxxxx'. "Division

WA_CLIENTDATA-SIZE_DIM = 'xxxxxx'. "Size/dimensions

WA_CLIENTDATA-STD_DESCR = 'xxxxxx'. "Ind. std desc.

WA_CLIENTDATAX-MATL_GROUP = 'X'.

WA_CLIENTDATAX-OLD_MAT_NO = 'X' .

WA_CLIENTDATAX-DIVISION = 'X' .

WA_CLIENTDATAX-SIZE_DIM = 'X' .

WA_CLIENTDATAX-STD_DESCR = 'X' .

........

........

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

HEADDATA = WA_HEADDATA

CLIENTDATA = WA_CLIENTDATA

CLIENTDATAX = WA_CLIENTDATAX

  • PLANTDATA =

  • PLANTDATAX =

  • FORECASTPARAMETERS =

  • FORECASTPARAMETERSX =

  • PLANNINGDATA =

  • PLANNINGDATAX =

  • STORAGELOCATIONDATA =

  • STORAGELOCATIONDATAX =

  • VALUATIONDATA =

  • VALUATIONDATAX =

  • WAREHOUSENUMBERDATA =

  • WAREHOUSENUMBERDATAX =

  • SALESDATA =

  • SALESDATAX =

  • STORAGETYPEDATA =

  • STORAGETYPEDATAX =

  • FLAG_ONLINE = ' '

  • FLAG_CAD_CALL = ' '

  • NO_DEQUEUE = 'X'

IMPORTING

RETURN = WA_RETMSG

TABLES

MATERIALDESCRIPTION = I_MAKT

UNITSOFMEASURE = I_MARM

UNITSOFMEASUREX = I_MARMX

  • INTERNATIONALARTNOS =

MATERIALLONGTEXT = I_MLTX

  • TAXCLASSIFICATIONS =

  • RETURNMESSAGES =

  • PRTDATA =

  • PRTDATAX =

  • EXTENSIONIN =

  • EXTENSIONINX = .