Skip to Content
author's profile photo Former Member
Former Member

XPath Issue

Hi,

I am working in a scenario of File to proxy.

As the file is a legacy data and there is no proper way to separate it into data types using content conversion , I am taking the whole data from the file into a single field in sender side and mapping it to the target side using an UDF.

I have 7 targets in total means if data comes from A1 I have to send the data to B1,B2,B3,B4,B5,B6,B7 depending on some values which I am getting in UDF.

I want to solve this using a single interface and I want the segregate the data to 7 different targets using XPath in Receiver determination.

But, the problem is in XPath I can mention a filed from sender side data type whereas in my case I have only one data in sender side and after extracting the value in UDF I can map the value in target side .

But I cant access target side data in Xpath.

Is there any other way to solve the problem?

My message mapping is attached below -

pic1.jpg (14.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 01, 2014 at 07:51 AM

    Hi,

    You can use enhanced receiver determination for this requirement.

    Same udf you can use in the enhanced receiver determination mapping.

    http://wiki.scn.sap.com/wiki/display/SI/Step+by+Step+guide+to+Explain++Enhanced+Receiver+Determination

    Enhanced Receiver Determination in SAP XI - Process Integration - SCN Wiki

    Regards,

    Muniyappan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 01, 2014 at 02:34 PM

    Use Dynamic receiver concept for this. Under Basis component, you will find the interface to use. You can determine the receiver in graphical mapping by using this method.

    There are multiple blogs on SCN on this topic.

    Hope it helps!

    Ambrish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 01, 2014 at 10:16 PM

    Hi Apu,

    The best way is to use Dynamic receiver determination through mapping. but if you have fixed length flat file in source and your condition (e.g. A1, A2) is present in fixed place (length 2-4 or 15-17 etc.) then you can use Xpath functions in receiver determination to identify the receiver.

    enahance receiver determination map details

    Step by Step guide to Explain Enhanced Receiver Determination - Application Server Infrastructure - SCN Wiki

    Please provide more details about input file to check the feasibility to use Xpath functions.

    regards,

    Harish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 01, 2014 at 10:41 PM

    Hi,

    we have 2 options to deal with it.

    1) Extended Receiver Determination.

    2) Use FCC to get the Unique identifier in Sender DT , so that, it can be used in Recvr Detmn Xpath.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.