Enhanced Reciever Determination Map problem

Hi,
i am working on enhanced reciever determination, i followed this blog for reference
/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
after the mapping recievers MT  (predefined from BASIS) . i have tested with the following payload and it is working fine.i got my ERD is working
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">
   <Person>
      <name>mr</name>
      <age>123</age>
   </Person>
   <Person>
      <name>ms</name>
      <age>12</age>
   </Person>
</ns0:MT_SampleFile_sx>
if i give the payload with more mr or ms node like below, i am getting error.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">
   <Person>
      <name>mr</name>
      <age>123</age>
   </Person>
   <Person>
      <name>mr</name>
      <age>12</age>
   </Person>
   <Person>
      <name>ms</name>
      <age>1256</age>
   </Person>
</ns0:MT_SampleFile_sx>
ERROR: Cannot produce target element /ns1:Receivers/Receiver[3]/Service. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
can any one help me to solve this problem
Thank You,
Madhav

Hi,
  I had checked UDF. As per UDF you want to give ,
<name>mr</name>
instead
<name>Mr</name>
Change the payload and map like below,
Receiver:
Name(Change Context to parent)--SplitByValue(ValueChange)--CollapseContext--Receiver
Service:
Name(Change Context to parent)--ServiceDetermination(UDF)--SplitByValue(EachValue)--Service
Regards,
Prakasu.M

