Update Material Gross Weight with Idoc MATMAS_BAPI

Hello guys,
I am trying to update the material gross wight of the basic view, and whenin code is executing BAPI_MATERIAL_SAVEDATE gives an error that material is inconsistent.
I tried to execute the same in SE37 and the result is OK.
There's something I have to inform?
Actually I inform in the idoc:
E1BPMATHEAD - MATNR
E1BPMATHEAD - BASIC_VIEW
E1BP_MARM-ALT_UNIT
E1BP_MARM-GROSS_WT
E1BP_MARM-UNIT_OF_WT
There's something i have forgotten to fill?
Many thanks id advance.
Regards,
Xavi.

Hello guys,
I have an error when I create the idoc manually in transaction WE19.
The error is that the field MATNR has been entered incosistent or empty.
The field matnr is filled with length 18 in we19.
Do you know what could be the error?
Many thanks.
Regards,
Xavi.

Similar Messages

  • Best way to update material gross weight

    Hello guys,
    I have a question, which is best to use to update material gross weight with an inbound interface? Proxy or Idoc?
    With proxy we have seen the function BAPI_MATERIAL_SAVEDATA.
    Wich kind of Idoc could be use? And what's the minimum information to send in the the idoc to update the material?
    Many thanks in advance.
    Regards,
    Xavier.

    Hello Mithun,
    I want to update the basic data of the material.
    What is the minimum data for Idoc MATMAS05?
    Regards,
    Xavier.

  • Badi for updating Item Gross Weight  (VL01N)

    Hi All
    I am using interface CHANGE_DELIVERY_ITEM and
    FILL_DELIVERY_ITEM of defination name LE_SHP_DELIVERY_PROC to change the gross weight of delivery item.  System is allowing me to change the gross weight in interface CHANGE_DELIVERY_ITEM but is not getting saved in the database.
    Please Advice.
    Ravindra Suvarna

    Hi!
    I have not seen any hint, that this is not possible. But this is difficult to say without own test data, so you have to make some more checks.
    Just place a break-point in your coding and debug a little bit starting with your new gross weight. Look, where it is overwritten again. Maybe it's very soon / easy to find. Think about watch points, too (but there can be a lot of different tables involved).
    Regards,
    Christian

  • Updatable materialized view- error with CREATE_SNAPSHOT_REPGROUP

    I'm trying to create an updatable materialized view from the replication administrators account (REPADMIN). I use the assistant and in the third step (after creating the replication group and the materialized view), when the materialized view is going to be added to the group, I got this error:
    ERROR in line 1:
    ORA-01403: No data found
    ORA-06512: in "SYS.DBMS_REPCAT_SNA_UTL", line 5927
    ORA-06512: in "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: in "SYS.DBMS_REPCAT", line 1332
    ORA-06512: in "SYS.DBMS_REPCAT", line 1307
    ORA-06512: in line 2
    I have also tried to use the command file that the assistant generates (I add below), and the error is triggered within the CREATE_SNAPSHOT_REPOBJECT procedure.
    Has anybody any idea to resolve the problem?
    Thanks in advance
    BEGIN
    DBMS_REPCAT.CREATE_SNAPSHOT_REPGROUP(
    gname => '"MYGROUP"',
    master => 'DB.DOMAIN.COM',
    propagation_mode => 'ASYNCHRONOUS');
    END;
    CREATE SNAPSHOT "MYUSER"."MYTABLE"
    REFRESH COMPLETE WITH ROWID
    FOR UPDATE
    AS SELECT "COD", "NAME" FROM
    "MYUSER"."MYTABLE"@DB.DOMAIN.COM c
    BEGIN
    DBMS_REFRESH.ADD(
    name => '"MYUSER"."REF3"',
    list => '"MYUSER"."MYTABLE"',
    lax => TRUE);
    END;
    BEGIN
    DBMS_REPCAT.CREATE_SNAPSHOT_REPOBJECT(
    gname => '"MYGROUP"',
    sname => '"MYUSER"',
    oname => '"MYTABLE"',
    type => 'SNAPSHOT',
    min_communication => FALSE);
    END;

    Hello,
    These days I have had some problems with my forum-account and I haven't been able to connect and reply.
    Regarding to your doubt, the name of refresh group was correct, and as I see, the problem can't be related to the refresh group.
    While the problem with my account was resolved, I created two new databases (*) and the problem within the materialized view process is disappeared. I suppose that my first original databases were degraded, but I don't know where.
    (*) of course, I could do that because I use Oracle in an academy institution, not for production, thank God
    Anyway, for now I will give up here. Thanks for your help.
    Regards,

  • Control Material Master Views with IDOC load

    Hello all,
    I am wondering how best to control which views are available during IDoc processing for Material Master. 
    For example I just want the Basic Data 1 and Basic Data 2 tabs, I am only populating the relevant data and placing a value of u201CKu201D in the Maintenance Status fields.  This seems to work and avoids the warnings I seem to encounter when I neglect to add values for the Maintenance Status fields. 
    The warning I get at times tell me the IDoc is attempting to extend all available views, then it makes them available once I view my Material with MM03, however because there is no data in them I canu2019t go into the tabs.  That is fine because I can go to the Basic data tabs, but I was disappointed to see the other tabs enabled, but inaccessible.
    With Direct Input I used to be able to simply indicate which views I want.  Now it seems I must request the maintenance views that then translate to actual views.
    Please help.
    Thanks

    Yes I have experience in that area, and I fill the PSTAT as well. But you can also run a program (is in IMG > Logistic Gerneral > material master) to regenerate PSTAT after you have loaded all materials.
    I use IDOC loading method for SAP system mergers. Sent Material master in legacy system using ALE as IDOC collection to a file, then use this file as source for LSMW, and as IDOC to IDOC mapping is just 1:1 I use use this methd in this case.
    When loading from Excel file, I started using BAPI import method a few rollout waves back (but not because there is something difficult with IDOC, just to get used to this method).

  • Problem update IBAN bank details with IDOCs segment E1KNBKM

    Hi all,
    i use Idoc DEBMAS07 in which i use the segment E1KNBKM to create IBAN in customer bank details. If bank details do not exist, the IDOC is integrated, IBAN is created.
    If i recreated the same Idoc, with same data (just change bank name) the Idoc is in error with the message : 'No batch input data for screen SAPMF02D 0130'.
    In debugging, we see that the dynpro sequence is wrong. For vendors it's work. I can create and update IBAN.
    i don't find SAP notes, or help forum on this problem.
    Any ideas ?
    Thanks
    Edited by: ToraTora on Aug 17, 2011 11:16 AM

    maybe you are the first who encountered this error, open a call at SAP yourself

  • BAPI_MATERIAL_MAINTAINDATA_RT update gross weight for generic article

    Hi, I want to update the gross weight (MARM-BRGEW) for a generic article and it's variants. Sometimes, the new gross weight is not propagate to all the article related variants when I'm using BAPI BAPI_MATERIAL_MAINTAINDATA_RT ??
    In the structure headdata, I just pass the article number and flag the basic_view. I used 2 internal table for the unit of measures (bapie1marmrt, bapie1marmrtx).
    Example of my source code:
      st_headdata-material   = st_marm-matnr.
      st_headdata-matl_cat   = st_marm-attyp. (01 for generic)
      st_headdata-ref_matl   = st_marm-matnr.
      st_headdata-basic_view = 'X'.
      st_bapimarm-material   = st_marm-matnr.
      st_bapimarm-alt_unit   = st_marm-meinh.
      st_bapimarm-numerator  = st_marm-umrez.
      st_bapimarm-denominatr = st_marm-umren.
      st_bapimarm-gross_wt   = pa_brgew.
      st_bapimarm-unit_of_wt = st_marm-gewei.
      st_bapimarmx-material   = st_marm-matnr.
      st_bapimarmx-alt_unit   = st_marm-meinh.
      st_bapimarmx-numerator  = 'X'.
      st_bapimarmx-denominatr = 'X'.
      st_bapimarmx-gross_wt   = 'X'.
      st_bapimarmx-unit_of_wt = 'X'.
      APPEND: st_bapimarm   TO tp_bapimarm,
              st_bapimarmx  TO tp_bapimarmx.
      CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
        EXPORTING
          headdata        = st_headdata
        IMPORTING
          return          = st_return
        TABLES
          unitsofmeasure  = tp_bapimarm
          unitsofmeasurex = tp_bapimarmx.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Let's say my article has 3 unit of mesasure which are EA, PAK, CAR. The base unit of measure of the articles (generic + variants) are EA.
    MARM example BEFORE calling the bapi
    MATNR           MEINH   UMREZ   UMREN  BRGEW
    A011125             KAR     48     1      33
    A011125A10090     KAR     48     1      33
    A011125A10091     KAR     48     1      33
    A011125A10092     KAR     48     1      33
    A011125A10093     KAR     48     1      33
    A011125B10590     KAR     48     1      33
    A011125B10591     KAR     48     1      33
    A011125B10592     KAR     48     1      33
    A011125B10593     KAR     48     1      33
    A011125W10090     KAR     48     1      33
    A011125W10091     KAR     48     1      33
    A011125W10092     KAR     48     1      33
    A011125W10093     KAR     48     1      33
    MARM after calling the BAPI with a new BRGEW of 34
    MATNR           MEINH   UMREZ   UMREN  BRGEW
    A011125             KAR     48     1      34
    A011125A10090     KAR     48     1      34
    A011125A10091     KAR     48     1      34
    A011125A10092     KAR     48     1      34
    A011125A10093     KAR     48     1      33
    A011125B10590     KAR     48     1      34
    A011125B10591     KAR     48     1      33
    A011125B10592     KAR     48     1      33
    A011125B10593     KAR     48     1      34
    A011125W10090     KAR     48     1      34
    A011125W10091     KAR     48     1      33
    A011125W10092     KAR     48     1      34
    A011125W10093     KAR     48     1      34
    I don't think that a locking problem....

    Please open a customer message with the detail data, so I will have a look at your system.
    But I remember that there should be a note for that
    Regards
    B

  • Gross weight not picked in delivery created by vl10d.

    Hi All,
      I am creating background delivery for STO by tcode vl10d. For a particular material gross weight is maintained in material master but it is not geting displayed in gross weight field after creating delivery in loading tab. wat may the cause of this problem & how it can be removed???
    urgent help reqd....
    Thanx
    Deepak Kumar

    Hi Deepak
    It is flowing in sales order??
    Thanks
    G. Lakshmipathi

  • BAPI_MATERIAL_SAVEDATA  Gross weight BRGEW

    Hello,
    searched the forum and found older entries regarding transfer of the gross weight with BAPI_MATERIAL_SAVEDATA.
    But all adivises I read do not help.
    I am aware how to use the BAPI and the tables.
    So here the facts:
    Base unit of measure and net weight are passed with CLIENTDATA and corresponding CLIENTDATAX.
    As gross weight BRGEW is required field the error message appears.
    Logical until now.
    Now there is the table UNITSOFMEASURE and UNITSOFMEASUREX.
    They are for alternative unit of measures.
    Some posted to use that to fill gross weight.
    Ok. I fill the tables:   lw_MARM = UNITSOFMEASURE
        MOVE p_lw_data-meins TO lw_marm-alt_unit.
        MOVE p_lw_data-ntgew TO lw_marm-gross_wt.
        MOVE p_lw_data-gewei TO lw_marm-unit_of_wt.
        APPEND lw_marm TO p_lt_marm.
        MOVE p_lw_data-meins TO lw_marmx-alt_unit.
        MOVE c_charx TO lw_marmx-gross_wt.
        MOVE c_charx TO lw_marmx-unit_of_wt.
        APPEND lw_marmx TO p_lt_marmx.
    ==> Now the message M3332 appears.
    The alternative unit of measure is the same as the base unit of measure
    And yes it is of course the same. I do not want to enter an alternative one.
    Could the ISO code help?
    But it should not be the key really.
    I would be glad to get some answers on this.
    BR

    Hello,
    searched the forum and found older entries regarding transfer of the gross weight with BAPI_MATERIAL_SAVEDATA.
    But all adivises I read do not help.
    I am aware how to use the BAPI and the tables.
    So here the facts:
    Base unit of measure and net weight are passed with CLIENTDATA and corresponding CLIENTDATAX.
    As gross weight BRGEW is required field the error message appears.
    Logical until now.
    Now there is the table UNITSOFMEASURE and UNITSOFMEASUREX.
    They are for alternative unit of measures.
    Some posted to use that to fill gross weight.
    Ok. I fill the tables:   lw_MARM = UNITSOFMEASURE
        MOVE p_lw_data-meins TO lw_marm-alt_unit.
        MOVE p_lw_data-ntgew TO lw_marm-gross_wt.
        MOVE p_lw_data-gewei TO lw_marm-unit_of_wt.
        APPEND lw_marm TO p_lt_marm.
        MOVE p_lw_data-meins TO lw_marmx-alt_unit.
        MOVE c_charx TO lw_marmx-gross_wt.
        MOVE c_charx TO lw_marmx-unit_of_wt.
        APPEND lw_marmx TO p_lt_marmx.
    ==> Now the message M3332 appears.
    The alternative unit of measure is the same as the base unit of measure
    And yes it is of course the same. I do not want to enter an alternative one.
    Could the ISO code help?
    But it should not be the key really.
    I would be glad to get some answers on this.
    BR

  • Overwriting the Gross-Weight (E1VPDLI-BRGEW) from inbound idoc sdpiid01

    Hi All,
    We are creating document to update confirmation quatities in SAP with inbound idoc SDPICK.SDPIID01 from 3rd party system using XI. We have the correct Gross-Weight(E1VPDLI-BRGEW) in the Idoc, but while posting into SAP, the value getting over-write with I guess net weight. Does anybody know how to stop this Gross wt thing to overwtrie?? Any userexit that I could use for the same???
    Regards
    Navin

    .

  • Update new material master weight and dimension in open sales orders and de

    Hi,
    Iu2019m maintaining gross weight, net weight, volume in material master. When the time of sales order entry in VA01 its calculating weight and dimensions based on material master and order quantity. And I create deliveries in VL01N.
    If I made a correction in the net and gross weight in material master after I created the sales order will the correct net and gross weight will pick up at the delivery creation.
    In other term is the VL01N net and gross weight is taking from which is available in SO or Material master.
    Is there any standard transaction to update already existing open sales order, delivery net and gross weight once it is corrected in material master?
    Please advice.
    Sam

    Is there any standard transaction to update
    No it is not possible to update the weight in existing sale order or delivery.  You have to change it manually or create a new sale order.   Weight in delivery will be fetched from sale order only and hence,  whatever delivery you create referencing a sale order, system will copy whatever is there.
    thanks
    G. Lakshmipathi

  • Wrong Gross Weight for Material in Sales Order at Item Level (Shipping Tab)

    Dear All,
    Except MMR, where we maintain gross weight for material?
    Or, from where Gross weight gets detrmined in Sales Order at item level (Shipping Tab)?
    Details,
    I've 2 Materials in Sales Order, Mat1 and Mat2.
    In both the MMRs, Gross weight is 1.080 Kg
    In sales Order Mat1 has Qty 18,000 Kg and gross weight is 19,440 Kg --> which is right.
    Mat2 has Qty 2,160 Kg and gross weight is 2,332,800 Kg --> which is wrong.
    I tried with maintaing another line item with Mat2 in Sales Order, for which again wrong gross weight is calculated.
    I also tried with creating another Sales Order with Mat2, and again the same problem.
    Thanks for your help, in advance.
    Regds,
    Yogi.

    Hi,
    Thanks. That has already been checked by me, in Basic data1 --> Additional Data --> Unit of measurements
    everything is maintained correctly.
    What I have noticed is:
    Instead of obtaining Gross weight as 1.080 (which is maintained), somehow system is picking 1,080 (don't know why and from where)?
    Regds,
    yogi

  • How to get the gross weight of the material after packing in delivery ?

    Hello,
    We need to print the gross weight of the material after packing which includes packing material weight and target quantity weight for each material in the delivery.
    From which table the gross weight of the material after packing can be retrieved.
    Regards,
    Mohan

    Hi Mohan,
    You can go through the thread it may help you.
    Pls help me in Packing
    Regards,
    V Srinivasan

  • LSMW Update Process with IDoc

    Hi Experts,
      We have an LSMW project to upload to create new activity in the CRM server and it has been working fine. Now we want to modify the project so that the existing data gets "updated" instead of creating a new activity.
    My question is..
    Is it possible to make data "updates" using LSMW.
    I tried adding more fields in  the existing project and now i get this error when i try to update. "Activity already exists in the system"
    I'd really appreciate your help and inputs.
    Thanks in advance
    Mani

    Hi Mani,
    I have gone through your query.
    When you use LSMW Idoc method to create the Activity with in the CRM system, you can definitely use the same project to update the Activity details as well. Follow the simple rules below.
    1. With the Basic type you have used to create Activity, in the rules for the segments change the task to Update.
    2. With this change done, for the segments you need to update the data, change and save them.
    3. After all these you can create and process the Idocs so that the activity details are updated.
    LSMW can be used to create, update and make changes with in permissible business objects. So definitely this update can be done. I hope this helps.
    Regards,
    Venkat

  • Export Material and Price Data with IDOC or BAPI?

    Hi SAP Experts,
    I found two ways to implement a Master Material and Price Export to an external system, first with IDOC MATMAS01 and Idoc COND_A with an enhancement VKOE0001 PRICING CONDITION.
    Here I don't know how I can match a material with tht sales price?
    And the second one with the BAPI. But how I create a BAPI for Material and Sales Price?
    And which is the better way?
    Thanks and Bye,
    Frederic

    Amit,
    it seems that the FU BAPI_MATERIAL_SAVEDATA is only for Create and Change Material Master Data. Is that correct?
    I've following Use Case, I will send e.g. one Material with the sales price to an external system (later all material with their sales price). And for that case I'm searching for a solution. Can you bring me on the correct way to implement something like that.
    I would be very pleased if you can help me.
    Bye,
    Frederic

Maybe you are looking for