Filter IDOC MATMAS04 by plant

Hi all,
I have configured an idoc in order to send information of materials to an external warehouse. But this warehouse is only from a specific plant, for only one company. When other companies create their materials, my idoc matmas04 is activated anyway, but this material (idoc) must not be send to this external warehouse. Is there a way to filter the activation of change pointers, in order to activate it only for materials of a specific plant?
Is it possible to create a Z FM copying the standard MASTERIDOC_CREATE_SMD_MATMAS, and create a filter here?
Thanks in advance. Reward points to helpful answers.

Hi ,
you need to do create a filter for plant in BD64 ,
You can proceed with following transactions to do so ..............
2.2.2. Maintain object type for message type (BD59) Client independent
The ALE objects are used to create links between IDocs and applications objects, to control the serialisation, to filter messages in the customer model and to use listings.
For our own message type and IDoc you must maintain object types for the links.
If you want to check the serialisation for the message type, then you must maintain object types for the serialisation. If no serialisation object has been maintained for a given message type, then the serialisation will not be checked for this message type.
To add an object type to our message type, follow these next few steps:
• Enter transaction BD59 (ALE -> Extensions -> ALE object maintenance -> Maintain object types)
• Type in your message type ZINVRV and press enter
• Click on New entries
• Enter your object type, LIFNR (We need to use the vendor as a filter object), the segment name where LIFNR resides, Z1INVRV, a number 1 for the sequence followed by the actual field name LIFNR
• Save and exit.
You have now created an object that we’ll use as a filter object in the customer model to direct the flow of messages to the various logical systems based on the vendors in the filter of the message type ZINVRV.
We now need to add our new message type to the distribution model.
2.3. Configuring the Distribution Model
This task is performed on your ALE reference client.
2.3.1. Manual Configuration (BD64) Client dependent
To manually configure the customer distribution model, read the ALE configuration procedure, and follow these steps:
• Perform the Maintain customer distribution model directly function. (ALE -> Distribution customer model -> Maintain customer distribution model directly)
• Specify the customer model you want to maintain and the logical system that is to be the sender of the messages OR create a new model. (Create model ALE with logical system ALELS1C400)
• Choose the receiving systems to which the sending system must forward message type ZINVRV to.
• For each receiving logical system allocate the message type necessary for communication to the receiving systems as per ALE configuration procedure.
• Create filter objects (in our case LIFNR as the object type with the associated vendor number, 0000018001 with leading zeros, in the object area) for the message types.
• Save the entries.