Similar Messages

  • Abap proxy with attachments in enhanced interface determination/mapping

    Hi guys.
    We were receiving a abap proxy from ECC with a pdf attached in the header.
    This was the scenario PROXY ---> FILE
    We used the PayloadSwapBean Module in a Receiver File Adapter to get this document and put it in a FTP Server.
    Now we have to make and improvement in the scenario and we have to generate two receiver interfaces so the scenario looks like this:
    PROXY ---> FILE and JDBC.
    So we have to use an enhanced interface mapping and an enhanced interface determination.
    The problem is that with this enhanced interface determination/mapping the attached document is lost.
    Any solution?
    Thanks a lot.
    Regards.

    > The problem is that with this enhanced interface determination/mapping the attached document is lost.
    I know there was an issue in early PI 7.1 SP versions. maybe you find a bug fix for this?
    Otherwise report to SAP.

  • Extended rcvr determination mapping problem...

    Hi experts,
    I am using extended recv determination to achive a functionality.....
    We r creating 2 mappings one for the main mapping( transforming source to target) 2nd mapping is for extended rcvr determination  using receivers message type from BASIS components to determine my target based on conditions...
    the problem is already 2 receivers nodes are there which will trigger 2 receivers based on their own conditions....but now i need to duplicate the subtree and add my conditions to that new subtree...but  after creating the mapping after saving the mapping i am unable to see the newly created subtree...( i guess this problem is with occurence...but i have no idea how to proceed...)
    Plz help me out....
    Thanx in advance...

    the problem is already 2 receivers nodes are there which will trigger 2 receivers based on their own conditions.
    --->
    You can generate these receiver nodes dynamically by checking condition in UDF.
    For more on mapping and UDF refer
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

  • Problem in Multiple Reciever Determination

    I am working on the scenerio in which i have to send data to different system depending upon the sending payload....
    to brief about it..
    i am using 2 mappings!! one for  reciever determination and other for normal functionality
    /ns1:Receivers=/ns0:MT_ABAPPROXY= /ns1:Receivers/Receiver=/ns0:MT_ABAPPROXY/header= /ns1:Receivers/Receiver/Service=SplitByValue([type=Each value]iF(const([value=BS_AED]), stringEquals(/ns0:MT_ABAPPROXY/header/EMPNO=, const([value=000000000023])), const([value=BS_AED_210])))
    the logic was like i need if the employe number = 000000000023 , th ereciever should be BS_AED_210 else it shoud be BS_AED.
    The other mapping which performs the functionality of the Scenerio:
    Messages->                                       Messages->
        Message1->                                         Message1->
          MT_PROXY->(1..1)                                   (a) ZTEST1(0..unb)
            (a) header-> (0..unb)                                       Data
                 (b)EMPNO                                                (b)   EMPNO
                (c)EMPNAME                                           (c)    EMPNO
    where ztest is my Customized RFC...
    in ID Type of Recvr Det is Extended
    And mapping i have put is my first mapping where i determine my Reciever
    In Interface Det1: reciever was BS_AED
    In Interface Det2: reciever was BS_AED_210
    The data is gettign branched and Split sweetly it is not sending into diff syst.
    as my data is like
    EMPNO                = '000000000022'.
    EMPNAME              = 'B'.
      EMPNO                = '000000000023'.
        IT_HEADER-EMPNAME              = 'C'.
    the logic say 23 one should go to one specific system BS_AED_210 and the other to BS_AED ... but it sending both the data in both the systems...
    I hope i have clarifiy my problem..
    Kindly help me out in solving this issue....

    the logic say 23 one should go to one specific system BS_AED_210 and the other to BS_AED ... but it sending both the data in both the systems
    --->
    You need to write a UDF for that
    Did you see this blog
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    Following code will help you to route msg to corresponding receiver
    int mr = 0;
    int ms = 0;
    for( int j = 0 ; j < a.length ; j++ )
          if( a[j]==000000000022 && mr == 0)
               result.addValue("1");
               mr = 1;
          if( a[j]=000000000023 && ms==0)
                           result.addValue("2");
                           ms = 1;
    You may have to do  little modification to code acc to your logic

  • Problem with Enhanced Receiver Determination

    Hi Friends,
    I am doing the enhanced receiver determination scenario,  But it is giving the
    error in SXMB_MONI like this
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: Fehler beim Parsen der Empfänger-Liste.Länge des XML-Dokuments 264</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when determining the receiver: Problem while determining receivers using interface mapping: Fehler beim Parsen der Empfänger-Liste.Länge des XML-Dokuments 264 Problem while determining receivers using interface mapping: Fehler beim Parsen der Empfänger-Liste.Länge des XML-Dokuments 264 Fehler beim Parsen der Empfänger-Liste.Länge des XML-Dokuments 264 System expected the element 'Receivers'</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    this is error is coming in the SXMB_MONI
    THE DATA type(Receivers) we create in basis component is comes automatically?
    are we have to create?
    in my scenario i creted manually,
    is it compulsory to specify the properties for the party and agency?
    is it compulsory to create 2 Receiver structures in msg structure?
    if yes what r those, actually i used from sap.help.com,
    Can any body should give me the solution for this, regarding mapping and configuration , if anybody experienced this scenario. Pls . give me  the guidelines to do.

    Hi,
    the mapping creating the receiver list is not producing the required element "Receivers" from Namespace "'http://sap.com/xi/XI/System". Look to the operation mapping given in the enhance Receiver Determination (IB Directory)  and detect the corresponding mapping program (ESR).  Copy the source payload from MONI, test the mapping program and correct it.
    Regards,
    Udo

  • Problem while determining receivers in enhanced receiver determination

    i am doing scenario FILE-TO-FILE (with one sender and 2 receivers, dynamic receiver identification based on mapping)using enhanced receiver determination,
    it is giving following error in MONI,
    <b>Problem while determining receivers using interface mapping
    System expected the element 'Receivers'</b>
    pls. help me if anybody experienced this scenario,
    i am doing  this scenario based on the below blog.
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

    Have u properly followed the weblog,
    Integration Repository Step No 2 and Step No 5
    <i>2. </i><i>In order to use the enhanced receiver determination, create a message mapping which has the target message as “Receiver Determination” in the SAP BASIS --> http://sap.com/xi/XI/System.</i>
    <i>5. Create the Interface Mapping </i>
    U must have checked that ur Xi is on SP 16 or above )
    Regards,
    Prateek

  • Problem in enhanced receiver determination

    hi all
          I was doing enhanced receiver determination in that i got following problem
    at first i copied  abstract interface ReceiverDetermination from SAP BASIS to my component then i created my mapping program containing one udf related to my scenario.I also created one interface mapping but when i went in the directory then
    my this mapping is not coming when i have to choose it after clicking to extended receiver determination in receiver determination.
    my objects are already activated in design.the udf is also working properly.
    Please reply. This is an urgent issue.

    Hi-
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm

  • Interface Mapping not listing in the Extended Reciever Determination

    Hi,
    The Interface Mapping is not shown in my Extended receiver determination. I have created and activated the IM & MM using the MT - Receivers within the SAP Basis.
    Regards
    Unni

    Hi,
    You can only choose the Interface mapping for the Enhanced recevier determination in the extended tab of Receiver determination. & I dont see the Interface mapping in the select list.
    Where do I have to check for the proper outbound message???
    Regards

  • Enhanced Interafce Determination Split Mapping Performance factor

    Hi,
    I want to know is it a good practice to use Split Mapping using the Enhanced Interface Determination (EO-Maintain Order at Runtime is unchecked) and let the JEE adapter handle bundlings, etc.
    If the number of messages split are more say in order of thousands, it causes severe stress on the JEE Server and it goes down.
    Is Enhanced Interface Determination recommended to be used for high volume or any parmeters have to be tuned for its use.
    Thanks.
    Regards,
    Sudharshan N A

    Hi
    Enhanced Interface Determination  can be used for High Volume
    BPM is the other option for multimapping.
    But as compared to BPM , Enhanced interface Determination is the better option by performance .
    Regards
    Abhijit

  • Enhanced receiver determination and value mapping

    I want to use enhanced receiver determination functionality in my scenario.
    I couldn't see any message interface or data type under http://sap.com/xi/XI/System.
    we are on Sp08 nw04s and SAP BASIS 7.0 software component in IR.
    I don't want to hard code my business service name in mapping.How can I achieve this?
    Thanks,
    Rekha.
    Message was edited by:
            Rekha Lather

    Hi,
    ><i> couldn't see any message interface or data type under http://sap.com/xi/XI/System.
    we are on Sp08 nw04s and SAP BASIS 7.0 software component in IR.</i>
    After upgradation to SP08 on NW04s , did you reimport the SAP BASIS Component into your IR? Ask your basis admin team to reimport the SAP basis Component into the IR.
    ><i>I don't want to hard code my business service name in mapping.How can I achieve this?</i>
    Similar discussion available in the comments section of this blog,
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    Would suggest you use value Mapping.
    Regards
    Bhavesh

  • Enhanced Interface Determination - does not work!

    Hi guys,
    well i have a scenario where i have done a multi mapping where MT_TYPSCH is generated for each new value which occurs in one special source field.
    <NO>1</NO>
    <NO>2</NO>
    <NO>3</NO>
    ..so three MT will be generated.
    Now i would like these messages devided to different Business Services where each one has on FTP-CC to write a file with a certain filename, e.g. File1.txt, File2.txt, File3.txt.
    Therefore i thought i use different receivers in Receiver Determination with using Conditions and pointing to a value in field with XPATH. So depending on field <NO> the message should be routed to the given receiver targets.
    I surely use the enhanced Interface Determination because i use multi mapping.
    But when i run test, i receive 3 files with different names but same content. For me the receiver determination is not working that good.
    Can someone help me on this?!
    source:
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <No>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>

    Hi Mario,
    ok here is my requirement.
    We get ONE IDoc in which several items are listed. These have one field <NO> which can have the values 1,2 and 3. Depending on this value the items should be collected and written to different files on FTP.
    My approach is that i divide all the items in mapping in different Message Types. This MT should be routet to different business services which has one CC to write on FTP.
    To get the items with e.g. <NO>1</NO> i took condition in reciever determination using xpath. ((/ZBC21/IDOC/ZBC21/NO = 1).
    So depending on the mapping everything runs - in my point of view but the different messages are not routed to the different services to write them to different files.
    Source
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <NO>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>
    The output should be files with content of items depending on field <NO>.
    file1.txt (all items with <NO>1</NO>)
    file2.txt
    file3.txt
    I hope i made it clearer!
    br

  • Enhanced Inerface Determination for File to IDoc scenario

    I am using Enhanced Interface Determination in my scenario - where I map my source message (from a single instance) into more than one IDoc messages (separate instance of Idoc for each occurance of a particular segment in the source message). To implement this I am 1:n message mapping for Message Splitting.
    The mapping is being executed successfully and several instances of the target IDoc type is being created at the runtime. But at the technical routing step I am getting error:
    <SAP:Stack>Messages in multi-message format can only be sent to one Adapter Engine</SAP:Stack>
    Does this mean that we cannot use Multi-Mapping for Message Splitting for IDoc Outbound Channels? Even if all the target messages (more than one) are being sent through the same Inbound interface and same Reciever IDoc Channel?
    Regards,
    Suddha

    Thanks Farooq for your valuable advice.
    You know what, I read those restrictions in the help.sap.com but had thought there must be some work around. It says split messages are sent using only one AE, but I hoped that Idoc and Http can be used as they are not part of AE and rather IE itself. Anyways, can't help...............but could help me understand what are the technical reasons for these restrictions?
    The blog is really a nice one and very helpful..............thanks! I used multi-mapping in exactly similar way as in the blog and used enhanced interface determination - but the target message being Idoc
    Is BPM the only option for my scenario?
    Regards,
    Suddha

  • Error with Enhanced Interface determination

    Hi Experts,
    In enhanced interface determination for message splitting w/o BPM, i have given the interface mapping.
    But while testing the configuration.......... i am getiing an error at Interface Determination & Mapping which is not showing any processing log.
    My mapping program works fine.
    could anyone tell me where the problem is....

    Hi,
    Can you post the error message that you are getting....it will help experts solve your problem accurately.
    Regards,
    Abhishek.

  • Intermittent JDBC error in Enhanced Receiver Determination

    Hi,
    I have an interface that use Enhanced Receiver Determination in PI 7.1 EHP1.
    The database is DB2 on i5/os 6.1
    Sometimes message ends in error :Error when determining the receiver: Problem while determining receivers using interface mapping: Runtime exception occurred during application mapping com/sap/xi/tf/_HI01_to_ReceiverDetermination_;
    But the same message with same values is successfull earlier.
    This is not a design problem; the interface is working well 95% of the time.
    I found some JDBC error in NWA java logs:
    Error in sax handler parsing request: Error when executing statement for table/stored proc. 'table' (structure 'statement'): java.sql.SQLException: [SQL0104] Token "BUSINESS_SYSTEM" was not valid. Valid tokens: FOR SKIP WITH FETCH ORDER UNION EXCEPT OPTIMIZE.
    Error when calling an adapter by using the communication channel CC_RECEIVER_JDBC_PIDB2 (Party: *, Service: INTEGRATION_SERVER_PX1, Object ID: cb7ea38fb2ac3a06b12d79f5ade2bcf7) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): java.sql.SQLException: [SQL0104] Token "BUSINESS_SYSTEM" was not valid. Valid tokens: FOR SKIP WITH FETCH ORDER UNION EXCEPT OPTIMIZE.'.
    Thrown:
    com.sap.aii.af.service.api.AFException: XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): java.sql.SQLException: [SQL0104] Token "BUSINESS_SYSTEM" was not valid. Valid tokens: FOR SKIP WITH FETCH ORDER UNION EXCEPT OPTIMIZE.'.
    at com.sap.aii.af.service.api.AdapterAccess.sendMsg(AdapterAccess.java:214)
    at com.sap.aii.af.service.api.AdapterAccess.execute(AdapterAccess.java:283)
    at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:119)
    at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:76)
    at com.sap.aii.mapping.lookup.DataBaseAccessor.execute(DataBaseAccessor.java:74)
    at com.sap.aii.mappingtool.flib7.SelectSingle.selectSingle(SelectSingle.java:54)
    at sun.reflect.GeneratedMethodAccessor607.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    Any idea? Can high volume cause the JDBC Receiver to fail?
    Martin

    hi,
    you r trying to impliment Lookup for the file adapter which is not synch in nature and hance u r not getting the responce back.
    please find the link which deals with how to impliment lookup for file adapter.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file%252blookup%252bin%252budf.
    now once u get rhe runtime receiver u can perform enhanced receiver determination (write a simple UDF)
    regards,
    navneet.

  • Enhanced Receiver Determination in PI7.1

    Hi,
    We have a requirement where in we have to use the Enhanced Receiver Determination for one of our scenarios for choosing the receiver.We are on PI7.1.
    As of now,we have mapped a constant rcvr(Test_Supplier) to the Service in the message mapping from our source to the target -Receivers, as we do for Enhanced Receiver determination.The rcvr determination choosing Extended and the correct Operation mapping has been configured.The coresponding Interface determination and Receiver agreements have also been configured.
    When trying to test this by posting a payload through RWB,we get the No_Receiver_Case_Async error.
    Is it necessary to map the party field also in the message mapping?Am I missing something here?Kindly advise.
    Thanks and Regards,
    Induja

    When trying to test this by posting a payload through RWB,we get the No_Receiver_Case_Async error.
    Is the Mapping which you developed to determine the receiver(s) able to give the appropriate output? Apart from cache problem, this can also be the issue when the mapping does not produce i.e. no proper service is populated in the corresponding node....the service must be actually present (and active) in ID
    Regards,
    Abhishek

Maybe you are looking for

  • When I open iTunes on my iphone5 it shows only empty screen he cb I fix the issue..help

    When I open iTunes on my iphone5 it shows only empty screen he cb I fix the issue..help

  • Output is proposed for the original invoices when they are cancelled.

    Hi, I noticed an SAP issue related to the output. The output is proposed  for the original invoices when they are cancelled. Issue in detail: When you cancel an invoice (X) and create the cancellation Invoice document(Y) .The original invoice is dete

  • Noticed issues with SQL Developer 3.0

    Not sure where to file these found issues (and post them here until someone knows where to...) - Create TAPI PL/SQL wizard doesn't take into account tablenaming (and columns) which uses all possible 30 characters and therefore generates code that can

  • IOS Backup Questions

    If there is a better place for my issue, please tell me. Yesterday I performed a Restore on both my iPhone 5 and iPad3.  The settings on both were for iCloud backups.  With the iPhone, I got options to choose from several iCloud backups.  I got what

  • Msg E14 645 Not Found error

    Hi all, After completion of my SAPr/3 4.7installation, when I login to SAP system using GUI640 for the first time, I am getting the system message i.e. "Msg E14 645 Not Found", with this I am not able to logon to the system. Please help me to find th