Material Change using idoc

Hi Experts,
Need your advise,
Actually my scenario is, that i am creating the Material using inbound idoc with Basic Type: MATMAS05 and Message Type: MATMAS,
now i need to change the same material, how can i achieve that??
Say, I have created a Material with MATNR: ABC using inbound MATMAS idoc, now how can i change it??
Aayush

It always depends on what you need to change.
In general you just need a new IDOC with the new values for the same material number.
It will automatically overwrite the old values, except you want to change values that are no longer allowed to be changed.

Similar Messages

  • PO Delivery date change using IDOC type "PORDCR101"

    Hi All,
    I am trying to create a PO using idoc type "PORDCR101". Everything is fine, PO is getting created. But the problem is that, even if I pass delivery date at item level system is automatically changing delivery date to future date (some of the PO's have delivery date in past and they need to be created as it is).
    I am populating all the required fields (PO_ITEM, SCHED_LINE, DEL_DATCAT_EXT, DELIVERY_DATE, QUANTITY, STAT_DATE) in both the segements "E1BPMEPOSCHEDULE" and "E1BPMEPOSCHEDULEX" (in this segement with X). It's updating the quantity exactly with what I am passing, but it's not considering delivery date. But when I am creating PO manually using ME21N I am able to set delivery date to past date.
    E1BPMEPOSCHEDULE
    PO_ITEM=20
    SCHED_LINE=0001
    DEL_DATCAT_EXT=1
    DELIVERY_DATE=20060509
    QUANTITY=101584
    STAT_DATE=20060509
    E1BPMEPOSCHEDULEX
    PO_ITEM=20
    SCHED_LINE=0001
    PO_ITEMX     =X
    SCHED_LINEX=X
    DEL_DATCAT_EXT=X
    DELIVERY_DATE=X
    QUANTITY=X
    The funny part is IDOC is not even thowing a warning message for this...
    Any idea what I am missing???
    Thanks for your time.
    Paul
    null

    Ok, I got the answer. For delivery date category (DEL_DATCAT_EXT) we should not be passing 1, but we have to convert it into 'D' (And relevant format for others).

  • Error 'Enter order unit'  in PIR Change using IDOC INFREC01

    Hi All,
    I am creating Purchase info record using IDOC INFREC01 and condition type using IDOC COND_A04. Its working fine in case of create PIR.
    But If I pass PIR number in the upload with other fields to be chnaged then IDOC goes the in the error with status 51 , Error
    "Enter Order unit". I am passing both base unit of measure (MEINS) and purchase order unit (LMEIN).
    Kindly help find out the issue....!!!
    Thanks in advance.

    Hi,
    Check if you are passing the ISO code for unit of measure?
    Also, Try debug using WE19 and find out where you are getting the error.
    Hope it helps.
    Sujay

  • Material creation using IDOC

    Hi All
    We are trying to create a Material with just a Basic View using FM : IDOC_INPUT_MATMAS01, but we are unable to do the same since it returns errors about fields to be filled for other Material master views
    like Plant , Sales Organisation etc
    Has any one succesfully created a material using this FM
    Please let us know ,
    Thanks in advance

    Hi Sanjay,
    These are the related programs related to your question.
    RBDARTS2 Posting of retail materials to your own system via IDocs
    RBDARTST Reimport IDoc Directly to Inbound Processing of Retail Material Master
    RBDFEART Get retail material
    RBDFEMAT Get Material
    RBDMATS2 Post Materials via IDocs to Your Own System
    RBDMATST Reimport IDoc Directly to Inbound Processing for the Material Master
    RBDSEART Send retail material
    RBDSEART_DXWB Send Material (Data Transfer Workbench)
    RBDSEBOM Material BOM Distribution
    RBDSECNP Distribution of Configuration Profiles for Materials
    RBDSEMAT Send Material
    RBDSEPAM Plant allocations to material BOMs distribution
    RBDSESTT Distribution of material variants
    RBDSEWG1 Direct transfer of base material groups
    RBDSEWGR Direct Transfer of Material Group Hierarchies
    You can use this standard program to generate IDoc(s) for material master.
    RBDSEMAT
    RCCLMAT
    You can check the EDIDC (data control) of an IDoc (WE02) to ensure correct and match with your partner profile (WE20).
    Reward points if helpful.
    Regards,
    Harini.S

  • Need to transfer Custom infotype data using IDOCs

    Hi,
    My requirement is to transfer custom OM infotype changes using IDOCs.
    But its not creating any change pointers for that infotype.
    The message used is a copy of standard message OM_HRMD_A.
    Can any one please help me out in this issue.
    Thanks,
    Sarika

    You'll need to erase the drive by booting up holding command-option-r keys into your Recovery Volume.
    Use Disk Utility to erase the disk and then Internet Recovery. That will take a while.
    http://support.apple.com/kb/HT4718

  • Error when ECO and BOM creation using IDoc

    Hi experts,
    now i am doing an interface about ECO/BOM creation and changing using IDoc.The idoc type is ECMMAS02 ans BOMMAT04.
    since i know a little about ECO/BOM, can anyone provide some good materials for me?
    and i don't know which fields are mandatory in idoc segment, so i go to tansaction BD30 to run a BOM changing. i input a change number but the idoc log shows that change number does not exist. what is the change number using? where i can implement the changes, e.g, change the quantity? should the change number be used when creation and changing? how can i get this change number?
    thanks a lot in advance!

    Hi experts,
    now i am doing an interface about ECO/BOM creation and changing using IDoc.The idoc type is ECMMAS02 ans BOMMAT04.
    since i know a little about ECO/BOM, can anyone provide some good materials for me?
    and i don't know which fields are mandatory in idoc segment, so i go to tansaction BD30 to run a BOM changing. i input a change number but the idoc log shows that change number does not exist. what is the change number using? where i can implement the changes, e.g, change the quantity? should the change number be used when creation and changing? how can i get this change number?
    thanks a lot in advance!

  • ALE distribution of planned material changes made using MM12

    Greetings,
    I have searched and come up empty-handed looking for an answer, perhaps someone in this forum can point me in the right direction.  I am trying to find out if there is a tcode and idoc message type that will distribute a planned material change, prior to it's activation, while it is still in it's planned state.  While in the source system, I can see these changes in mm14, I do not see the "future" values as part of the MATMAS generated by a BD10, nor as part of the ECMMAS generated by a CC92 transaction.  Ideally we could allow material master changes in our source system on a future date using the same ECM number as a BOM change for example, and distribute these changes together to the target system, prior to the ECM effectivity, without further requiring a additional BD10 to be performed after the material change activation date.  Does anyone have advice on this?  Thank you for any info you can provide.

    1. Activate change pointers
    2. Customize it to check for status before activation and trigger the distribution. (I think it should generate even if the material is not activated so no customization required - but just test and confirm. It's been a while I've looked at this).
    3. Maintain this in your distribution model and distribute master data accordingly.

  • Matarial master changes for a particular material type using BD21

    Hi All,
    <b>I am facing one problem related to change pointer in ALE.</b>
    I have configured the ALE layer between two systems successfully.
    <b>I have used filter group</b> on material type and also I have done the <b>reduction of IDOC.</b>
    When I trigger the material master data changes using BD21, it triggers the data for all the material type where as I want to trigger the material master data chages to particular material type only.
    Can anybody suggest some solution for this.
    Note: Please don't say to use <b>filter group on material type</b>......I have already done that.
    The correct solution will be rewarded with 10 points!
    Thanks & Regards
    Prabhat

    The firs thing I would do is verify the config.  Make sure the message type of the created IDocs matches the message type to which the filter is applied in the distribution model.  If everything looks ok, place break-points at the following locations:
    In FM MASTER_IDOC_DISTRIBUTE, on the call PERFORM DIST_MODEL_READ_FOR_MESTYP.  This subroutine reads the filters from the distribution model.  Verify the values in internal table RECEIVERS_AND_FILTERS are correct.
    In FM MASTER_IDOC_DISTRIBUTE, in FORM IDOC_SELECTION_AND_SERVICES, on the call to FM IDOC_DATA_APPLY_FILTER_VALUES.  This function should return the filtered results.  IDOC_DATA contains the data segments of your IDoc and CONDITION_BLOCKS contains the filter.
    When you run BD21, you should hit these break-points.

  • Change Material Number using BAPI_PO_CHANGE, PO OrderUnit reset to base UoM

    Hi Experts,
    I am using IDOCs and BAPI_PO_CHANGE to update PO's in SAP (as PO's are created/maintained in an external system and interfaced to SAP). This works fine except for a change in the material number, the PO Order Unit is getting reset to the Base UoM of the Material Master and not the value from the BAPI(BAPIMEPOITEM-PO_UNIT).
    we are passing the following for BAPI_PO_CHANGE.
    POHEADER
    POHEADERX
    POITEM-PO_ITEM = '1000'
    POITEM-MATERIAL = 'MAT_B'
    POITEM-PLANT = '3001'
    POITEM-STGE_LOC =  '1000'
    POITEM-QUANTITY = '100.00'
    POITEM-PO_UNIT = 'SET'
    POITEM-ORDERPR_UN = 'SET'
    POITEM-PO_ITEM = '1000'
    POITEM-MATERIAL = 'X'
    POITEM-PLANT = 'X'
    POITEM-STGE_LOC =  'X'
    POITEM-QUANTITY = 'X'
    POITEM-PO_UNIT = 'X'
    POITEM-ORDERPR_UN = 'X'
    Say for the example above if the existing PO values are
    Material = MAT_A
    Quantity = 100.00
    PO Order Unit = SET
    after update from BAPI the values are
    Material = MAT_B (is getting update from BAPI fine)
    Quantity = 120.00 (recalculated based on base UoM)
    PO Order Unit = PC (resets to Base UoM and does not take value coming from BAPI?)
    The above is for PO's where there is no Purchase Order History yet, i.e., PO just created and then ammendment is coming thru.
    Would really appreciate any help/advise on this.
    Thanks so much.
    Sneha

    I have tried in ME22N and am able to change the material number and then PO unit to a specified unit (other then base) and save the PO ok.
    The variable order unit is allowed and we can create PO's in any unit (other then base UoM) and its working ok as well.
    Any other reason for the problem I am facing?
    Thanks.
    Sneha

  • Idoc for Material Change

    Hi Experts,
    The requirement is to receive a standard Idoc for material change and trigger the material creation process in case the material does not exist.
    Secondly, what is the Idoc for material change?
    Thanks and Regards,
    Ravi

    Hi,
    Go through the following Steps for Creating IDoc Via ALE
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Create Model View
    Tcode BD82 ? Generate partner Profiles & Create Ports
    Tcode BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error.
    hope this helps you.
    plz reward if useful.
    thanks,
    dhanashri.

  • Changing Material Type using BAPI

    Hi All,
    I am trying to change a material. I able to change many fields of the material  except 'Material Type' using BAPI_MATERIAL_SAVEDATA. 
    Did any one used BAPI_MATERIAL_SAVEDATA or any other BAPIs to change the material type of a material? I do not want to develop BDC for the same as of now.
    Thanks in advance.
    Regards,
    Rama

    Did you use BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE.
    Look also at this <a href="http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm">Sample Abap code on BAPI_PO_CHANGE</a>
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          PURCHASEORDER = T_POHEADER-PO
          POHEADER      = T_BAPI_POHEADER
          POHEADERX     = T_BAPI_POHEADERX
        TABLES
          RETURN        = T_BAPIRETURN
          POITEM        = T_BAPI_POITEM
          POITEMX       = T_BAPI_POITEMX.
      READ TABLE t_bapireturn WITH KEY type = c_err TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_x.
      ENDIF.
    Regards

  • Tcode CS02 changed triggers idoc but not CS21 using BD21

    Hi
    when bom is changed using CS02 then when using BD21 triggers IDOC for the message type
    but
    when bom is changed using CS21 then it does not trigger idoc using BD21
    I checked the code for BD21 message type function
    I found that change pointer (bdcp2-object id ) is different for both transaction CS02 and CS21.
    CS02 is updating object id with mast-stlal but this entry is missing for CS21
    I am not able to find how the table (BDCP , BDCP2) for change pointers is updated for bom change.
    Can you please let me know the patof code which i should check for updating  the change pointers entries in BDCP , BDCP2 for bom

    I checked the sap system is creating enteries in cdhdr change pointer usin fm STUE_V_WRITE_DOCUMENT . I checked that when used TCODE CS05 the entry is updated for stlal as
    In CS02  the entry for OBJID hold the value for stlal (Alternative BOM)
    ie 500M0001064220110914  01            20110914
    In CS21  the entry for OBJID does not hold the value for stlal (Alternative BOM)
    ie 500M0001064220110913                20110913 (entry missing for stlal)
    It clears the value of stlal . Is ther any sap note or configration setting for CS21 to get the value for alternative bom .

  • Upload material using idoc in lsmw

    hi ,
    i m trying to upload material using idoc inbound processing in lsmw. but whnever i m giving partner name as lsmw & port name as lsmw (even i tried with different name also ).  it gives error like port does not exits.
    regards,
    swapnil

    Hi ,
    Please foloow Link:[Check|http://****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm]
    Regrads
    Jana

  • Picking not done for a serialized material using Idoc type SHPCON/DELVRY03

    Hi All,
    I am using Idoc of type SHPCON/DELVRY03 to do the picking for an outbound delivery.
    The value 'PIC' is populated in the qualifier of segment E1EDL18 . In order to update the batch number of the material in a delivery the qualifier of segment E1EDL19 is populated with value 'BAS' .
    To update the serial numbers for a serialized material in an outbound deliverfy , BDC for transaction vl02n is used. Also the segment E1EDL24 is populated with material no. POSNR and other details , then segment E1EDL11 is having the value of serial no.  Similarly for other serial number there is one more segement E1EDL24 with same material no. but  E1EDL11 with other serial number.
    The issue is that after the Idoc is successfully processed , picking quantity is updated only for one serial number for a serialized material of the outbound delivery. The picking quantity for other serial number is not updated . Initially the delivered quantity for the serialized material was 2  but after processing the Idoc the picking qunatity updated is 1 ( for one serial number only ).
    Please provide any pointers on this.
    Thanks & Regards,
    Tanushri.

    The firs thing I would do is verify the config.  Make sure the message type of the created IDocs matches the message type to which the filter is applied in the distribution model.  If everything looks ok, place break-points at the following locations:
    In FM MASTER_IDOC_DISTRIBUTE, on the call PERFORM DIST_MODEL_READ_FOR_MESTYP.  This subroutine reads the filters from the distribution model.  Verify the values in internal table RECEIVERS_AND_FILTERS are correct.
    In FM MASTER_IDOC_DISTRIBUTE, in FORM IDOC_SELECTION_AND_SERVICES, on the call to FM IDOC_DATA_APPLY_FILTER_VALUES.  This function should return the filtered results.  IDOC_DATA contains the data segments of your IDoc and CONDITION_BLOCKS contains the filter.
    When you run BD21, you should hit these break-points.

  • The unit of issue cannot be changed because the material is used in BOM.

    Hi Pals
    Please could you help with the following:
    I have a request to change value in unit of issue field (Work Scheduling tab), current value if ZPC and i need to remove it and leave field blank.
    When i delete this value and press enter error message occurs: "The unit of issue cannot be changed because the material is used in a BOM" (Message no. M3214).
    I've removed this material from all BOMs at concerns plant level, but this doesn't help.
    Under cs15 tcode, SAP still sees deleted BOM history and probably this stops SAP to allow to change unit of issue.
    Do you know how to remove BOMs without history. And mainly, how to solve this problem.
    Thank you in advance
    Regards
    Andrey

    Hi R.Brahmankar
    thank you for support!
    you wrote:
    Dear,
    Please refer OSS note 215970 It will resolve this issue.
    Regards,
    R.Brahmankar
    I searched in note you gave: and there are 3 reports mentioned:
    1. ZZITMTC4 - selection report without update option
    2. ZZITMTD4 - selection report with update option
    3. ZZITMTD5 - selection report per each material with update option
    4. ZZITMTDOC - selection report with document entry and update option
    To be honest, i don't know how to use those reports...
    I searched in GRR3 tcode for such, but no such reports exist.
    Please could you advise how to use those reports.
    Thank you
    Best Regards
    Andrey

Maybe you are looking for

  • Clients unable to connect and get DHCP - LAP1142N AP and 5508 WLC

    Hi, I have 19 locations, each with 1 or more LAP1142N AP's in FlexConnect mode, AP's are primed using CAPWAP to my 5508 WLC at the datacenter. The AP's join the WLC without issue every time. I have two WLAN's, one guest and one staff, the guest netwo

  • Display randomly turns off; will applecare cover?

    Hi all, quick question. I've had my iBook G4 for two years now. I love it. However, it does this weird thing every once in a while where the backlight just shuts off. It usually does it if I pick up the computer in order to move it somewhere, if I bu

  • How to disable in app purchase

    i cannot download free apps bcoz of in app purchases ...plz advice me how to download free apps without in app purchase

  • Where is i18n.jar in J2sdk1.4.1 ?

    Hello, In j2sdk1.3 version, "i18n.jar" used to be in /lib directory. However i found this jar file missing in j2sdk1.4.2 version. Is it replaced by other jar file ? I couldn't find any information relating to this in SUN release notes. Can anyone hel

  • How many routes shoud i create for synch senario ?

    Hello expert! When i try to create a synch senario with receiver rfc ( file ---> rfc  ),   how many communication channle i need? shoud i creat a back route for the message get from rfc ? if i need to create a rfc sender cc to trnsfer the exporting v