Similar Messages

  • Lsmw for Inbound idoc matmas04

    Hi experts,
    I Need to upload Material Master for Idoc Matmas04. Can anyone provide me steps for it.
    Can we use bapi_master_savedata for same.
    I tried LSMW but when i go to settings> idoc inbound processings is disabled.What can be the cause.
    Thanks and Regards
    Neha Kapoor

    hi Neha,
    For material master specifically its better to go with DI method in lsmw.
    Here r the sample steps to fallow...
    Check the Step by step process for LSMW
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr char(18)
    2) mara-mbrsh char(1)
    3) mara-mtart char(4)
    4) makt-maktx char(40)
    5) mara-meins char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
    Subproject Name
    object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
    Maintain Object Attributes
    select Standard Batch/Direct Input
    give Object -- 0020
    Method -- 0000
    save & Come Back
    2) select radio-Button 2 and execute
    Maintain Source Structures
    select the source structure and got to click on create button
    give source structure name & Description
    save & Come Back
    3) select radio-Button 3 and execute
    Maintain Source Fields
    select the source structure and click on create button
    give
    first field
    field name matnr
    Field Label material Number
    Field Length 18
    Field Type C
    Second field
    field name mbrsh
    Field Label Industrial Sector
    Field Length 1
    Field Type C
    Third field
    field name mtart
    Field Label material type
    Field Length 4
    Field Type C
    fourth field
    field name maktx
    Field Label material description
    Field Length 40
    Field Type C
    fifth field
    field name meins
    Field Label base unit of measurement
    Field Length 3
    Field Type C
    save & come back
    4) select radio-Button 4 and execute
    Maintain Structure Relations
    go to blue lines
    select first blue line and click on create relationship button
    select Second blue line and click on create relationship button
    select Third blue line and click on create relationship button
    save & come back
    5) select radio-Button 5 and execute
    Maintain Field Mapping and Conversion Rules
    Select the Tcode and click on Rule button there you will select constant
    and press continue button
    give Transaction Code : MM01 and press Enter
    after that
    1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
    2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
    3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
    4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
    5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
    finally
    save & come back
    6) select radio-Button 6 and execute
    Maintain Fixed Values, Translations, User-Defined Routines
    Create FIXED VALUE Name & Description as MM01
    Create Translations Name & Description as MM01
    Create User-Defined Routines Name & Description as MM01
    after that delete all the above three just created in the 6th step
    FIXED VALUE --MM01
    Translations --MM01
    User-Defined Routines --MM01
    come back
    7) select radio-Button 7 and execute
    Specify Files
    select On the PC (Frontend) -- and click on Create button(f5)
    give the path of the file like "c:\material_data.txt"
    description : -
    separators as select comma radiao- button
    and press enter save & come back
    8) select radio-Button 8 and execute
    Assign Files
    Save & come back
    9) select radio-Button 9 and execute
    Read Files
    Execute
    come back
    come back
    10) select radio-Button 10 and execute
    Display Imported Data
    Execute and press enter
    come back
    Come back
    11) select radio-Button 11 and execute
    Convert Data
    Execute
    come back
    Come back
    12) select radio-Button 12 and execute
    Display Converted Data
    Execute & come back
    13) select radio-Button 13 and execute
    Start Direct Input Program
    select the Program
    select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    and gothrough this link for the step by step procedure...
    http://help.sap.com/bp_blv1500/BL_US/documentation/LSMW_EN_US.doc
    ~~Guduri

  • Using IDOC MATMAS04 - Segment E1MLGNM

    Hi all,
    I'm using the Idoc Matmas04 to transfer material data between R/3 46C and ECC60.
    In my sender system I don't use the Warehouse View, but I must create it in ECC60.
    I try to use the BADI_MATMAS_ALE_IN to create the data for the table MLGN_UEB to pass the data in receving system, but the system doesn't create the Warehouse View.
    I insert in the internal table MLGN_UEB only the Matnr and LGNUM.
    In online transaction the system need only this data.
    Can you help me to understand where I'm wrong ?
    Thanks a lot
    Barbara

    Hi Ferry,
    when I use the FM IDOC_INPUT_MATMAS01, I don't have the segment E1MLGNM, so the FM doesn't call the customer-exit.
    The Idoc that I have is the follow :
    MATMAS04                       Material Master
            E1MARAM                        Master material general data (MARA)
                E1MARA1                        Additional Fields for E1MARAM
                E1MAKTM                        Master material short texts (MAKT)
                E1MARCM                        Master material C segment (MARC)
                E1MARMM                        Master material units of measure (MARM)
                E1MBEWM                        Master material material valuation (MBEW)
                E1MVKEM                        Master material sales data (MVKE)
                E1MLANM                        Master material tax classification (MLAN)
                E1MTXHM                        Master material long text header
    As ypu can see I don't have the segment E1mlgnm in input in my ECC.
    Thanks
    Barbara

  • Filter Idoc segment based on date in XSLT map

    Hi,
    In a Idoc to flat file XSLT mapping, I have a requirment to filter segment out of multiple segment occurance in HRMD_A idoc. Idoc has two date fields(actually string data, containing date in YYYYMMDD format) in the segment(end date and start date). I need to filter only one segment from multiple segments where current date falles within start and end dates (end date >= current date >= start date). Then map output fields from the filtered segment.
    Its easy doing it in graphical mapping, but its difficult to use graphical mapping here as the message structure are enormous. I dont have much hands on in XSLT but think many of you have been through this kind of requirement using XSLT. So holding my hope high :). Please suggest a logic for this, will be highly appretiated.
    Regards
    Suman.

    This functions will give you the current date:
    fn:current-dateTime()     => Returns the current dateTime (with timezone)
    fn:current-date()                 => Returns the current date (with timezone)
    fn:current-time()                 => Returns the current time (with timezone)
    To compare:
    fn:compare(comp1,comp2)
    fn:compare(comp1,comp2,collation)
    => Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1 is greater than comp2 (according to the rules of the collation that is used)
    Example: compare('ghi', 'ghi')
    Result: 0
    Also I suggest working with an IF condition like this:
    <xsl:if test="price &gt; 10">
            <tr>
              <td><xsl:value-of select="title"/></td>
              <td><xsl:value-of select="artist"/></td>
            </tr>
          </xsl:if>
    Edited by: Kai Lerch-Baier on Apr 14, 2009 10:21 AM

  • BD64 filter IDoc with Z-Segments

    Hi,
    i made a customer extension to the cremas05 idoc and set a filter in the BD64 at E1LFA1M (first level).
    If the filter is true - the Idoc will be created through BD14
    If the filter is false - an error appear through BD14.
    "internal error: Program read_table ....data_select_for_block"
    After disableing the user Customer Exit (creation of the z-segment) ... the process is running fine with filter true and false.
    Is it not possible to filter an IDoc(extension) with an zsegment ?
    any ideas ?
    Regards,
    Gordon

    Hi Gordon,
    BD95 Define Filter object type .We can specify the field and the table it belongs ... It is used to create a new IDOC Type or IDOC Extension ....
    Outbound:
    Step 1. Application document is created when transaction is saved.
    2. Message control is invoked.
    3. Messages are processed by system.
    4. Messages are Edited (if desired).
    5. Output (ALE / EDI) is checked
    6. Validate against Message control record from Partner Profile
    7. Application Document is saved.
    8. Entry NAST table is created for every selected output program
    along with Medium & Timing.
    9. Check for Process Immediately .
    If (yes)
    Determine Processing Program from TNAPR Table.
    ELSE
    Execute RSNASTED Program.
    10. Read Partner Profile to determine Process Code.
    11. Process Code points to the Function Module & Invoked.
    12. IDoc is generated.
    13. Check for ALE Request.
    if (Yes)
    Perform Filters, Conversions, Version Changes etc.
    Else.
    IDoc is stored in DATABASE.
    INBOUND:
    Step 1. EDI Subsystem creates an IDoc file from EDI Messages
    2. Subsystem calls Functional Module EDI_DATA_INCOMING from startRFC program.
    3. Data in Control Record is validate against the Partner Profile.
    4. IDoc is generated in Database and syntax check is carried out.
    5. IDoc file is deleted once file read.
    6. Event PROCESSSTATE REACHED is triggered in Idoc Object Workflow.
    7. Check for Process Immediately.
    If NO
    Execute RBDAPP01 Program
    Else
    Read Process Code from Partner Profile
    Process Code Points to Function Module
    Application Document Posted.
    further help:
    check url
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/ale/configuration.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapdevelopment.co.uk/training
    And also u can get lots of inof from the below link.
    http://www.sapgenie.com/ale/why_ale.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    ALE Configuration
    ALE
    ALE
    Reward points if useful
    thanks
    karthik

  • Filter Idoc for 4.5B

    Hi experts,
    I'm working on a very old version, the 4.5B.
    I'd like to make filters for Idocs:
    On ECC6, it can be done with transaction BD64, what about 4.5B?
    Thx,
    Regards
    Mehdi

    remove the filter in BD64..
    and add the manual code in the include ZXM06U02, by rasing exception not to create idoc and sent to external system..
    use the below synatx for raising exception..
    Read table int-edidd with key segment = 'E1MARCM' .
    MOVE int_edidd-sdata TO XE1MARCM.
    if XE1MARCM-werks ne 'requiremtnt'.
    This statement stops the Process to create idoc..
        RAISE DATA_NOT_RELEVANT_FOR_SENDING.
    Endif.
    Prabhu
    Edited by: Prabhu Das on May 14, 2009 6:52 PM

  • Filter IDoc segments

    Hi,
    in a HRMD_A IDoc I want to transfer segment E1P1001 only if field RSIGN equals 'A'.
    What are the steps to configure this scenario?
    Please describe the steps instead of sending me links (as I know them already).
    Thanks and regards
    Patrick

    hi Patrick,
    you can do this with the ALE distribution model Filter.
    1. Go to BD64
    2. edit mode
    3. choose your model
    4. choose your IDoc
    5. apply filter
    6. if your filter of field RSIGN is not available go to BD95 and BD59 to apply it first.
    7. enter "A" as filtervalue.
    Save and go for it.
    IF there is an IDoc with Value RSIGN = A then the segment is existing, if not ... the segment will be deleted.

  • Which user exit in FM IDOC_INPUT_ORDERS  to take IDOC segment E1EDP01 Plant

    If the EDI inbound create order  IDOC segment E1EDP01-WERKS is populated with plant code. Can some one please inform what user exit in FM IDOC_INPUT_ORDERS I need to modify to capture the plant code (E1EDP01-WERKS )  from IDOC and use to create and save that plant on a new order.
    We saw that in "LVEDAF5N" other fields like  E1EDP01-LPRIO are being moved from the incoming IDOC, but nothing for E1EDP01-WERKS.
    We are hoping that we can use any of the SAPLVEDA exist ......EXIT_SAPLVEDA_XXX but not sure which one.....so if some one out there has some information please share ......

    Try with the below exits.
    EXIT_SAPLVEDA_004
    EXIT_SAPLVEDA_005
    Thanks,
    Srinivas

  • Idocs for transferring Plant specific dasta

    Hi PP gurus,
    What is the transaction for transferring plant specific data through idoc.
    Regards,
    Pramod

    Hi Sriram,
    When I create segmet fields should I create new data elements for all the fields with attributes specific to receiving system
    Is it custom  segments .
    Regards,
    Madhu.

  • How to plant in IDOC level

    Hi friends,
    I have a requirement that, i want to filter one of our plant in IDoc leve, we are using MATMAS as message type.
    Currently, we are sending the 888s in 4 plants namely 1221, 1224, 1226 and 1220. Since we are using 1 Material Master for both 1001 and 1090, we no longer need to send the 888 to 1224. Can you please check if we can do the filtering at the iDoc level.
    Anyone pls give the clue.
    Mohana

    Hi,
      Goto bd59 and check whether that plant field present in your message type. Go to BD64 tcode .Select your model view, you will get the no filter set.Double click on it and a pop up appears,in that select the create filter group button and give a name.
    Then a list of fields occur,edit the value for plant and enter.
    regards,
    Manesh.R

  • How does the filter work in BD64

    Hi all,
    I have configured ALE to distribute material master data from the sedning system to recievung system. Also in bd64 I have created filter for plant in the following manner.
    Select modelview -> and expand the tree -> under the message type select -> noo filter option -> create filter group -> in that I have selected plant and in the values I have specified 1000. I saved and came back he message displaye under the message type is <b>Data Filter Active</b>. I went to bd 10 and send a material which is located at plant 1000. IN we02 when I checked the stauts  is success with green light and one of the staus record with status 30 has this message <b>Receiver found , Data filtered , No conversion , Version conversion.</b> When I checked the recieving side the data records stll contains the plant value 1000.
    What I expected is since I am filetring the Idoc based upon plant value, Idoc shouldn't be tranferred or the plant value must be erased on the recieving side. I still the value for werks is 1000.
    I have configured bd64 only on sending side. The recieving side has this message <b>No filters , No conversion , No version change .</b> so should I configure bd64 on recieving side also for filters to be implemented and ths is only one way communication.
    So I doubt how the filters work. Can anyone please expalin me how the filter works.
    Regards,
    Vijay.
    Message was edited by: vijay kalava

    Hi,
    Check this Documentation..
    Customer Distribution Model. In an R/3 system, the Customer Distribution Model is a tool that stores information about the flow of messages across various systems. The Customer Distribution Model uses an SAP-delivered Distribution Reference Model as its basis (the Customer Distribution Model can have distribution scenarios other than ones stored in the Distribution Reference Model.) The Customer Distribution Model stores data that dictates which messages (message types) flow to which Logical Systems. Many messages can flow to one Logical System, and one message can flow to several systems. With the use of filter objects and listings (which I’ll describe shortly), it is also possible to specify in a model the criteria for filtering information for a specific system. A Customer Distribution Model can be created in an R/3 system with that client’s base Logical System as the “sender” Logical System.
    Use transaction BD64 or the following menu path to maintain the model: From the IMG (Implementation Guide), Cross-Application Components -> Distribution (ALE) (*) -> Distribution Customer Model -> Maintain Distribution Customer Model Directly -> Maintain Distribution Customer Model Directly.
    The IMG for ALE, Distribution (ALE) (*), can also be directly invoked by using transaction SALE. This transaction is used very frequently in ALE. (I’ll discuss the process of creating, maintaining, and distributing a Customer Distribution Model later in this article.)
    Filter object type and filter objects. A filter object type is used in the Customer Distribution Model to impose a selection criterion on the message (type) flowing to a Logical System. A filter object type with a value associated with it is called a filter object. For example, BUKRS (Company Code) is a filter object type available for message type DEBMAS (Customer Master). To distribute Customer master data of only Company Code “1001” to a particular Logical System, you would use filter object type BUKRS to create a filter object with value BUKRS = 1001. You can have multiple filter objects with different values for the same message type associated with that LS. While determining the receiver(s) of a particular message based on the Distribution Model, ALE performs object filtering. As with the Customer Distribution Model, filter objects are relevant only to ALE.
    Regards
    Vijay

  • IDoc - IDoc Mapping part

    Dear friends,
    I have one scenario as below:
    Sender system:  Will have MATMAS05 IDoc structure with many segments.
    Receiver Systems: There will be say 4 R/3 receiver systems.
    The IDoc segments should be distributed to some (all R/3 Receiver system)
    i.e  Based on plant and Logical system some segments of the IDoc MATMAS04 from sndr system should move to particular receiver R/3 system and like wise  some other segments to another Rcvr R/3 System and so on.
    Could you please help me in this regard how to start with this..
    Is BPM required for this scenario..?
    If so then is BPM able to call the Table name which resides in the ABAP stack..?
    then how to proceed for this ..?
    Eagerly waiting for you valuable solutions/approach
    Thank you

    Hi Friend,
    The Source structure MATMAS04.
    I think we need target structure :Many MATMAS04 IDocs is required because some segments of the IDoc MATMAS04 from source system should move to particular receiver R/3 system and like wise some other segments to another Rcvr R/3 System and so on.
    Can I go for Duplication subtree in the target or shall I have to go to message tab in the mapping editor andf enter the IDoc of required numbers...? so that I can have multiple say 4 IDoc structure( if receiver is four).
    Please tell me how to distribute  the source IDoc particular segment to particula receiver based on plant num and logical system details in ABAP stack.
    If I map  the control record EDIDC_40- RCVPOR of the target structure to the receiver (in the Constant standard function)  will it work..?
    Points will be awarded...
    regards
    Sampada

  • IDoc - IDoc Mapping issues

    Hi Friends,
    I am again posting this thread in more ellaborated way since I  did not got the solution...please give me the solution if any one knows...
    I have one scenario as below:
    Sender system: Will have MATMAS05 IDoc structure.
    Receiver Systems: There will be say 4 R/3 receiver systems.
    The IDoc segments should be distributed to some (all R/3 Receiver system)
    i.e Based on plant and Logical system some segments of the IDoc MATMAS04 from sndr system should move to particular receiver R/3 system and like wise some other segments to another Rcvr R/3 System and so on.
    Could you please help me in this regard how to start with this..
    Is BPM required for this scenario..?
    If so then is BPM able to call the Table name which resides in the ABAP stack..?
    then how to proceed for this ..?
    Eagerly waiting for you valuable solutions/approach
    The Source structure MATMAS04.
    I think we need target structure :Many MATMAS04 IDocs is required because some segments of the IDoc MATMAS04 from source system should move to particular receiver R/3 system and like wise some other segments to another Rcvr R/3 System and so on.
    Can I go for Duplication subtree in the target or shall I have to go to message tab in the mapping editor andf enter the IDoc of required numbers...? so that I can have multiple say 4 IDoc structure( if receiver is four).
    Please tell me how to distribute the source IDoc particular segment to particula receiver based on plant num and logical system details in ABAP stack.
    If I map the control record EDIDC_40- RCVPOR of the target structure to the receiver (in the Constant standard function) will it work..?
    Points will be awarded...
    regards
    Sampada

    Sampada,
    You do not need BPM in this case. You can just create different mapping for each receiver system with different segment.
    and in configuration you can specify which mapping rule to be used for each receiver. This way it would be much faster. This is very easy.!!
    Again you do not need BPM for this....
    Let me know if you need more details.
    Nilesh

  • Regarding Idoc scenario....

    Hi Gurus,
    Could any one explain what are the configurations required for idoc to file scenario ?
    i have configured every thing, with defining a logical system, assigning a logical system, creating port and partner profile and i am getting confusing about how to trigger an idoc from r/3 system and how the data flow through these settings?
    could any one of u please explain me about how the message will be flown in the settings that done in between R/3 to XI..
    regards.,
    sai kumar

    Hi Sai,
    Hi
    These are the steps which u have to do
    STEPS IN DESIGN
    1. Import idoc from the SAP System (SAP02) through imported objects.
    2. Create Data Type, Message Type, Message Interface for the Outbound File.
    3. Create Message Mapping with file Message and idoc (Matmas04)
    5.Create Interface mapping between File Interface and the idoc.
    Steps to be followed in Creation of Technical and Business System
    Technical System
    In SLD, click on technical landscape->New Technical System->WebAS ABAP.
    Business System.
    1.Goto Business Landscape->New Business System->Name the business system.
    2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.
    Preconfiguration steps for transfer of data to IDOCS
    1.Create a RFC Destination in SM59 of XI Server of type.
    2.In transaction IDX1 ,create a port for the client of XI server.
    3. The port has to be displayed in the idx2 transaction and we should be able to view the idoc’s which we imported through integration repository.
    Steps in Configuration
    1. Goto service without party, right click->Assign a business system.
    2. Choose the business system to be added.
    3. Create a File Sender Service with communication channel for the same.
    4. Create an idoc receiver channel under the business system.
    7. The Idoc type( which data is to be written) is mentioned as inbound parameter.
    8. Mention the logical Name in the Service->Adapter Specific Parameters of both the File Sender Service as well as the business system.
    9. Make the Sender Agreement for theFile Sender with communication channel.
    10.Create the Receiver Determination and Interface Determination for the business system.
    11.Create the Receiver Agreement for the Business system.
    Step for Configuration fo IDOC in R/3
    SM59-rfc destination
    IDX1-port
    IDX2-load metadata
    we05-IDoc status records
    BD54-Create Partner Number
    We20-Create Partner Profile
    WE19-Testing IDoc Processing
    Do these configurations in R/3 and in XI...
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    Idoc Testing...
    Testing:
    1.     Log in to Adaptor Monitor and check for the file adaptor. The status of the adaptor should be green and working.
    2.     Check the ftp connection, it should connect to destination folder without any error.
    3.     Log in to sender system, go to transaction WE19 (test tool to generate IDoc), generate Idoc of the required message type.
    4.     Log in to Xi system and execute transaction SXMB_MONI and check for the XML messages. Use your source and destination system to filter messages, it should have chequered flag.
    5.     Check the destination directory, it should have file with the name specified along with the time stamp. Check the file, it should have data for all segments. 
    Hope this information is useful to you..
    Reward points if it is useful to you..
    Thanks,
    Satya..

  • How to generate multiple idoc's from single appl document

    All,
    Iam looking for a way to generate multiple idoc's from single appl document (sales order). Based on the plant details on line items in the sales order i have to generate multiple idocs, i.e., send one idoc to each plant entered in sales order line items. any help will be appreciated.
    Thanks

    Hi,
    You can create a Z-program and call Function Module  <b>MASTER_IDOC_DISTRIBUTE</b>.
    You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
    You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
    Then u can keep the materials of only that plant for which u want to pass on the information.
    Thanks,
    Utsah Garg.

Maybe you are looking for