Multiple message at target side

Hi frnds,
iam doing one Scenario file to file.my requirement is i have multiple records in a message at source side, i want split each record as different message at target side is it possible. if it possible please share the ideas on this.
Regards,
Rajendar K

Hi Rajendra,
Can you have a look,it may help you Re: Split a message into multiple instances
Thanks
Satish

Similar Messages

  • How to pass multiple records to target side using xquery

    Hi Everybody,
    I am using xquery transformation.
    Input: Source payload contains 5 variables.
    Target payload contains 5 variables.
    I have input with payload with multiple instance like:
    <Input>
    <payload1>
    <a>1<a>
    <b>2<b>
    <c>3<c>
    <d>4<d>
    <e>5<e>
    </payload1>
    <payload1>
    <a>6<a>
    <b>7<b>
    <c>8<c>
    <d>9<d>
    <e>10<e>
    </payload1>
    </Input>
    So my requirement is to pass above records into target side,
    So I am using xquery Transformation.
    I have written code as follows.
    (:: pragma bea:global-element-parameter parameter="$tHRecAdv1" element="ns0:THRecAdv" location="../XMLSchemas/THRecAdv.xsd" ::)
    (:: pragma bea:global-element-return element="ns1:ShipmentReceiptEBO" location="../../AIAReferenceModelProject/EnterpriseObjectLibrary/Core/EBO/ShipmentReceipt/V1/ShipmentReceiptEBO.xsd" ::)
    declare namespace ns2 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Custom/EBO/ShipmentReceipt/V1";
    declare namespace ns1 = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ShipmentReceipt/V1";
    declare namespace ns4 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2";
    declare namespace ns3 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Custom/Common/V2";
    declare namespace ns0 = "http://diversey.com/THRecAdv";
    declare namespace xf = "http://tempuri.org/ShipmentReceiptServicesProject/XMLTransformations/THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery/";
    declare function xf:THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery($tHRecAdv1 as element(ns0:THRecAdv))
    as element(ns1:ShipmentReceiptEBO) {
    for $THRecAdvFields  in $tHRecAdv1/ns0:THRecAdvFields
    return
    <ns1:ShipmentReceiptEBO>
    <ns4:Identification>
    <ns4:BusinessComponentID>{ data($THRecAdvFields/ns0:JD_WHSE_Code) }</ns4:BusinessComponentID>
    <ns4:ID schemeID = "{ (data($THRecAdvFields/ns0:JD_PO_Number)) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:JD_PO_Type) }">{ data($THRecAdvFields/ns0:WMS_InternalPONumber) }</ns4:ID>
    <ns4:ApplicationObjectKey>
    <ns4:ID>{ data($THRecAdvFields/ns0:JD_BranchPlant) }</ns4:ID>
    </ns4:ApplicationObjectKey>
    <ns4:Revision>
    <ns4:Reason>{ data($THRecAdvFields/ns0:ReturnReceiptReasonCode) }</ns4:Reason>
    </ns4:Revision>
    </ns4:Identification>
    <ns1:ExpectedReceiptDate>{ data($THRecAdvFields/ns0:WMS_ReceiptDate) }</ns1:ExpectedReceiptDate>
    <ns4:InvoiceReference>
    <ns4:InvoiceIdentification>
    <ns4:ID>{ data($THRecAdvFields/ns0:JDE_SupplierInvoiceNumber) }</ns4:ID>
    </ns4:InvoiceIdentification>
    </ns4:InvoiceReference>
    <ns1:ShipmentReceiptLine actionCode = "{ data($THRecAdvFields/ns0:ActionFlag) }">
    <ns4:Identification>
    <ns4:ID schemeID = "{ data($THRecAdvFields/ns0:JD_PO_LineNumber) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:ExternPONumber) }">{ data($THRecAdvFields/ns0:WMS_ReceiptNumber) }</ns4:ID>
    <ns4:ContextID>{ data($THRecAdvFields/ns0:WMSReceivingClerk) }</ns4:ContextID>
    <ns4:ApplicationObjectKey>
    <ns4:ID schemeID = "{ data($THRecAdvFields/ns0:BatchNumber) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:BatchLineNumber) }">{ data($THRecAdvFields/ns0:JD_LocationCode) }</ns4:ID>
    </ns4:ApplicationObjectKey>
    <ns4:AlternateObjectKey>
    <ns4:ID>{ data($THRecAdvFields/ns0:SupplierCode) }</ns4:ID>
    <ns4:ContextID>{ data($THRecAdvFields/ns0:LineNumber_Or_SequenceNumber) }</ns4:ContextID>
    </ns4:AlternateObjectKey>
    <ns4:Revision>
    <ns4:Label>{ data($THRecAdvFields/ns0:Records) }</ns4:Label>
    </ns4:Revision>
    </ns4:Identification>
    <ns1:ReceivedQuantity unitCode = "{ data($THRecAdvFields/ns0:ReceiptUOM) }">{ data($THRecAdvFields/ns0:UnitReceipt) }</ns1:ReceivedQuantity>
    <ns1:SourceDocumentTypeCode>{ data($THRecAdvFields/ns0:SKU_Code) }</ns1:SourceDocumentTypeCode>
    <ns1:DestinationTypeCode>{ data($THRecAdvFields/ns0:DestinationProcessFlag) }</ns1:DestinationTypeCode>
    <ns1:Comment>{ data($THRecAdvFields/ns0:Remarks) }</ns1:Comment>
    <ns4:Status>
    <ns4:Code>{ data($THRecAdvFields/ns0:ProcessSourceFlag) }</ns4:Code>
    <ns4:EffectiveDateTime>{ data($THRecAdvFields/ns0:ADDDATE) }</ns4:EffectiveDateTime>
    </ns4:Status>
    <ns1:ShipmentReceiptTransaction>
    <ns1:ShipmentReceiptTransactionLot>
    <ns1:ShipmentReceiptItemLotReference>
    <ns1:ExpirationDate>{ data($THRecAdvFields/ns0:ExpiryDate) }</ns1:ExpirationDate>
    <ns1:CreationDateTime>{ data($THRecAdvFields/ns0:ProductionDate) }</ns1:CreationDateTime>
    </ns1:ShipmentReceiptItemLotReference>
    </ns1:ShipmentReceiptTransactionLot>
    </ns1:ShipmentReceiptTransaction>
    </ns1:ShipmentReceiptLine>
    </ns1:ShipmentReceiptEBO>
    declare variable $tHRecAdv1 as element(ns0:THRecAdv) external;
    xf:THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery($tHRecAdv1)
    But while importing this code to OSB,and tested it ,
    With 1 payload it successfully shows the data in Target side,
    But while testing with multiple line items,i am getting an error as follows.
    *Error executing the XQuery transformation: line 14, column 17: {err}FORG0005: expected exactly one item, got 2+ items*
    So please provide me the steps how to pass multiple records to target side using xquery.
    Regards,
    Jyoti Nayak

    Hi Jyoti Nayak,
    You have to do something like the example bellow, you can not just repeat the inner element, you will need an outer "container" tag. So you will have to change the target element of your xq transformation.
    declare function xf:setToList($set1 as element(ns0:set))
    as element(ns0:list) {
    <ns0:list>
    for $pair in $set1/ns0:pair
    return
    <ns0:entry>
    <ns0:key>{ data($pair/ns0:key) }</ns0:key>
    <ns0:value>{ data($pair/ns0:value) }</ns0:value>
    </ns0:entry>
    </ns0:list>
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this is helpful, please consider giving points

  • FCC's parameters for multiple occurence on target side

    Hi Experts,
    I have an issue in Fixed File content conversion(FCC).
    The fixed format file is being read into XI and is being converted in XML via FCC.
    I have changed the occurence of MT on target side,which resulted in adding Messages & Message1 tag on sender side as well.The structure has become like this:
    Messages
         ->  Message1
              -->  FCI0002_MT
                   --->  row
    >  Fields
    Target str:
    Messages
         ->Message1
              -->FCI002_MT
                   --->row
    >Fields
    If I use FCI0002_MT in document name and row,* in Recordset structure then message mapping fails at MT node.
    What should be the Document name and Recordset structure in the FCC adapter?
    Thanks and Regards,
    Indu Khurana
    Edited by: Indu Khurana on Feb 6, 2009 9:29 AM
    Edited by: Indu Khurana on Feb 6, 2009 9:34 AM

    Hi Mugdha,
    Yes Its has passed FCC and stuck in mapping.
    But now if I change  Recordset structure to :
    Message1,1,FCI000012_Forecast_DATA2000_MT,1,row,*
    then its gving error in communication channel : "  Mandatory parameter 'xml.keyfieldName': no value found  ".
    And in my case I don't have any key field name.
    Kindly suggest.
    Thanks
    Indu

  • Message Mapping on the  Target side

    Hi
    I am working on Proxy to SOAP in PI 7.1, and have node which is defined on the target side as Unbounded (table)
    Here is the structure of the table that has been defined on the target side,
    CodeList - 0- Unbounded (Table)
        Id                               XSD Id
        CodeList Name           String
        CodeList Version         String
        CodeListOwnerCd        String
    Source System(ECC) is not sending any values and the values which needs to be assigned to the above structure are fixed on the target side,
    how can I assign multiple values to the Code List table
    Ex CodelistName Should contain ClaimsPartyRoleCdList, PolicyTypeCdLis ,  PaymentTypeCdList
    Please let me know how can I assign Multiple values to the target side table
    Thanks
    PR

    Hey
    You can easily do this via advanced UDF.
    Map the root node to the below UDF.Make sure that you have set the Cache as Queue for this.There will be no input values to this UDF
    //write your code here
    result.addValue(" ");
    result.addValue(" ");
    Map the underlying Nodes to the below UDF.Make sure that you have set the Cache as Context for this.There will be no input values to this UDF
    //write your code here
    result.addValue("3");
    result.addContextChange();
    result.addValue("4");
    result.addContextChange();
    I was able to acheieve the below XML by using the above two
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MI_Multiple xmlns:ns0="http://fxp.com">
       <Record>
          <First>3</First>
          <Second>3</Second>
       </Record>
       <Record>
          <First>4</First>
          <Second>4</Second>
       </Record>
    </ns0:MI_Multiple>
    Hope this works for you.
    Thanks
    Aamir

  • One IDOC to multiple messages

    Hi Experts,
    I am working on IDOC to File Scenario
    I have to send three messages using one idoc.
    Could any one let me know whether is it possible to send with out using BPM or any suggest any other way.
    Thanks in Advance.
    Regards,
    Vijay

    Hi
    If u want to send the three message at the receiver side then u have to make the occurence for the target is 0..unbounded. and use the 1:n mapping in the message mapping.
    To make the 1:N mapping in the message mapping go to the messages tab and put the occurence for the target message as 0..unbounded. when u do this it will creath the multiple message at the receiver side.
    Remember u also have to make the same changes in the interface mapping also.
    To give differnt names to all the file u can use the Addtime Stamp option in the file adfapter so it will create the file with the name as time stamp.
    If u still face the problem please reply me back.
    Thanks
    Rinku

  • Target side multi mapping

    Hi People
                       I am doing one scenario that is multiple receiver mapping
    i create 1DTsen 2DTrec, same 1MTsen 2MTrec, MI one for sender outbound and asyn, 2inbound and asyn total 3MI  and MM in message tab i assigned 2 target message types with using unbound and IM target side 2MI's
    design part is ok
    problem is only configuration , i created business service sender side i assigned sender message interface receiver side receiver interface CC's are 2sen and rec on same Business service
    In receiver determination ok,    only i am getting problem in Interface determination i assigned inbound interfaces  2 what ever i created target side but thing is i am not getting interface mapping in interface determination what is the problem,
    i am trying normal file to file scenario but multi mapping
    can you send me to ASAP
    Thanks & Regards
    Shekar

    Are you using Business Service for this ? If so , you need to explicitly add your Sender and Reciever Interfaces to the Business Service.
    Because Business Service is an Abstarct.
    So for this go to Business Service and under Sender and Reciever Tab add specific interfaces(outbound/inbound).
    Activate it
    Goto Interface Determination, you are able to add interface mapping for that corresponding message interfaces.

  • Cannot select multiple messages in a sequence diagram

    In sequence diagrams, deleting multiple messages is tedious because multiple messages cannot be selected by using a selection rectangle.
    1) If the rectangle contains a single message, its object is also highlighted. So when multiple messages are selected, the corresponding objects are selected.
    2) If the selection rectangle overlaps a single line of the combined fragments box, the entire box is selected.
    I could same time if Studio used normal CTRL conventions. In other applications, holding down CTRL has two possible results.
    1) If the item to be selected is not highlighted, then that item becomes highlighted and is added to the selection group. Studio does this.
    2) If the item to be selected is already highlighted, then that item becomes non-highlighted and is removed from the selection group. Studio does not do this. So I cannot use a selection rectangle, then selectively use CTRL to remove unwanted items from the selection.
    Can anyone suggest a way of selecting multiple messages?
    As a side issue, does anyone know how to remove individual items from a selection?

    TreySpiva wrote:
    Have you tried using the Shift key when selecting?It's the same problem. Selecting one or more messages also highlights the sending and receiving objects associated with the messages. Pressing DELETE at this point would also delete the objects.

  • In SXMB_MONI with(Green Flag) "Message Scheduled Outbound Side" (using BPM)

    Hi All,
    I had a Scenario where I am using BPM (to collect the Idocs received from Sender SAP R/3 system) and create a File as target structure. But one of the entry i found as (Green Flag) with status "Message Schedule Outbound Side". But the remaining messages are processed successfuly through the same BPM.
    I even found that the when i double click on the PE of the "Green flag entry". its leading to "qRFC Monitor(Inbound Queue) with empty entries" instead it should lead me to the workflows Log screen. Since other successfully messages are leading to workflow log when i double click on the PE.
    Please let me know your comments on this.
    Thanks,
    Shailaja

    Hi Gouri,
    I am getting gray flag in the column (Status - XML Message Status) and green flag in Colum (C- Outbound Status). So this Greem flag itself is creating the problem, because of this itself my messages is not getting processed and not delivered to target system.
    I have even checked SXI_CACHE, when i click on the Integration Process-- Right click on my BPM and  select the "Activation Log" .. here a message which i had
    I  Language not set. Using system default E
    The container element MULTI_INVOIC02 is written, but not read or exported
    The container element MULTI_INVOIC02 is written, but not read or exported
    So the  "MULTI_INVOIC02 " is used in the Container Operation  & Multimapping of my BPM. I suspect that error as taken place in doing Corelation. Do you have any comments on this. If i get any error in Corelation .. how can i debug my BPM.
    Thanks,
    Shailaja

  • How to control flow of messages to target

    I am using a Multi mapping in the Message mapping. The structure of Target message is as follows.
    Messages1
    +Node1
    +Node2 ( duplicate sub tree of Node1)
    +Node3 ( duplicate sub tree of Node1)
    +Node4 ( duplicate sub tree of Node1)
    Messages2
    +structureNode
    Messages3
    +NodeStructures
    I am using a Enhanced Interface determination so that Node1, Node2....., structureNode ( of messages2), NodeStructures ( of messages 3) will go as a seperate message to target.
    Suppose,
    None of the Nodes under Messages1 get generated in mapping but still messages1 will be sent to the target as a single message.
    THe target system is facing problems with this and generating error messages each time this happens.
    I would like to stop processing empty messages on PI.
    Whr should I stop such empty messages?can I add a module that provides me this facility?
    Why did SAP provide empty messages stop option in File not in SOAP?
    I know this provision is there in File CC but not in SOAP.
    Things I cannot do:
    1. Cannot have a mapping that will restrict messages, because I am using a multi mapping with each messae as 1...1 so I canot use @ MM.
    2. I canot use ext receiver determination because I need to choose my target message based on the target mapping result not from the source payload...
    Now how do I solve this problem?
    Thanks,
    Nikhil

    its the second case.
    good you are saved from some tedious settings
    I used multi mapping in which case, multiple messages exists and each messages has 1...1 so it will always appear with no value in any of its fields.
    Where do you want me to place the condition for mandatory fields?
    see the mandatory fields always apear in source but I wanna filter on the target mapping.
    The condition has to be put in the mapping program that you are using...check out my answer in the following thread...
    Re: Generate the Element on target if the value exists in Source element
    functionality remains the same...just implementation depends on what mapping program you use(graphical, xslt.....)
    Regards,
    Abhishek

  • NW BPM. - Split Multiple messages into 1.

    Hi,
    My requirement is take XML Message (Multiple Message ) into NW-BPM and split it into multiple reocrds( 1 Message each ).
    further on each employee i will apply mapping logics and then again recombine it and pass it to Target Message.
    Kindly Suggest.
    Regards
    PS.

    Hi Sriram,
                  I followed the above blog and successfully deployed my BPM in NWDS. I've been educated that I've create two ICOs:
    First ICO->
       Sender system(SOAPUI Tool)->PI->BPM
    Second ICO->
       BPM->PI->Receiver system(Local File system)
    I create the Second ICO as mentioned above. Basically I used the same Sender SOAP channel in both the Inbound Processing of ICO and in the second ICO I used my local file system to send the final individual files. As per the below link(Possible cause 4:)
    PI Messages are not delivered to SAP NetWeaver BPM - Technology Troubleshooting Guide - SCN Wiki
    Today I re-imported my Service Interface from ESR and again created the BPM  and deployed it successfully. But while testing I'm seeing the below Error from yesterday.
    Note : I created wsdl file from my first ICO. I'm testing from SOPUI tool.

  • Multiple Message Mapping

    Hello Guru,
    I am doing a multiple message mapping. the purpose is:
    the source message structure is
    MT_input
    |row <1...unbound>
    |---plant
    |---name
    the two target message structure are:
    MT_output1
    -|row <1...unbound>
    |---plant1
    |---name1
    MT_output2
    -|row <1...unbound>
    |---plant2
    |---name2
    there can be many row in source message, the value of plant could be 1 and 2.
    I want all rows with plant = "1" goto MT_output1,
    all rows with plant = "2" goto MT_output2.
    but I can not accomplished this job with graphic mapping. could you give me help?
    I don't want to use Java Mapping.
    Thanks a lot.

    Hi,
      MT_input
    |row <1...unbound>
    |---plant
    |---name
    the two target message structure are:
    MT_output1
    -|row <1...unbound>
    |---plant1
    |---name1
    MT_output2
    -|row <1...unbound>
    |---plant2
    |---name2
    solution :
    MT_input                                                 MT_output1
    -|row <1...unbound>                            |row <1...unbound>
    if the plant[context set to MT_input] is equals to 1 then map row from source to row in target[MT_output1]
    plant and name mapping are direct.
    Repeat the same mapping for MT_output2.
    This definitely works, i have tried it.
    Regards,
    Pragati

  • Reg: IDOC Creation on target side

    Hi guys,
                In my file to IDOc scenario ,i have requirement as one field is coming feom file ,if this field input value comes  three  time with the same value then create one IDOc and three  line item under that idoc ,
    can any help me.
    Thanks

    Hi,
    In your case multiple message mapping can be used.
    In first mapping in target structure get the data from file as per your requirement.
    In second mapping use a UDF for checking how many times the field is there. And populate it in target IDoc field

  • Message mapping source side

    Hi Experts,
    Is it possible to copy the message in source side in message mapping using src tab?
    Regards
    Sara

    You cant get the required target xml structure with values untill u complete the mapping
    Why because if you have any transformation in mapping means you have to generate the target values according to that
    So better to complete the mapping and take the xml file
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Dec 2, 2008 7:05 AM

  • Want to disable a field (1..unbounded) at target side dynamically.

    Hello,
    I want to disable a field (1..unbounded) at target side dynamically in message mapping on the basis of a condition.
    Please help me out. I serached in existing threads but culdnt find it.
    regards,
    Rahul

    Hello,
    I want to disable a field (1..unbounded) at target side dynamically in message mapping on the basis of a condition
    You can't really disable it using normal mapping because at least it will occur once. What you can do is to change the occurrence to 0..unbounded or use XSLT/Java Mapping.
    Hope this helps,
    Mark

  • Shift-scroll not selecting multiple messages

    I've got two questions, but I'll post them separately to keep the threads clean...
    I just got a Curve 8330 (used to have an 8830 World Edition, with Sprint in case it matters) and I'm loving it so far. But for some reason, I can't click the SHIFT key and scroll to select multiple messages like I could on the other BB. I've tried about every combination I could think of: Left shift, right shift, alt, press and don't hold, press and hold, press both and hold, alt-shift and scroll. Nothing.
    Is it a software problem?
    Is there some weird "don't allow shift to be used for multiple selection" setting some place.
    Oh... and yes, the Shift key works just fine for other uses.
    Ideas?

    Hi and welcome to the forums,
    I have an Verizon 8330. You should be able to use either the right or left keys to press and scroll.
    Not to be insulting, but to verify,  the keys are located on the bottom row last key on each side of the keyboard.
    They have an up arrow in silver along with an aA in each. You should be able to highlight the message to start, press either shift key, and scroll the trackball to the last selected item. 
    I was just verifying the procedure.
    Has this not worked since you got it, or has it just started?
    Please let me know,
    Thanks
    Message Edited by Bifocals on 08-30-2008 04:15 AM
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for

  • Is it possible to access my calendar while on a phone call on my Verizon iPhone?

    When I'm on a phone call on my Verizon iPhone 4, it doesn't appear that I can leave the phone screen to view, for example, my calendar.  Is there a way to access my calendar while on a phone call?  Thanks in advance for your time and responses.

  • My iPod became unlinked from my iTunes library

    When I last went to connect my iPod Classic (newest model) to my laptop, it wouldn't sync. I clicked on the music tab of the iPod settings screen and noticed that "Sync Music" was unchecked for some reason. When I clicked it I got the following messa

  • OMWB 10.1.0.2 Ms Access to Oracle strange migration of Indexes

    Hi I am migrating from MS Access 2000 to Oracle 10g with OMWB 10.1.0.2 . My Access source model has 123 indexes in it. 1.The Access source model is creating index for the same column of the same table and names it like ~~temp~index~name0 for some ind

  • Problem with when validate trigger

    Hi All, I am using oracle forms 10g. I have developed a custom form In that i have two block Header block and Detail block.In the header block some fields like Po number, po amount , supplier name, supplier site etc. And in the detail block i have po

  • Database is candidate for Check up

    Hi Experts , I understand that we need to send database to SAP support if we receive error message when we run iVi script . I don't know how much of the significant effect it has when we receive this error . I think this query doesn't apply to all bu