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

BAPI_MATERIAL_SAVEDATA

Using BAPI_MATERIAL_SAVEDATA trying to create a Material but ended up with the following error:

Unit of measure ****** is not defined; check your entry

can any one give some tipps to overcome this error?

Satish.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2008 at 10:47 AM

    Hi,

    Check the Unit Of Measure (UOM) you are giving, is it defined in the system. Consult your functional consultant.

    Thanks & Regards,

    Navneeth K.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2008 at 10:56 AM

    Hello,

    It will help you try in this way.

    DATA : y_wa_bapi_header TYPE bapimathead,

    y_wa_return TYPE bapiret2,

    DATA : y_i_extin TYPE STANDARD TABLE OF bapiparex,

    y_i_extinx TYPE STANDARD TABLE OF bapiparexx.

    y_wa_bapi_header-material = y_wa_yrevlev-indust_refer.

    y_wa_bapi_header-matl_type = mara- mtart.

    y_wa_bapi_header-mrp_view = 'X'.

    y_wa_extin-structure = 'BAPI_TE_MARC'.

    y_wa_extin-valuepart1+0(4) = y_wa_yrevlev-werks.

    y_wa_extin-valuepart1+17(2) = y_wa_yrevlev-rev_lev.

    APPEND y_wa_extin TO y_i_extin.

    y_wa_extinx-structure = 'BAPI_TE_MARCX'.

    y_wa_extin-valuepart1+0(4) = y_wa_yrevlev-werks.

    y_wa_extinx-valuepart1+17(2) = y_lk_x.

    APPEND y_wa_extinx TO y_i_extinx.

    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

    EXPORTING

    headdata = y_wa_bapi_header

    IMPORTING

    return = y_wa_return

    TABLES

    extensionin = y_i_extin

    extensioninx = y_i_extinx.

    APPEND y_wa_return TO y_i_return.

    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.