Payload differ
Hi gurus,
The Message output which i get using mapping editor in sap xi is different from the payload i see in SXMB_moni (i.e xml payload)
I refreshed the cache but still the same problem persist
Hi Sainath,
If you are getting different payload, Test the mapping. Follow these steps.
go to TCODE - SXMB_MONI
- choose you message
- choose the payload of the inbound message
- copy the source xml of your message
- paste the source of your message into your mapping program
Now you can be sure that you test a correct message.
Regards,
Varun
Similar Messages
-
Payload from Two diff Outbound interfaces and Business Service
Hi All:
I created a scenario....where messge is coming from two diff outbound message interface..and have only one inbound inteface...
Message_One is coming from one OA interface.
Message_Two is coming from other OA interface.
I am using only one Inbound interface...
Message Mapping
Source Message:
MessageOne
MessageTwo
Target Message:
Message.
Now for this I cretaed one IP
<b>Fork</b> (two receive steps..for message one and mesage two)
<b>Transformation</b> (Interface Mapping between (Message one, Message Two) and Message
<b>Send.</b>
Here is the source from the Test Tab of the IR tool.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_Message_One xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<CutomerName>Gillette</CutomerName>
<CutomerID>AA123</CutomerID>
<ProductName>PN</ProductName>
<ProductID>1234</ProductID>
</ns1:MT_Message_One>
</ns0:Message1>
<ns0:Message2>
<ns1:MT_Message_Two xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<ProductCost/>
<ProductManufaturingDate/>
<ProductExpDate/>
<ProductID/>
</ns1:MT_Message_Two>
</ns0:Message2>
</ns0:Messages>
Now below information is coming from first File
<CutomerName>Gillette</CutomerName>
<CutomerID>AA123</CutomerID>
<ProductName>PN</ProductName>
<ProductID>1234</ProductID>
This infromation is coming from second file
<ProductCost/>
<ProductManufaturingDate/>
<ProductExpDate/>
<ProductID/>
Question how my input message looks for both??
I am using HTTP client to send the two diff message from two diff Business Service to same BPM.
Is it like
<b> <ns1:MT_Message_One xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<CutomerName>Gillette</CutomerName>
<CutomerID>AA123</CutomerID>
<ProductName>PN</ProductName>
<ProductID>1234</ProductID>
</ns1:MT_Message_One></b>
<b> <ns1:MT_Message_Two xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<ProductCost/>
<ProductManufaturingDate/>
<ProductExpDate/>
<ProductID/>
</ns1:MT_Message_Two>
</ns0:Message2></b>
Thanks & Regards,
Farooq FarooquiYes now I achived it...
It like the same as I mentioned
<ns1:MT_Message_One xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<CutomerName>Gillette</CutomerName>
<CutomerID>AA123</CutomerID>
<ProductName>PN</ProductName>
<ProductID>1234</ProductID>
</ns1:MT_Message_One>
<ns1:MT_Message_Two xmlns:ns1="http://t-systems.com/XI/Demo/BPM">
<ProductCost/>
<ProductManufaturingDate/>
<ProductExpDate/>
<ProductID/>
</ns1:MT_Message_Two>
</ns0:Message2> -
Site to site VPN RV215W and SRP521: malformed ISAKMP Hash Payload
Hi
I have been struggeling with this problem for one week and tried all configuration (except the right one)
I have Two Cisco (one RV215W and one SRP521)
the SRP521 was used as client - server configuration and works fine
I wanted to move into a site to site config behind an internet box (using NAT to make things more complex)
On Site G
(LAN)192.168.25.0/24 === 192.168.25.1(CISCO RV215X)192.168.10.161 192.168.10.1(xDSL) 88.B.C.D (where 88.B.C.D is my public adress on site G
On Site R
(LAN)192.168.15.0/24 === 192.168.15.1(CISCO SRP521)192.168.1.2 192.168.1.1(xDSL) 41.F.G.H (where 41.F.G.H is my public adress on site R
So I have NAT (So I have activated NAT traveral on both side)
On the RV215W (Site G)
IKE Policy Table
Mode:main
Local identifier : 192.168.10.161
Remote identifier 192.168.1.2
AES128/SHA1
DH Group2
xauth disabled
VPN policy table
Type:autopolicy
remote endpoint 41.F.G.H
Local 192.168.25.1/255.255.255.0
remote 192.168.15.1/255.255.255.0
AES128/SHA1
PFS Keygroup: disable
On site R (SRP521W)
IKE
Policy Name gnt
Exchange Mode Main
Encryption Algorithm AES128
Authentication Algorithm SHA-1
Diffie-Hellman (DH) Group Group 2 (1024 bit)
Auto Pre-Shared Key XXXXXXXXXX
Enable Dead Peer Detection Enable
DPD Interval 3600
DPD Timeout 3600
XAUTH client Disable
IP Sec
Status Enable
Policy Name rabat
Local Group Type IP Address & Subnet
Local Group IP Address 192.168.15.1
Local Group IP Subnet 255.255.255.0
Remote Endpoint IP Address
Remote security gateway address 192.168.10.161
Remote security domain name
Remote group type IP Address & Subnet
Remote group IP 192.168.25.1
Remote group Subnet Mask 255.255.255.0
Encrypted algorithm 3DES
Integrity algorithm SHA-1
Police type Auto
Manual encryption key
Manual auth key
Inbound SPI
Outbound SPI
PFS Disable
Key life time 7800
Now using IKE police gnt
This are the logs
6 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: sending notification PAYLOAD_MALFORMED to 41.F.G.H:4500
7 2014-04-02 0:08:05 AM debug pluto[22201]: | 46 5f b1 08 95 86 af 15 b4 06 f9 a4 5a f6 d8 ad
8 2014-04-02 0:08:05 AM debug pluto[22201]: | payload malformed after IV
9 2014-04-02 0:08:05 AM info pluto[22201]: "rabat" #2: malformed payload in packet
10 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: malformed payload in packet
11 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: byte 2 of ISAKMP Hash Payload must be zero, but is not
12 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: Dead Peer Detection (RFC 3706): enabled
13 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R3: sent MR3, ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=aes_128 prf=oakley_sha group=modp1024}
14 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: new NAT mapping for #2, was 41.F.G.H:500, now 41.F.G.H:4500
15 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R2 to state STATE_MAIN_R3
16 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: Main mode peer ID is ID_IPV4_ADDR: '192.168.1.2'
17 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R2: sent MR2, expecting MI3
18 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R1 to state STATE_MAIN_R2
19 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: NAT-Traversal: Result using RFC 3947 (NAT-Traversal): both are NATed
20 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R1: sent MR1, expecting MI2
21 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R0 to state STATE_MAIN_R1
22 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: responding to Main Mode
23 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-00]
24 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02] meth=107, but already using method 109
25 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] meth=106, but already using method 109
26 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-03] meth=108, but already using method 109
27 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [RFC 3947] method set to=109
28 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [Dead Peer Detection]
29 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: ignoring unknown Vendor ID payload [4f4543714271574c644b7a41]
I guess that the error is byte 2 of ISAKMP Hash Payload must be zero, but is not
I could not find any real hint on the internet/forums about this errorHi
I have been struggeling with this problem for one week and tried all configuration (except the right one)
I have Two Cisco (one RV215W and one SRP521)
the SRP521 was used as client - server configuration and works fine
I wanted to move into a site to site config behind an internet box (using NAT to make things more complex)
On Site G
(LAN)192.168.25.0/24 === 192.168.25.1(CISCO RV215X)192.168.10.161 192.168.10.1(xDSL) 88.B.C.D (where 88.B.C.D is my public adress on site G
On Site R
(LAN)192.168.15.0/24 === 192.168.15.1(CISCO SRP521)192.168.1.2 192.168.1.1(xDSL) 41.F.G.H (where 41.F.G.H is my public adress on site R
So I have NAT (So I have activated NAT traveral on both side)
On the RV215W (Site G)
IKE Policy Table
Mode:main
Local identifier : 192.168.10.161
Remote identifier 192.168.1.2
AES128/SHA1
DH Group2
xauth disabled
VPN policy table
Type:autopolicy
remote endpoint 41.F.G.H
Local 192.168.25.1/255.255.255.0
remote 192.168.15.1/255.255.255.0
AES128/SHA1
PFS Keygroup: disable
On site R (SRP521W)
IKE
Policy Name gnt
Exchange Mode Main
Encryption Algorithm AES128
Authentication Algorithm SHA-1
Diffie-Hellman (DH) Group Group 2 (1024 bit)
Auto Pre-Shared Key XXXXXXXXXX
Enable Dead Peer Detection Enable
DPD Interval 3600
DPD Timeout 3600
XAUTH client Disable
IP Sec
Status Enable
Policy Name rabat
Local Group Type IP Address & Subnet
Local Group IP Address 192.168.15.1
Local Group IP Subnet 255.255.255.0
Remote Endpoint IP Address
Remote security gateway address 192.168.10.161
Remote security domain name
Remote group type IP Address & Subnet
Remote group IP 192.168.25.1
Remote group Subnet Mask 255.255.255.0
Encrypted algorithm 3DES
Integrity algorithm SHA-1
Police type Auto
Manual encryption key
Manual auth key
Inbound SPI
Outbound SPI
PFS Disable
Key life time 7800
Now using IKE police gnt
This are the logs
6 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: sending notification PAYLOAD_MALFORMED to 41.F.G.H:4500
7 2014-04-02 0:08:05 AM debug pluto[22201]: | 46 5f b1 08 95 86 af 15 b4 06 f9 a4 5a f6 d8 ad
8 2014-04-02 0:08:05 AM debug pluto[22201]: | payload malformed after IV
9 2014-04-02 0:08:05 AM info pluto[22201]: "rabat" #2: malformed payload in packet
10 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: malformed payload in packet
11 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: byte 2 of ISAKMP Hash Payload must be zero, but is not
12 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: Dead Peer Detection (RFC 3706): enabled
13 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R3: sent MR3, ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=aes_128 prf=oakley_sha group=modp1024}
14 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: new NAT mapping for #2, was 41.F.G.H:500, now 41.F.G.H:4500
15 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R2 to state STATE_MAIN_R3
16 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: Main mode peer ID is ID_IPV4_ADDR: '192.168.1.2'
17 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R2: sent MR2, expecting MI3
18 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R1 to state STATE_MAIN_R2
19 2014-04-02 0:08:05 AM debug pluto[22201]: "rabat" #2: NAT-Traversal: Result using RFC 3947 (NAT-Traversal): both are NATed
20 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: STATE_MAIN_R1: sent MR1, expecting MI2
21 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: transition from state STATE_MAIN_R0 to state STATE_MAIN_R1
22 2014-04-02 0:08:04 AM debug pluto[22201]: "rabat" #2: responding to Main Mode
23 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-00]
24 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02] meth=107, but already using method 109
25 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] meth=106, but already using method 109
26 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-03] meth=108, but already using method 109
27 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [RFC 3947] method set to=109
28 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: received Vendor ID payload [Dead Peer Detection]
29 2014-04-02 0:08:04 AM debug pluto[22201]: packet from 41.F.G.H:500: ignoring unknown Vendor ID payload [4f4543714271574c644b7a41]
I guess that the error is byte 2 of ISAKMP Hash Payload must be zero, but is not
I could not find any real hint on the internet/forums about this error -
Diff btw queue,context and xpath
plzzz provide me the links for diff btw queue,context and xpath....i have searched the sdn but didnt find find any information...!!!
and also please provide me u r usefull ideas
thnx SDNersHi ,
Have a look at these links for queue and context -
1. /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
2. http://wiki.sdn.sap.com/wiki/display/XI/Detailedlookintothesuppressed+nodes
3. /people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping
XPath is used to navigate through elements and attributes in an XML document. It can be used in content based Receiver determination. For details refer to these links -
1. http://www.w3schools.com/xpath/default.asp
2. http://en.wikipedia.org/wiki/XPath
3. /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Regards,
Sunil Chandra -
Filename in Attachement payload
Hy,
I have to detach an email attachement on my file System.
That's works but I'm not able to maintain the same filename.
Can anybody help me.
Thanks
MatHi Mattia,
If your file name is a part of your email atttachment ( the payload ), then you can dynamically create your file name.
To do this,in the filename of the receiver file adapter, give the filename a <b>%var%</b>.
Anything between % is treated as a varibale by XI. Now, under variable name substitution, you will have to give the value of var and this will act as the filename.
You can access the payload using <b>payload:</b> and the XPATH.
For info on how to do this, check the topic<b> VARIABLE SUBSTITUTION</b> in this link.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
hope this helps,
Regards,
Bhavesh -
Hello experts,
Is there anyway I can get filename and populate in the payload so I can see it as an additional tag in SXMB_MONI? This is from sender file adapter that I want to capture file name. If possible, I would also like to populate interface name, message ID in the payload in SXMB_MONI. I have read Dynamic Configuration blogs but that brings the filename in the Dynamic Configuration but I would like to get them in payload.
Thanks,
JohnJohn,
I think, this it is possible by implementing
1. Java Mapping
2. UDF
Please refer this help link which clearly explains how to access message id, interface name etc.
[http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm]
Regards
Ramesh -
What is diff b/w sy-index and sy-tabix
Hi all,
Can u plz give me the diff b/w sy-index and sy-tabix exactly and how it works.
Thanks & Regards
VenkatHi Venkat,
<b>1.SY-INDEX</b>
<b>-></b>Current loop pass
<b>-></b>In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
<b>2.SY-TABIX</b>
<b>-></b>Current line index
Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables.
The field is either not set or is set to 0 for hashed tables.
<b>APPEND</b> sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
<b>
COLLECT</b> sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
<b>LOOP AT</b> sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
<b>READ TABLE</b> sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
<b>
SEARCH</b> <itab> FOR sets SY-TABIX to the index of the table line in which the search string is found.
I think that it clears ur doubt.
<b>Thanks,
Venkat.O</b> -
How can I use same account in 2 iphone with diff contact list?
how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out. -
Error while assigning Payload to container variable, Activate SXI_Cache
Hi experts,
I have a BPM-Szenario. There is a ContainerOperation where I want to fill a Container Variable with a Payload variable. Unfourtunately I get an error in TA sxi_cache: "The value of expression "&.....&" cannot serve as the source of an Assignment.
My question is, is it really unpossible to do this?
By the way: After them my bpm in sxi_cache is blocked. Also if i delete the container operation it is a lot of luck to activate my bpm.
My actions to activate the BPM are:
IR - F7 = all is ok
ID - Delete IP and Create the IP new
SLD-Cache - Activate in IR and ID
SXI_Cache - Delta and Full Cache Refresh
TA SWWL - There are no error work items
All actions do have no influence to the sxi_cache.
Are there any ideas from the experts?
Best
MathiasHello Mathias,
How do you assign the container varaible? Are you sure, that your XPath-expression is correct? Is your target container a simple typed container?
Best regards
Joachim -
Dynamic file name from input payload (RFC 2 flat file)
Hi,
I have an RFC to flat file scenario. The output flat file has not an XML structure, it's just a plain text file generated with abap mapping.
In my source interface (RFC), I have a field called <FILENAME>, I want to use the value of that field to create the target file using dynamic file name. But if in variable substitution I use payload:ZRFC_NAME,1,FILENAME,1 It doesn't work because the dynamic variable substitution try to access to output payload, not the source one...
What can I do?Hi Marshal,
You can add a extra node to your target strucutre like
FileName- Node
--FileName - Element.
do the mapping from the field filename of RFC to FileName field in u r target strucure. And use this field path at Refrence in variable subtituion.
In the Content converison add the Name & Values as below
FileName.fileldNames -- FileName
FileName.fieldFixedLengths -- 0
FileName.fixedLengthTooShortHandling -- Cut
So the extra field in u r target structure would not populate in u r target text file.
Cheers
Veera -
Setting the JMS Header from Payload
Hi Experts,
My requirement is to send the payment data coming from ECC to non sap system.Sender adapter is proxy and receiver is JMS.ECC will be sending the filename in one field and payload content as a string in another field.PI has to set the filename coming from ECC in JMS header property.What configuration changes should i need to make in JMS adapter to achieve it?
Converting the XML to string is possible in PI.But my question is converting the string XML data into XML fields is possible in SAP PI?If so how to do that?
Please provide your suggestion.
Regards,
KarthigaHi Karthiga,
The UDF is there in blog
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "DCJMSMessageProperty0");
String s = dynamicconfiguration.get(dynamicconfigurationkey);
CorrID.append(s);
Please let me know if you have any issue.
regards,
Harish -
File Receiver - Dynamically create filename from data in payload
Hi there.
Can anyone tell me the approach I need to take to be able to use the data in one field to determine the filename in the file receiver adaptor.
I have a requirement that requires that I save a file with the following mask:
xxxx_xxx<b><date extracted from field in payload></b>.csv
I would appreciate any help on this.
Thanks in advance.
Mick.Hi Mick,
you just need to use adapter specific parameters
and you will be able to set the name in your mapping
(from your payload)
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Processing the filename in the payload
Hi,
I am getting the filename in the payload, I want to read that file.
How do I achieve this..
Regards,
VarunHi,
For Example if we want to get the Input file name & Directory Details into Target message.
Ex:
I/P File name is :::::231004.xml Ftp Serve Path : //xideveloper/Test_XI/PO
O/P File name can be :::Any thing
Input File : 231004.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_TEST_AGCO xmlns:ns0="http://tafe.test.com">
<Header>
<NAME>giri</NAME>
</Header>
</ns0:MT_TEST_AGCO>
Output File : Out.xml
Here in this output we are able to get the Filename & Directory Info in the FileName_1 Field.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_target xmlns:ns0="http://test.com">
- <Header>
<Name_1>giri</Name_1>
<File_Name_1>231004.xml //xideveloper/Test_XI/PO/</File_Name_1>
</Header>
</ns0:MT_target>
You should capture the Source File name & Directory Info into Target Message.
1) Write One UDF & Map Like Constant(u201Cu201D)---UDF----FileName_1
2) In Advanced mode check the check box Set Adapter-Specific Attributes
3) Check the ASMA Parameters in Sender Adapter Alone
4) No need to check the check box ASMA in the receiver side
UDF Code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//for getting filename
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
//for getting directory
DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
/similarly for getting filetype, filesize you need to specify in the above code instead of filename or directory/
String FileName = conf.get(key1);
String Directory = conf.get(key2);
String Cat = FileName+ " "+Directory;
//return FileName;
//return Directory;
return Cat;
Regards
Seshagiri -
Accessing the filename in the payload
Hii
I want to process the filename (eg:sample.xml) from the payload of the message.
<Message>
<Method/>
<Source>sample.xml</Source>
<Target/>
</Message>
And use the filename in other scenario.
Regards,
VarunHi Varun
Use variable substitution
File name : %FileName%
Enable variable substitution in Receiver File adapter.
Variable name = FileName
Reference = payload:Message,1,Method,1,Source,1
For more info refer
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Thanks
Gaurav -
Sender filename in receiver payload without using mapping.
hi Experts,
I have a File to RFC scenario. wherein i need to pass source filename and filepath as parameter to RFC whenever file arrives at source directory.
I am not using IR contents. What could be the simplest way to achieve this.
One way ofcourse is to write an adapter module to generate Receiver payload with the required information.
Can we have even more easier way to achieve this. Can something be done in Content conversion to get the receiver xml payload with filename and filepath?
Regards,
GirishHi Girish
You can use IR mapping for a binary source data, but it must be a Java class, not an abap or graphical mapping.
Regards,
Carme.
Maybe you are looking for
-
My email is crashing every time I open it. Any idea how to fix this?
1 day ago my iPhone started crashing every time I opened my email. I've tried deleting suspicious emails (quickly before it crashes) but that didn't work. I went out to the web server and deleted the same emails and that didn't fix it either. I've re
-
N73 Trying to connect to Pioneer DEH-85BT Head Uni...
Right, Got a replacement N73 from Orange as mine was broken! My old one connected fine to my headunit (Had a little car next to the bluetooth symbol) My new one will connect but Can I get a car symbol, can i Hell! Tried for an hour still no joy! It c
-
Hi, How can I find the Maximum date from all the dates of a date characterstic which exists in CUBE Data. I want restrict a selection in my Query with this maximum Date. So how can i fetch that date into a variable?
-
Went to copy pics from I phone kiosk said I have 1800 pics. I have 968 in my camera roll and the same in my photo stream. Why are the pics on my phone 2 times?
-
Media core CS6 has stopped working
I get an error message upon starting up my computer: Adobe media core CS6 has stopped working. What does that mean?Premiere Element 11 Message was edited by: Danielle Jaworowski Can someone answer me?