on 04-11-2006 5:00 PM
Can I alter the file name via the module bean?
I have this snippet code...can I alter the file name the data is being created under.
Thank you.
try {
obj = inputModuleData.getPrincipalData();
msg = (Message) obj;
// Get the Supplemental data which is available as hash table
Hashtable mp = (Hashtable)
inputModuleData.getSupplementalData
("module.parameters");
// Get the file name which is being processed
if (mp != null) fileName = (String) mp.get("FileName");
}
Hi,
no this module only works with sender file adapter
if you want to set the name you can use:
variable substituion (from sp12)
or adapter specific identifiers (from sp14) <--best solution
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michal / Krishna,
I got the same answer from you both and this solves my problem....didn't know SP14 had this awesome feature.
Like one of the guy mentions under blog comments - This should've been there a year ago.
I could not have done it thro' variable substitution since I did not want this in payload and we did not want file content conv to cut it....etc.
Michal - great blog.
Thanks.
Hi Parimala,
The options are -
Variable Substitution from SP 12 onwards
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
*And Adapter Specific Propertis from SP14 onwards..
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
*Execute the Script via operating System command-
I don't think so, you can change it in the Receiver File Adapter Module.
Hope this helps,
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.