on 07-27-2006 8:33 AM
I have given my file name as
%abc%.txt
and in the advanced mode
i have given
Additional parameters as
abc=
payload:file_reciever_mt,1,FileNameNode,1,FileName,1
while my file reciver structure is
<?xml version="1.0" encoding="UTF-8"?>
<ns:file_receiver_mt xmlns:ns="urn:filetofiledemo"><recordset><data><name></name><age></age></data></recordset><FileNameNode><FileName>Amit123</FileName></FileNameNode></ns:file_receiver_mt>
My file is getting store as %abc%.txt
not as Amit123.txt
I am using SP 14 .
Any pointers wld be very helpful
Thanks
Amit
Hi ..
The spelling in variable substituin is conflicting..
Message Type: <ns:file_re<b>ceiv</b>er_mt xmlns:ns="urn:filetofiledemo">
IN SUBSTITUIN YOU HAVE GIVEN
payload:file_re<b>ciev</b>er_mt
CHECK THE ORDER OF ie, it's changed..try this one..remaining everything is fine..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
Apart from my previous post, you can also use Adapter Specific Identifiers in your Sender and Receiver File Adapters to copy the same file name from the source to the target.
take a look at this blog for the same,
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
-- Bhavesh
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
The variable substitution option, it would be something like as shown in the following weblog,
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
Check as to which SP level you are in, you can do that by logging into your XI server, from the menu choose, System --> Status --> below Component Version (click on the lens icon) --> check the level there.
Also Please check in the integration repository under SAP BASIS 6.40 under details tab. You should be able see which support package available for this software component.
XI Content contains the Adapter's metadata. It is impossible to use the new features and new parameters in integration Directory, if you do not have the new metadata for adapters.
Please follow the note 705541 and update your xi content.
Regards,
Abhy
Message was edited by: Abhy Thomas
Hi Abhy ,
Are you saying the file adapter under
wht do i need to check in the metadata
THi abhy ,
Thks 4 ur info
The varaiable substitution link is coming now
bt i am getting error in file conversion
when i give
abc= message:interface_name
i get the file name as
file_receiver_If.txt
abt when i give as
abc=
payload:file_reciever_mt,1,FileNameNode,1,FileName,1
i get the following error in adapater
Configured at 2006-07-27 12:32:51 UTC
History:
- 2006-07-27 12:33:27 UTC: Message processing failed: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: abc
- 2006-07-27 12:33:27 UTC: Processing started
- 2006-07-27 12:33:07 UTC: Message processing failed: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: abc
- 2006-07-27 12:33:07 UTC: Processing started
wht cld be wrong now
thks
amit
Hi bhavesh ,
Sorry 4 the late reply .
Same thid which aby sugested
i am reposting wht he said
-
What i meant is if you have imported the latest SAP Basis 6.4 content after upgrade ? The adapter metadata is part of this content and so make sure this has been done.
Iwould suggest you to contact your Basis team for this issue....
-
in case you want specific deatils i cn get it from the basis guy in my team .
thks
amit
Hi,
Check out this URL
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Check these weblogs as well...
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
Thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
set "enable" flag and put the variable name into the table.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
You can use this too
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Check these out..
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
cheers,
Prashanth
P.S : Please mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.