Message with Multiple IDoc's to be sent to Two FTP locations

HI All,
I need your valuable suggestions for the best approach....
Scenario is IDOC > PI>FILE
All the Orders's(Orders05) created in SAP for every hour, IDOC's are collected and then a scheduled program sends all these idoc's every hour ... In PI i am using IDOC packaging so all the idocs comes as  one message like the below...
<?xml version="1.0" encoding="UTF-8"?>
<ORDERS05>
   +<IDOC>
   +<IDOC>
   +<IDOC>
</ORDERS05>
Now in PI based on the plant condition in each idoc, the idoc data should be sent in one file for two FTP servers...
out of 50 idocs 30 belongs to FTP1 and 20 belongs to FTP2...
This is going as required... in SXM_MONITOR .. Two messages created (one for FTP1 and one For FTP2)
But if 50 belongs to FTP1 , then also in SXI_MONITOR two messages being created...
this is bcz of two mappings and 2 IM's..
I cannot use the condition in Receiver/Interace determination, as the source has Multipe IDOC's...
So please suggest if there is any other way where if i can restict the second message in being processed if no data comes from SAP for that FTP...
Please suggest ....
Regards,
sridhar
Edited by: sridhar reddy kondam on Aug 6, 2009 11:30 PM

Hello Sridhar,
             You can achive this using extended receiver determination. In UDF using count direct first 30 to 1st BusinessSystem(ftp) and remaining 20 to 2nd Business System(FTP2).
You can take help from the following blog:
/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
Regards,
Prasanna

