Outbound Idoc Segment Creation via BD52 trigger

hi all,
i am new to Idocs so please forgive me if i am missing the obvious.   i am using standard the material master Idoc type MATMAS05 to transmit any material master changes to an existing legacy system.   i set up some fields in BD52 to trigger an Idoc when they are changed.   the problem is when i change a field in the MARC segment (ie: MARC-PRCTR - Profic Center) 3 segments are generated (E1MARAM, E1MAKTM, EIMARCM), but when i change something in the MARA segment (ie: MARA-PRDHA - Product Hierarchy) only E1MARAM and E1MAKTM are sent.  
the receiver is set up for all three Idoc segments so when only 2 are sent it errors out.   how can i force all 3 segments to send every time?
many thanks.
James Hinkin

Hi, I think you must be running the program RBDMIDOC to send an IDoc based on the change pointers.
SAP has designed such a way that it will create IDocs only with changed data. In other words, E1MARAM is always populated as it is header data. Its obvious that you dont want to send the data that is not changed. Hence if you are changing Product hierarchy, only relevent segments are populated with values.
If you still want to send all the data irrespective of whether those fields are changed or not, either you may have to code in a user-exit to populate these fields(segments) or, change the program accordingly.
Hope this helps you and let me know if you need further help
Vamsi

Similar Messages

  • Issue with IDOC segment creation..

    hi,
    i created an idoc  segment thru we31. when i was saving it, and when the transport request was asked, i cancelled it. it so happend that the underlying structure was created (i was able to see that in se11) but in we31, the segment definition did not appear and i got the message "segment does not exist yet".
    so in se11, i deleted the associated structure and tried to recreate the segment, i am not able to !! while saving, i get the error "you do not have authorization for delete for function idoc segment"
    when i performed a segment check (ctrl + F1), i got the message,
    Repository structure missing for segment ZZZ                                                                                |
    Inconsistent overall length in segment version 000
    Segment version 000 not released
    Entries exist in table of Segments for segment ZZZ
    Entries exist in table of Segment definitions for segment ZZZ
    Entries exist in table of Segment structures for segment ZZZ
           |   Segment ZZZ is inconsistent                             
    what shud i do ?
    thks

    resolved. seems some authorization was missing. thks

  • Changing filed name description - idoc segment creation/change

    HI,
    is it possible to change the fieldname description in an IDoc Segment without changing the DataElement ?
    Exampel:
    I Used CHAR40 as dataelement for my own ZZFIELD. In the Idoc the fieldname description of the data element CHAR40 is shown.
    Can i change this description ?
    thx,
    Gordon

    No, The IDOC always displays the texts based on the Data Element which is assigned to that field. If you want to display your own text you have two options:
    1. Create an enhancement and change the text of the data element which is not recopmmended because it will be changed wherever that data element is used.
    2. Instead just create an own data element where you can maintain any texts you need.
    Hope that helps,
    Michael

  • Delete Outbound Idoc Segment based on target system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Use user-exits .
    if edidc-RCVPRN eq 'ABCD'
    process data .
    else
    call FM segment_delete ( use ur parameters )
    endif.
    Edited by: anil sasidharan on Feb 18, 2009 12:40 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:46 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:48 PM

  • Delete Outbound Idoc Segment based on taget system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Hi,
        Make use of Segment level filtering in distribution medel (BD64).
    Thanks,
    Asit Purbey

  • Delete Outbound Idoc Segment

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Hi,
        Make use of Segment level filtering in distribution medel (BD64).
    Thanks,
    Asit Purbey

  • Outbound IDoc after creation data

    Hi all!!
    When I create an installation (IBASE), must be automatically sent an IDoc to XI with the data corresponding to this installation. I don´t understand how create the IDoc.
    Could someone clarify me on this, please???
    The IDoc type for IBASE is CRMXIF_IBASE_SAVE01.
    Thank in advance and regards,
    Manuel.

    Hi,
    Did you get resolved this problem? If so could you please guide me?
    I want to send the installed base data from SAP CRM to SAP PI whenever it is created or changed and need to get some data from SAP PI.
    Please suggest me the approach to do this.
    Regards,

  • Debugging customized function module when Idoc is triggered via ALE

    Hi,
    Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
    However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
    How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
    Any help would be greatly appreciated.
    Thanks in advance,
    Mick

    Hi Mick, this might be of some help 4 u.
    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 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    This is Receiving system Settings
    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
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - 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
    cheers,
    Hema.

  • FM for Outbound Idoc

    Hi ..
    Actually we are looking for the function module for the Outbound Idoc segment - BOMMAT in Bill of material . we need to know which is the correct FM to be used.Please help me with this.

    Hi,
    Check if you can use FM- MASTER_IDOC_CREATE_BOMMAT.
    Regards,
    Anup

  • Outbound Idoc error handling through workflow

    Hi,
    I am trying to set up the workflow for outbound error handling. I found that there is a task TS00007989 which need to set up.
    How this task can be triggered when outbound idoc error occurs in the system?
    Kr,
    Vithalprasad
    Edited by: Vittalprasad on Jun 9, 2010 11:52 AM

    Hi,
          Have a look
    Outbound IDoc Error Handling via Workflow
    Outbound idoc error handling through workflow

  • Sending Order Number via IDOC upon creation of Sales Order

    Hi Experts,
    I have a requirement where i receive an order from an external system to SAP as an IDOC.
    Upon arrival, i have to create the Order in SAP and send the Order Number back to the external system in the form of IDOC.
    How can i accomplish this? Kindly share your expertise on this with me.
    Thanks in advance.
    Regards,
    Keerthi

    Hi Gary,
    Now when the Order is posted in SAP, i need a method which will automatically trigger the Outbound IDOC from SAP rather than me doing so manually.
    Is there a way i can track the creation of the Order in SAP and somehow configure SAP to trigger the Outbound IDOC with the Order number automatically?
    Thanks in advance,
    Keerthi

  • Idoc segment not apperaing for PO creation.

    Dear All.
    Sceanrio:
    Once PO is created , NEU ouptut gets triggered.On release of PO, it generates an outbound idoc.
    Issue.
    In this outbound idoc the segment E1EDKA1 WE is missing.This segment gives the Ship to address in the PO, ie normally the plant address to which the material is shipped.
    Analysis:
    This PO has 3 line items and these are created by reffering 3 different PR s.So my question here is , whether is this standarad SAP behaviour where Ship to address segment wont get populated into idocs for multiple line item POs.Why i am asking this is that, if suppose the PO has 10 different line items , with 10 different plants.Each plant has different address.Then how system will decide which ship to address will populate in E1EDKA1 WE segment.
    Or is there any other behaviours, when the PO has multiple line items.
    Please let me know your thoughts on this.
    Regards
    Shyam

    Hello Shyam ,
    The reason for this behavior could be that tthe items in the IDOC have a different delivery address maintained in the Ourchase Order. If the delivery address for all items is the same , the segment E1EDPA1 with qualifier WE will be not populated. Instead of generating E1EDPA1 , the system will create one E1EDKA1 segment with qualifier WE. This will prevent on receiving side the creation of the same delivery address for all items.
    I hope this information has been helpful.
    Best Regards,
    Frank Farinella

  • ME59 Purchase order outbound idoc header text missing in segment

    Hi All,
    When Purchase Order created via ME59 for third party vendor Outbound Idoc is created but Header Text of PO not copied into IDOC Segment.This Problem occurs when PO has sales order assignment.
    Please Advice..
    Thanks,
    Vinod.

    Hi Ankur,
    I am not an expert in this area but I'm looking on an ORDERS05 iDoc where I have the following data for E1EDK14:
    <u>E1EDK14 014:</u>
    QUALF: 014
    ORGID: [Purchasing organization ID]
    <u>E1EDK14 009:</u>
    QUALF: 009
    ORGID: [Purchasing Group ID]
    <u>E1EDK14 013:</u>
    QUALF: 013
    ORGID: [Purchase Order type, e.g. EC]
    <u>E1EDK14 011:</u>
    QUALF: 011
    ORGID: [Company Code]
    Hope this helps!
    Regards,
    Kristoffer

  • Trigger Outbound Idoc on Customer Master change/ Create

    Hi everyone,
    can anyone provide me some information on how to trigger outbound IDOCs when a customer master is changed/created and which IDOC should be used.
    Kind Regards,
    Julian

    Hi Julian,
    For the automatic transfer of master data ,we can use change pointer technique.
    Following are the steps to be followed:-
    1) Enable change pointer globally (t.code BD61).
    2)Enable Change Pointers for a Message Type (t.code BD50).
    Here you have to check the Active checkbox corresponding to customer master message type 'DEBMAS'.
    3)Specify the Fields for Which Change Pointers Are to Be Written (t.code BD52).
    Various number of fields are present here corresponding to message type'DEBMAS'. If you want to add any other field , you can add here.
    Apart from above three settings, all other ALE configurations are required like( partner profile, distribution model etc.)
    For triggering the Idoc program 'RBDMIDOC' should be scheduled.
    When you make any change in the customer master , Idoc will be triggered automatically from your SAP system.
    regards,
    monica

  • Outbound IDoc trigger from TO

    I am developing an outbound interface with third party MES system. I have to send an outbound IDoc based on Destination storage Type =xyz in TO. How to achieve this?

    if you are planning to use the standard SAP then you have to set up the link in between your warehouse and External system(MES) and under interface control you need to specify on what condition (e.g. source storage type, destination storage type and movement type) you want to trigger the IDoc, or if you are not planning to use the standard way then then you have to make a custom table with logical system detail combination of source and destination storage type and write your own code in user exit (MWMTO001 or MWMTO002) to trigger an IDoc upon  creation or  successful confirmation of the Transfer order based on your requirement as this is not clear from your thread
    standard SAP link Sending Transfer Orders - IDoc Interface: EDI Application Scenarios (BC-SRV-EDI) - SAP Library

