Skip to Content
author's profile photo Former Member
Former Member

problem on function "BAPI_MATERIAL_SAVEDATA"

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2007 at 10:42 AM

    the same problem as yours!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2007 at 10:46 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 02:22 PM

    Hi Joby,

    Try populating the following tables in the BAPI

    UNITSOFMEASURE LIKE BAPI_MARM

    UNITSOFMEASUREX LIKE BAPI_MARMX

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.