Payload
What does payload in xi mean ????
Hi,
In SOAP Body you have manifest which contains link to payload
/wojciech
Similar Messages
-
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 -
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. -
Filename extension in Payload Swap bean
Hi Experts
I have a scenario Proxy to FTPS , where I have to send an excel attachment. I have used payload swap bean in receiver channel and it is working fine as I am now able to see attachment in final destination folder however since the file name is coming from ECC and we are using dynamic configuration in PI to handle this. excel attachment is missing the extention .xls when it is being triggered from ECC and therefore in FTP folder file is getting generated but with no extention.
I have added the extention .xls (as per the MIME header) in dynamic config and also tried to use concat function to achieve this extention to be added as final name of the file but when I did above adjustments I can see the correct name being generated in Main payload in SAP PI receiver channel monitoring but not in final destination folder, file still looks same as earlier (without any extention) , I believe since I am using payloadswapbean in module whatever I am getting in Mainpayload is being swapped by excel attachment values but not sure why the correct extention is not being shown up at final destination folders.
Please suggest how can I get the correct file name in destination folder with the help of SAP PI, I know I can do this if ECC will add .xls in attachment name.Hi Mohit,
I have tested the same scenario and it is working with PayloadSwapBean and DynamicConfiguration in the mapping and the file name correctly placed in the target.
Receiver File CC:
Dynamic Configuration:
Target Directory:
If your file name correctly set in dynamic configuration then the target file will be created correctly.
Regards,
Praveen. -
Sender mail adapter : How to get mail in both payload AND attachment ?
Hi,
I need to get the mail content both ways every time :
-In attachment in order to store it later.
-In payload in order to use it.
I don't see any way to do this. Any ideas ?
JB.Thanks for that fast answer.
But I have no problems with reading the payload content or accessing any attachment.
My issue is the following : I need to push the payload content as an attachment before sending the message to the Abap Proxy.
Scenario is the following :
Mail box --> PI --> ECC/Abap Proxy.
I already store all the attachment during the proxy execution, I would like to be able to do the same withe the mail content.
Edited by: JB CABIRO on Jan 13, 2012 4:12 PM -
No Payload in the soap receiver call adapter ?
Hi Guys,
configured Proxy-SOAP Asynchronus process and in the sxmb_moni, i am unable to see the payload under call adapter in sxmb_moni, but i am able to see the payload under RWB in MDT. The message is checked successful in monitor.
I am not understanding why i am unable to see the payload under call adapter in sxmb_moni. I am not getting the data into my receiver system.
Do i need to mention the QOS as EO in the soap url in the soap receiver adapter configuration ?
any help would be really appreciated
Thanks,
sriniHi,
You can only see the Payload(both with and without transformation) in MONI. message that is handling by adapter can only seen in Adapter Framework using RWB-Message Monitoring or using Communication Channel Monitoring.
Regards,
Farooq.
<b>
Rewards points if you find it usefull.</b> -
Hi all,
during mapping I have to use entries of another node of the same payload as lookup table? Is this possible with graphical message mapping, may be advanced functions, or should I use XSLT?
Regards
Mathiashi,
sure it's possible:
you can use global variables (global arrays for example)
/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
the easiest way
you can also use containers but go for global variables
Regards,
michal -
Hi,
I have a file that SAP PI has to pick, which doesnt have namespace prefix in payload, that gives me mapping error; target can not be created
<?xml version="1.0" standalone="yes" ?>
<SLL_SPL_DATA_FILE xmlns="http://sap.com/xi/GTS">
<SLL_SPL_DATA_FILE>
but if put nsO as below the file works fine and mapping generates target structure.
<?xml version="1.0" standalone="yes" ?>
<ns0:SLL_SPL_DATA_FILE xmlns:ns0="http://sap.com/xi/GTS">
</ns0:SLL_SPL_DATA_FILE>
is there a config settings in PI, or i have to ask sender to send the file with namespace prefix?
Thanks.
PremaThanks Praveen,
i tried adding bean in sender file adapter, yes it adds prefix to all nodes, but in the help it just adds where it is required, any inputs?
http://help.sap.com/SAPhelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm
Example
The anonymizer.acceptNamespaces parameter has the following value:
urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc
● Payload before using the XMLAnonymizerBean:
<Z_PAYMITEM_GET_LIST
xmlns="urn:sap-com:document:sap:rfc:functions"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<I_ACCOUNTIDENT xmlns="">
<ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
<BANK_COUNTRY>DE</BANK_COUNTRY>
<BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
</I_ACCOUNTIDENT>
</Z_PAYMITEM_GET_LIST>
● Payload after using the XMLAnonymizerBean:
<?xml version='1.0' encoding='utf-8'?>
<rfc:Z_PAYMITEM_GET_LIST
xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>
<I_ACCOUNTIDENT>
<ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
<BANK_COUNTRY>DE</BANK_COUNTRY>
<BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
</I_ACCOUNTIDENT>
</rfc:Z_PAYMITEM_GET_LIST> -
Hey guys
i m having a strange problem in my scenario,specially with FCC,i have a HTTP to File scenario and some times i get '&' or '&' in the payload,now i can take care of & by changing the encoding to ISO-8859-1 but i still cant handle &.
i dont have any mappings in my scenario so i keep on getting errors in RWB saying that ; expected after &.
any idea how can i handle this?
thanx
ahmadHey
yes its possible through adapter module too.
it can actually be done by means of Java mapping or adapter module.
have a look at the following Re: Ampersand ('&') in XML - Mapping error
regards
ahmad
Message was edited by:
Ahmad
Maybe you are looking for
-
iframe not working correctly in IE9
Hi Guys, I designed and developed a site for a client. He requested that we put 3 international clocks that sync with our South African time to display the times in 3 other countries. He actually supplied me with and <iframe> tag that he got off a si
-
Where to find a USB "full power" male/female cable?
Last year i got an ElGato Turbo h.264 usb stick. It speeds up encoding. It needs to use the full power USB port so it won't work connecting it to your keyboard. ElGato included a "full power" male/female cable so the user doesn't have to reach behind
-
Storing HK character in Oracle 8.1.6. via ODBC driver
Hi, I came to a problem about storing the HK government defined characters in the Oracle 8.1.6 via the Oracle ODBC driver. Help of any kind is welcome. Character set : ZHT16BIG5 OS : English Win NT with Richwin installed Details: The HK characters wo
-
Are both these ways of installation same?
First one... Install the MAC OSX in German language(for example) Second one... Install the MAC OSX in English language and then later change the international settings to German and restart. Are both these methods similar... or is there any differenc
-
Pass PO Customer Field to Backend System
Hi, I added a customer field to purchase order using notes 458591 and 672960. What are the steps to transfer and save the value of the field in the SRM and in the backend system, SAP R3. We are using the extended classic scenario. Thanks a lot, Eyal.