Maybe you are looking for

  • This is ridiculous... (Updating Hell)

    Please Adobe, get your act together. Your announcements, update warnings, download pages, preliminary statements, links and buttons (in the software itself) are confusing and even misleading users so terribly, most of them don't dare to touch anythin

  • How to modify or create an xml file from a xml dataset

    Hi, I'm using spry framework with xml data sources. It works nice. My question : The user can change some parameters inside my dynamic data regions. I would like to change these data in the maching xml files. I didn't find any sample explaining how t

  • Not able to create new entry in RSADMIN Table

    Hi All,         I am going thru the OSS note 1275837  (Note 1275837 - PrecServer: process based load distribution (ABAP part)), as it recommends         add the entry "BWPREC_USE_NEW_LOAD" with value "X" in table "RSADMIN"       When I check in SE11

  • Finder periodically using waaayyyyy too much memory

    Since upgrading to 10.5.8 the Finder strikes me as being a bit odd at times. Sometimes it is using a lot of cpu cycles such as 50-80% for no apparent reason that I can find – not copying anything, etc. In trying to sus this out when I notice my machi

  • FCKeditor IE8 "Error in fieldname text."

    I have a richtextarea field and whenever I load it to edit existing text I get an alert that says "Error in fieldname text." If I click the OK button everything works fine but is driving my users crazy. I do not get this error in Firefox or Safari, o