on 07-28-2008 1:50 PM
This is my sender message Payload :
<?xml version="1.0" encoding="UTF-8"?>
<ns0:INOVIS_Sender xmlns:ns0="urn://Inovis.com">
<B>1</B>
<B>2</B>
<B>3</B>
</ns0:INOVIS_Sender>
This is my receiver message payload :
<?xml version="1.0" encoding="UTF-8"?>
<ns0:INOVIS_Receiver xmlns:ns0="urn://Inovis.com">
<C>1</C>
<C>2</C>
<C>3</C>
</ns0:INOVIS_Receiver>
How I can send the message of C in separate files at the occurance level,
for example in this example, I need to create 3 files at receiver side for each C Messages.
Regards,
Hi,
You need to have one more mapping to split the 1 receiver payload to 3 Receiver payload.. i.e u have to use 1:N mapping...
Map the field C to the INOVIS_Receiver and also C in the new mapping.
Remember the target structure in the new mapping should have the occurance of field C a 1..1.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created my scenario, but the output is coming in the same file,
Payload is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
- <ns0:Message1>
- <ns1:INOVIS_Receiver xmlns:ns1="urn://Inovis.com">
<C>00* 00 086123830000 129737787551</C>
</ns1:INOVIS_Receiver>
- <ns1:INOVIS_Receiver xmlns:ns1="urn://Inovis.com">
<C>00* 01 086123830000 129737787551</C>
</ns1:INOVIS_Receiver>
- <ns1:INOVIS_Receiver xmlns:ns1="urn://Inovis.com">
<C>00* 02 086123830000 129737787551</C>
</ns1:INOVIS_Receiver>
</ns0:Message1>
</ns0:Messages>
I need to create one file for one INOVIS_Receiver, How I can do this now ?
Where I am doing Mistake ? Please help,
Regards,
Study SAP
Hi
Use field separator is space, you can get output as 3 columns.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as my knowledge is concern...
You need to have the occurence of INOVIS tag 0.. unbounded in the target in message mapping as well as Interface mapping .
The C thing can be 0..1 ..
go to messages tab set the occurences.
Then you should use Enhanced Interface Determination in ID..
Hope your problem will be solved..
Edited by: Progirl Progirl on Jul 29, 2008 9:49 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when I am using enhanced receiver determination
getting error : No receiver could be determined.
I have created one receiver determination for INPUT --> Receiver det.
One Interface determination INPUT --> Output.
One sender agreement and One receiver agreement.
Is there any mistake ?
Please help,
Regards,
Study SAP
Thanks for reply,
Can any body give me complete idea to make separate file for one message, as for Xpath, I am not able to give any condition.
Regads,
Study SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope u can make use of Enhanced Receiver Determination after splitting.
Refer these links
http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
Illustration of Enhanced Receiver Determination - SP16
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the below UDF between the source and target node to split the source.
public void split(String[] a,ResultList result,Container container)
{
String arr[] = a[0].split(" ");
for (int i=0;i<arr.length;i++)
{
result.addValue(arr<i>);
}
}
Edited by: malini balasubramaniam on Jul 28, 2008 3:10 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can split the data into 3 fileds at target side by writing the UDF in message mapping if the length i fixed length.
And at receiver determination u can keep the condition to send the data into three different receivers.
Check this links for Xpath
http://www.tizag.com/xmlTutorial/xpathpredicate.php
http://help.sap.com/saphelp_nw04/helpdata/en/59/e1283f2bbad036e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm
https://forums.sdn.sap.com/click.jspa?searchID=12418562&messageID=5232329
http://www.tizag.com/xmlTutorial/xpathpredicate.php
http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm
http://www.w3schools.com/xpath/default.asp
http://www.w3schools.com/xpath/xpath_operators.asp
http://help.sap.com/saphelp_nw04/helpdata/en/59/e1283f2bbad036e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm
Regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.