cancel
Showing results for 
Search instead for 
Did you mean: 

XPath Issue

Former Member
0 Kudos

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 -

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Harish
Active Contributor
0 Kudos

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 - ...

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

regards,

Harish

ambrish_mishra
Active Contributor
0 Kudos

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

Muniyappan
Active Contributor
0 Kudos

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+Determinati...

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

Regards,

Muniyappan.