Similar Messages

  • How to use BAM to start an XI message with multiple occorrences

    Hi:
    I am trying to use BAM to send some data to XI. It is working fine when I have a message that has only header information. I am able to do the binding and the message is being sent properly.
    The problem is when I have a XI message with multiple occurrences. This message creates a complex proxy structure like the sample bellow:
    -ZTSTPROXY (Header)
        -Header_Field1
        -Header_Field2
        -Occurrences (Items)
         -Item_Field1
         -Item_Field2
    It is possible to pass data the he Header fields separately on BAM, but I have no access to the line fields on BAM binding screen (it shows me only the name “Occurrence” but no field).
    So, I assumed that I have to pass the whole structure, not the fields separately. Then I tried to create a method on my Business Object that will return the same structure as my proxy, but this field cannot be used on BOR. I am receiving the message OL403 (Data Type cannot be used for methods).
    Ok, I would not give up. I tried to use an Abap Class instead of a Business Object. By using the class I can define an attribute with the same data type generated by the proxy and it is possible to do the bind on BAM (directly to the “output” field, not to the specific fields on the structure).
    But, when I raised the event, the message created on XI is empty. Only part of the tags were there and no field values.
    Debugging on the event, I found that the problem is when it is trying to assign the container element on the method EVAL_ABAP_ASSIGN_CODE on the class CL_SWF_EXP_EXPRESSION. The program is raising the exception CX_SWF_EXP_DYN_ASSGIN_FAILED. Probably because the proxy structure is not allowed on the container.
    Has anybody tried to pass a multi-line element to an XI message through BAM? How can this be done (if possible)?
    Best Regards,
    Flavio.

    Hi,
    why don't you use an internal list for your question if you are from Oracle? JDeveloper 11 and OC4J11 related questions for the public technology preview have their own forum:
    JDeveloper and OC4J 11g Technology Preview
    My suggestion is to get in contact with the BAM group internally to ask for documents.
    Frank

  • The XI does not send messages with correct IDOC structure

    SAP XI 3.0 sends to ECC IDOC HRMD_A07 
    The XI does not send messages with correct IDOC structure.
    In XI Design, Software Component RHEVOLU, I’ve imported the Objects
    HRMD_A.HRMD_A07 from SAP ECC; In Tools -> Export Reduced XSD, I saved
    HRMD_A.HRMD_A07.xsd in Namespace http://suezambiental.com.br/HR . At
    Message Mapping -> mmAdmissao, in Imported Message -> Import XML or
    XSD, I imported the reduced Idoc file generated above, mapping source
    fields to target fields.
    The IDOC sent from XI to ECC has this structure (template: 22122)
    E1PLOGI
    E1PORIG
    E1PITYP
    E1P0000
    E1P0001
    E1P0002
    Status 53 -HR: ALE inbound processing for HR master data
    But does not update HR Master data.
    The structure expected in ECC side (template: 20376) is:
    E1PLOGI
    E1PORIG
    E1PITYP
    E1P0000
    E1PITYP
    E1P0001
    E1PITYP
    E1P0002
    Status 53 -HR: ALE inbound processing for HR master data
    By using WE19 transaction, this structure was changed manually; so, the
    HR Master data was updated.
    Witch kind of customizing or correction could be made in XI, to send
    the correct structure to ECC?
    Best Regards
    Claudio

    Hi Claudio,
    In your case, there are perhaps two causes:
    1. perhaps when you have import the idoc, for a strange reason, a bad metadata was created by XI. You can clean this one in tcode <b>IDX2</b> (Idoc metadata cache).
    2. but it's also probably an error in your Message Mapping. Have you correctly manage segment E1PITYP?
    Regards
    Mickael

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Error Message with multiple line

    Hi
    How to display a error message with multiple line?
    Example
         Goods movement not possible for material 101
         Goods movement not possible for material 102
         Goods movement not possible for material 103
    is it possible is ABAP? If so please advice me.
    Best Regards
    Asheek

    Hi Anoop,
    You can use same thing like this
    I suggest write ur message through this.
    First set the obecj.
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
    for local memory
    FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
                  OBJECT              = OBJECT
                  SUBOBJECT           = SUBOBJECT
                  UPDATE_OR_INSERT    = UPDATE_INSERT_FLAG
             TABLES
                  MESSAGES            = MESSAGE_TABLE
             EXCEPTIONS
                  OBJECT_NOT_FOUND    = 1
                  SUBOBJECT_NOT_FOUND = 2
                  OTHERS              = 3.
    the call for physical memory
    CALL FUNCTION 'APPL_LOG_WRITE_DB'
    In this process you only need to provide the Itab with error messages.
    Reg,
    Arpit

  • Splitting a message with multiple rows from the JDBC Adapter

    Hi,
    I'd like to split the resultset message with multiple row elements and process each row separately..
    Does someone have this experience?
    Thanx, Peter

    Hi Chandrasekhar,
    I tried to follow your advise, but I'm not able to complete the process correctly.
    Let me explain my process:
    First - output from the JDBC adapter goes into the first receive step. Of course, there are multiple ROW elements. (Should be marked the ingoing message marked in the container as Multiline??)
    The next should be the transformation:
    format of the source message is like
    <message>
      <row>
        <column>w</column>
      </row>
      <row>
        <column>w</column>
      </row>
    </message>
    In the message I have the ROW element as 0..unbounded
    and <column> element exactly 1
    This message should be mapped to multiple messages of the format:
    <message>
      <value>w</value>
    </message>
    How should be the mapping be done?
    Is it N:1 or 1:N (because in another thread there was an 1:N mapping advised)
    Then (as you say) should follow the Block step:
    Which message (container element) should be marked as Multiline? And what does it mean: Current Message?
    Can you give me some advise, when and how to use the multiline mark?
    Thanx a lot, Peter

  • One src message to multiple IDocs without BPM?

    Hi guys!
    Is it possible to cerate multiple IDocs from one source incoming message without BPM?
    I tried the scenario, but I get following error:
    <SAP:Code area="OUTBINDING">CO_TXT_MMF_ENGINETYPE</SAP:Code>
    <SAP:Stack>Messages in multi-message format can only be sent to one Adapter Engine</SAP:Stack>
    Any ideas?
    Thanx a lot!
    Olian

    Hi
    Sorry my earlier link was with BPM.
    refer to this blog by Michal
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Regards,
    Kumar

  • Using Messages with Multiple Users and Multiple Computers

    I have two users who share two different computers, switching between them during the day.
    I'd like to use messages on them for us to send text messages in the office, however, it asks them on logging in (most, but not everytime) to re-enter their apple id password.  It seems that using icloud for messages among multiple computers like this isn't good.  its like it wants each computers to be linked with a particular user, and doesn't like it that the users are moving around from computer to computer
    Options to avoid this nuisance?
    1.  Would bonjour messaging work, and then just remove the icloud account from messages?
    2.  How about setting up the message server on my ML Server, would that avoid this problem?

    I'd say probably make sure that in the advanced tab under edit>preferences you should make sure they both point to the same file.
    My turn now, how to i post a thread, there's no button.

  • Mapping from File to IDoc with multiple Idocs and multiple line items?

    Hi All,
    Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
    Order_1 field-1 field-2 field-3 field-4
    Order_1 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_2 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    Order_3 field-1 field-2 field-3 field-4
    I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
    Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
    Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
    IDoc-1 (Order_1)
    E1EDP01
    E1EDP01
    IDoc-2 (Order_2)
    E1EDP01
    E1EDP01
    IDoc-3 (Order_3)
    E1EDP01
    E1EDP01
    I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
    Regards,
    N@v!n

    Hi Navin,
    Create your source structure like below
    <Order>1 to unbounded
        <Order_No>
        <field1>
        <field2>
        <field3>
        <field4>
    </oder>
    to create mutiple IDocs based on order number,use below logic
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
    use below logic for E1EDPO1,
    Order----->removecontexts------>
                                                                                    formatByexample------>E1EDP01
    Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
    try above logic and let me know if you any issues.
    Regards,
    Raj

  • Splitting a message into multiple Idocs

    Hi,
    IDOC adapter does not support MULTIMAPPING.
    You cannot use MultiMapping with the IDOC adapter.
    Instead , use IDOC packaging. Refer to note : 814393.
    Regards,
    Bhavesh

    Thankyou for the reply, but that's the same trick I already found in Michal's blog, so it isn't really an answer to the question!
    I was hoping that someone could direct me to some useful documentation of Integration Processes, as the SAP help is a bit limited in explaining how things actually fit together.
    Message was edited by: Nathan Shepperd

  • In trying to share music with multiple user accounts on one comp, I quit itunes, located my itunes media folder, moved it to a publicly accessible location. Problem is it didn't work and now I can't get it all back to the way it was.

    In trying to share music with multiple users on one computer, I followed the directions on "iTunes:How to share music between different accounts on a single computer" (http://support.apple.com/kb/ht1203). I did something wrong because i lost iTunes
    Tried to put files back, but it is not the same. Plugged in my ipod and it is not recognizing my computer.
    Can someone tell me where iTunes should be, and what sub files should be included with it. Thanks!

    If you are seeing the "Connect to iTunes" logo, then your device is in Recovery Mode, and you will need to restore it:
    If you can't update or restore your iOS device
    iOS: Back up and restore your iOS device with iCloud or iTunes
    Cheers,
    GB

  • One Message, Call multiple IDOCS in PI 7.1

    Hello SDN!!
    We are trying to implement a scenario and curious if anyone has done this. We are looking to have one message exposed to another system, which will be mapped and sent to four different IDOCS on the same system. From some blogs it seems this really can't be done except by BPM. Is this the case, and if so, are there any good tips to do the most basic BPM to have this scenario complete? (Also all the documentation seems to be in 7.0)
    Cheers
    Devlin

    Hello from the first response mapping without bpm it states it is not possible with IDOC
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
    The other two blogs are nice, but wrong direction, instead of collecting IDOCs I was hoping to have one message split out to 4 IDOCS,
    Cheers
    Devlin

  • Messaging With Multiple Devices on the Same iTunes Account

    My husband and I each have an iPhone 4s.  We share the same iTunes account.  We have never had any problems texting.  My daughter got an iPod Touch for Christmas.  So we set it up using the same iTunes account (since I was told you can have up to 5 devices on 1 acct).  Now when any of the 3 of us send a text, it shows up on all 3 devices.  It didn't happen before with just the 2 iPhones, but after adding the touch it does with all 3.  Even if a txt is sent between the 2 iPhones, it shows up on the touch.  And everything is set to 'off' except "find my iPhone" under on the iCloud settings on both phones Any suggestions???

    Go into Settings -> Messages -> Send & Receive on the devices that your would not like to get your text messages to.
    Then remove the email addresses that you would not like to be reached on, especially the one that is the same as your Apple ID.
    Just leave the phone number there, and then the text messages should only appear on your iPhone 4s.

  • Use single message with multiple spry "states"

    forgotten past decided to use spry widgets to do the validation. One of the things that can get old pretty quick is to have to create a different message for each thing that can go wrong, even if you need to display the same message. For example, if a user needs to enter 9 digits, the message for entering too few, too many, and letters can pretty much be handled by "The value should be exactly 9 digits."
    Is there a way to use just one div/span and have it show for all of these conditions? I need to be able to code this manually, because for whatever reason the widgets don't show up properly in the DW UI (either because it's an old version or because the widgets have been edited by hand at some point in a way that's incompatible with the DW UI). It also needs to be compatible with older browsers (i.e. I could probably do this by assigning multiple classes to the element(s), but I am not sure what browsers would support this). Many of our users are in libraries, so we have to anticipate that the browser may not be up-to-date.

    Don't use Spry.  Adobe abandoned the framework in 2012.  It is no longer supported.
    Best advice, use HTML5 forms alone or with jQuery validation.  In the following example, the number field requires 9 characters.  This works in modern browsers.
    <form id="MyForm">
    <label for="number">Number:</label>
    <input name="number" type="number"  id="number" placeholder="123456789" maxlength="9" minlength="9" required>
    <input id="submit" name="submit" type="submit" value="SEND">
    </form>
    For older browsers that don't support HTML5 forms, you can add jQuery validation to your forms by adding this to your document's <head> tag.
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--JQUERY VALIDATE PLUGIN-->
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js">
    </script>
    <!--INVOKE FORM VALIDATION-->
    <script>
    $(document).ready(function() {
        $("#MyForm").validate();
    </script>
    Nancy O.

  • Inbound interface with multiple IDOC processing

    Hi,
    I have to create an inbound interface which has to be triggered only when a batch job is completed in the middleware. The batch job will create 2000 records and 1 IDOC for each record. I have to get all the 2000 IDOCs and then process them together. I have to manipulate the data in these 2000 IDOCs and update them in a SAP table.
    Please let me know how do I proceed with this.
    Should I go with a custom func module or a custom program?
    Thanks,
    Abhishek

    Hi,
    Custom function module with standard parameters : For details refer to the topic Implementing Inbound Processing on page 85 of the
    [ALE Programming Guide|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf]
    regards,
    Advait

Maybe you are looking for

  • ERP 6 installation Problem on windows clustring

    i am installing SAP ERP 6 EHP4 on windows 2003 with clustering 2 nodes only and DB as MS SQL 2005. i have Domain controller on one node and other is member of it , i want ACTIVE/ACTIVE clustering , so i installed MS SQL on one node and on other node

  • Printing Problem with EPSON LX 300+

    Dear all, I have met a problem with Epson LX 300+. After I set up printing on PLD, the result printing is bad. Font and setting are not the same as preview in SBO. How to solve this matter..? I used SBO 2005A PL 43. Thanks for your help.... Regards,

  • Parsing International Characters

    Hi folks, I am trying to parse an xml document which has international characters like "�" (accentuated e used in french). But my parser crashes trying to parse a document containing these characters: System.out.println("******************* 1"); Docu

  • Has any student been told that there display was damaged due to a bookbag?

    To all, I have read posts about the Apple Store telling customers that the white spots on the display are due to pressure points from books in bookbags. My bookbag is designed to cushion and protect a laptop and I never overload it. I recently took m

  • Sqlplus cannot be executed

    Hi All, I have NW04s installed on AIX 5.3 with oracle 10g. When ever i try to do a sqlplus i get the following error: <Hostname>:ora<sid>> sqlplus SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly <