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

Similar Messages

  • BPM Message Mapping: "Cannot produce target element /ns1:BAPI...."

    Hi,
    A scenario File - BPM - BAPI call was developed, as described in blog 'RFC scenario using BPM' cfr. link
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    The Mapping is as follows:
    MT_EDB_MATERIAL_REQ (1:1) --> BAPI_MATERIAL_EXISTENCE_CHECK (1:1)
    MATNR (1:1) -
    > MATERIAL (1:1)
    When executing the scenario, an error appears in the trace of SXMB_MONI, step 'Request Message Mapping'
    Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
    I tried the following:
    1) import the XML-file into the testmapping: executed successfully
    File:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_EDB_MATERIAL_REQ xmlns:ns0="http://agfa.com/SD_EDB">
    <MATNR>15P6X</MATNR>
    </ns0:MT_EDB_MATERIAL_REQ>
    2) Removed the mapping on node level and left mapping only on element level (material): same error
    3) Activated the message mapping, interface mapping, determinations, etc again...:same error
    4) Removed the Interface Mapping and created it again: same error
    5) Compared the version ID of the Interface Mapping/message mapping in the Monitor trace with the version ID of the IR and saw that there was a difference.
    After the CPA full cache, SXI_CACHE full refresh and object refresh in the IB Administration, the differences remain, and also the error....
    Anybody an idea ?

    Hi
    >>>Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
    The error clearly says that one of the occurrence value  for the target node mentioned is not coming from the source during mapping. The easiest way to solve the problem is as follows
    <b>
    First Execute the mapping as pointed out by "Raj" and the following steps.
    </b>
    1. Goto the Mapping Editor
    2. Double click on the target node that is causing the problem here BAPI_MATERIAL_EXISTENCECHECK.
    3.  Right click on the same node and select "DisplayQueue".
    4. View the Queue.
    5. YOu will find "Suppress" entries, which means a value is expected but no value is coming in.
    6.Go from right to left and check each node in the mapping and you will be able to trace where the suppress node comes from and take appropriate action
    regards
    krishna

  • Step by step procedure on how to duplicate subtree on the target side

    I have a requirement where i have two types 'A' and 'B'. On the target side i have 6 fields out of which 2 have to repeat for type 'A' and remaining 4 for type 'B'. I have to sort my records such that all type 'A' records come above and all type 'B' come below that.
    I had written a UDF for that initially and even used sort by key. I got to know that i can duplicate subtree on the target side thus i can have one subtree for type 'A' and one for type 'B'.
    If i get 10 records which can either 'A' or 'B' randomly arranged, how should i go with Duplicate Subtree for that. Please explain with a scenario.

    Hi Jaya,
    You just right click your node which you want to duplicate then you can choose the option Duplicate subtree. Now you mapped with you source element A twice and simlarly you just duplicate another type for 4 times and map with source element B.
    Your problem will be solved.
    Best Regards,
    vijay

  • Messages appear on the RIGHT SIDE of viewer window- how to change to bottom

    I've got an iBookG4 and recently started using the Mail application (2.1). When I opened the program, the messages appear on the RIGHT SIDE of the viewer window, not on the bottom (as I'm used to from other email programs). I've tried all the Preferences, all the 'Window' options on the Mail application, but can't seem to find a way to get the messages to the bottom of the viewer window. Does anyone have any suggestions? Thanks.....

    twodogmom,
    It appears to me as if you, or a previous user of your computer may have installed a third party plugin such as Letterbox.
    Uninstalling the plugin would result in Mail returning to the default appearance.
    ;~)

  • Error in message mapping - Cannot produce target element

    As one step in my integration process, I am builing a very simple file to BPM integration (inbound MI async, outbound MI abstract).
    The source type and the target type are completely equal - I am only doing some modifications to some of the content.
    The type for both messages - source & target message - is an imported external definition (DTD), and hence no DT or MT are created.
    As a first step I am trying to fill the target message with the content from the source message (without any modifications to the content). However, when testing this in the message mapping area, I get an error message already when filling the first element, the 'root node'.
    The error message is as follows:
    Start of test
    Compilation of <MM name> successful
    Cannot produce target element <elementname>. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element <elementname>. . Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    End of test
    Any suggestions?
    Thanks,
    C

    Thanks,
    when creating the source message manually in the MM it worked - so nothing wrong with the mapping.
    I saved this file and compared with the "original file" - containing the content which I wanted to upload, and on which the xsd (external definition) was based - and there where some inconsistancies.
    I changed some values in the source XML which made it work, also when uploading the file from a drive.
    So, I will go back to the source system and try to get a better XML.
    Thanks for now!

  • Changing datatype, afterwards Message-Mapping cannot produce target element

    Hi,
    we use PI/700.
    I changed a working system by changing a datatype of an existing message (adding a new element). My interface mapping contains two mappings: an XSL-Mapping and afterwards a Message-Mapping.
    My interface mapping looks like this:
    Message-Type A ->
          XSL-Mapping ->
    Message-Type B ->
          Message-Mapping ->
    Message-Type B
    When I test each mapping alone everything works fine (with the new element I added).
    But if I test my interface mapping in IBD with both mappings together, I'll get an error:
    "Cannot produce target element /MT_EDM_OUTBOUND_LASTGANG_TO_SAP/LASTGANG/MASSEINHEIT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd".
    Is it possible that XI has problems in refreshing the XSDs?
    I tried this:
    (1) I changed my Message-Mapping and now all elements are mapped 1:1 -> no success!
    (2) Later I changed my Message-Mapping and build in "exists" with "if" to check whether the element "MASSEINHEIT" is generated by the XSL-Mapping -> It doesn't exists (??? - WHY? - when I test it, everything works fine)
    (2) Afterwards I changed my interface mapping and take only the XSL-Mapping (without the following Message-Mapping) -> the element "MASSEINHEIT" exists now!
    I'm totally confused!
    Any ideas?
    Regards
    Wolfgang Hummel

    Hi,
    If you have made structural changes to the data type..such as number of fields have decreased/increased..or some new fld altogether, then you have to activate the datatype..goto message mapping and then re-do the mapping...but if you have made "typo" changes like names have been changed, etc..then i think it should be alrite..i have sometimes made changes to my datatype, but after activating it, i had to redo the mapping..that was it!...the rest would fall into place:) No changes had to be made in the interface mapping..
    Regards,
    Sushumna

  • Reg. the Message Splitting on the Receiver side.

    Hi,
           We are getting a Docuement/Message from a EDI partner. we need to split that doc. to send some of the data to the CRM system and rest of the data to the R3 system from the same EDI Doc. so is it possible to map the same EDI doc. to differnt systems like R3 and CRM? if  so then how do we do that?? we are using standard IDOCs in both R3 and CRM side.
    I would be very much tankful to you if you could give me a suggestion.
    Murthy

    Narasimha,
    Please correct me if i'm wrong. Your part of EDI document outbound message has to be reached R/3 System , and another part of EDI document outbound message has to be reached CRM System am I right?
    If yes then u need to define the following objects.
    2 Mapping programs.
    Mapping program1 --EDI to R/3 (Map the necessary fields)
    Mapping program2 - EDI to CRM(Map the necessary fields)
    In ID :
    Your outbound interface is same its EDI
    so while defining Receiver determination configure with two receivers(CRM, R/3 -with no conditions).
    Interface determination1 - as ususal choose inbound interface as R/3 (IDOC message type) and the corresponding Mapping Program1 as mentioned above.
    Interface determination2 - as ususal choose inbound interface as CRM (IDOC message type) and the corresponding Mapping Program2 as mentioned above.
    So if you look the objects in ID, it must have
    1 Receiver determination - with 2 configured receivers.
    2 Interface determination
    2 Receiver agreement.
    If you have any doubts reply back.
    Best regards,
    raj.

  • Message mapping not generating target fields

    hi
    iam doing jdbc--->rfc (bpm) created a one2one message mapping to import rfc table.
    thanks in advance
    sri

    Hi Sri Rao,
    Since you have created a one to one mapping, it would be required to map all the fields in your target message to ur source fields. In case there r some target fields which do not relate to your source field, map it onto a constant. This is all that is required to be done from what i understand from your query. In case there r further problems send the source n target data structure n i will be able to help you out better.
    Cheers,
    Christina

  • Additional message mapping in the operation mapping-use

    Hi Friends,
       I could find the option for adding more than one message mappings in the operation mapping(Interface mapping). What is the actual purpose of it. when it is used. If there is any blogs regarding the same. refer any link for the same.
    Regards
    Prem

    Hi Prem
    Refer the blog provided by Sarvesh
    What is the actual purpose of it. when it is used. If there is any blogs regarding the same
    You can use more than one mapping programs for requirement where your message mapping cannot generate the desired structure you want or you want to do some transformations in a sequence for meeting your requirement.
    Example: You want to generate a excel sheet as a mail attachment but you have to read a flat file. What you can do here is you can read the Flat file in a single string variable itself. Use XSLT mapping1. Now in a sequence using XSLT Map2/Java mapping program to convert to excel and send as attachment over email
    Thanks
    Gaurav

  • Message Mapping - problem with target sequence

    Hi, I hope somebody can help:
    I have already read lots of blog entries and help articles to find a solution but all the tricks with node functions and special conditions didn't help yet.
    I would like the sequence of A and B nodes just as is. In the source structure they are on the same level and in the target structure B is subnode of A.
    Thank you very much in advance.
    Source structure:
    Node A
    - source fields A
    Node A
    - source fields A
    Node A
    - source fields A
    Node B
    - source fields B
    Node A
    - source fields A
    Node B
    - source fields B
    Node B
    - source fields B
    Target structure (desired):
    A
    - fields A
    A
    - fields A
    A
    - fields A
       B
       - fields B
    A
    - fields A
       B
       - fields B
       B
       - fields B
    However, what I get is:
    A
    - fields A
       B
       - fields B
       B
       - fields B
       B
       - fields B
       B
       - fields B
    A
    - fields A
    A
    - fields A
    A
    - fields A

    Hi,
    Can u try like this.
    Map one to one.
    Dont use  any node function also dont change any conexts also af any node or element.
    But in target,make node B is under node A, and both are 0..unbounded occurence.
    Try with this....
    Let us know the result.
    Babu

  • Message Mapping : content based target structure generation

    Hi Team,
    As per my requirement , mapping should generate target structure based on one "field" value in source srtucture.i.e target structure should generate for some of the custid values  , not for all cust id's . also I dont want empty files .
    Source:
    MT_SOURCE
    -Custid
    -CustName
    Target:
    MT_TARGET
    -Custid
    -CustName
    But I want to generate Target structure MT_TARGET only for custid values' 001,002,003 ; for remaining values I dont want to generate target structure MT_TARGET . Is it possible using graphical mapping.I think UDF is correct oprtion. can you provide sample code for this requirement.
    Thanks.
    Drumi

    But I want to generate Target structure MT_TARGET only for custid values' 001,002,003 ; for remaining values I dont want to generate target structure MT_TARGET . Is it possible using graphical mapping.I think UDF is correct oprtion. can you provide sample code for this requirement.
    might be it is helpful for ur requirement:
    Custid + constant(001) +equals ->(first) if
    Custid->then                                                 
    Custid + constant(002) +equals-> else
    First if ending -> Second if
    Custid->then
    Custid + constant(003) +equals-> Second else ->target Custid

  • When using mail icon i get a blank screen with No message selected on the RH side. Top left is the word thread in  black . all other buttons are greyed out except the send new mail one. Cna anyone help?

    Email does not appear when using the mail icon on the home screen. I get No message selected showing on the rh side of my screen with the left hand third of the screen blank. Buttons on the top line are greyed out except the new mail one. The word thread appears in black on the top left hand side of the screen The only way out is to close the screen. all other apps work okay.

    Hello calverone,
    Thanks for using Apple Support Communities.
    To start troubleshooting this issue where the Mail application is not appearing correctly on your iPad, I'd like you to please force the Mail app to quit, and then restart your iPad.
    iOS: Force an app to close
    Turn your iOS device off and on (restart) and reset
    Have a great weekend,
    Alex H.

  • XML message failing in the SUS side for vendor replication from ERP

    Dear Experts,
    We have configured MM-SUS scenarios in our environment of SRM 7.01/ECC 6 ehp 5.
    We are trying to replicate the Vendor master from ECC to SUS using PI ( idoc message ZCREMAS_SUS_MM)).
    The message is successully processed in the PI. It is failing in the SUS side.
    The exception is as below:
    An error occurred when deserializing in the simple transformation program /1SAI/SASF5486DA19E3520591A1B (Length of "123 JALAN TIMUR" exceeds maximum length "10", specified with tt:maxLength Kernel ErrorId: ST_CONSTRAINT_MAXLENGTH) XML Bytepos.: 607 XML Path: ns0:SupplierPortalTradingPartner(1)TradingPartnerOrganization(2)Address(8)HouseNumber(6) An error occurred when deserializing in the simple transformation program /1SAI/SASF5486DA19E3520591A1B Length of "123 JALAN TIMUR" exceeds maximum length "10", specified with tt:maxLength</SAP:Stack>
    Where I can change the settings to allow the maximum length  of 10?
    Any input will be highly appreciated.
    Thanks and regards,
    Ranjan

    Hi,
    Note 1510484 - SUS: Order longtext in message area displayed incorrectly
    Note 1559121 - SUS: Long texts are getting broken in PCO (POR)document
    Given notes are not exactly related to the problem. Let me know if notes could work for the current issue.
    Regards,

  • Increment the Value on the Target side

    Hi
    I am working on Proxy to SOAP Scenario in PI 7.1 and I have an unbounded structure on the sender side (Business Partner) which I will be receiving multiple records at a time and have the Unbounded Structure on the receiver side which I have mapped directly.
    Here is the issue
    Based on the no of Records on the Sender side I need to increment the value and assign it to Data element which is on the receiver side
    For Instance
    If have Business Partners as 4 on the sender side, I need to assign as ClaimsParty-001, ClaimsParty-002, ClaimsParty-003 and ClaimsParty-004 to one the data eleement on the receiver side, i.e Incrementing the value on the receiver side,
    Experts Please let me know how can I do this
    Thanks
    PR

    Please let me how can I use the Index Function
    Proceed as below:
    Source ---> Index
                               ---------->less(arithmetic) ----> IfWithElse
                    Constant(10)
    Input for Then part of the above IfWithElse:
    Constant(00)
                         ---------->Concat ------>Then
    Source ----> Index
    Input for the Else part of the above IfWithElse (executed when count becomes more than 9):
    Constant(0)
                         -----> Concat ----> Else
    Source----> Index
    Index function should be:
    Initial, Increment value = 1
    Reset Index ---> Set to Do not Reset Index to Initial Value.
    Check it and let me know for an issue
    Regards,
    Abhishek.

  • Cannot deploy PL/SQL maps to the target schema as it is not owned by CC

    Hi,
    I am repeatedly getting this error when i try to deploy to target.
    I have created design repository in one database and my target is in another database.
    I have installed the runtime repository in the target machine in which my target schema is installed.
    I dont have Control Center in the target machine, i am starting the control center service from the clienf machine for the target machine.
    I have registered the target schema user as the repository user.
    I can able to deploy the tables and register the locations in the target except the PL/SQL maps.
    Thanks and Regards,
    Soma

    Do i need to have same user as Repository owner in the design and run time repositories.
    Thanks and Regards,
    Soma

Maybe you are looking for