Updated Filename in File Receiver
I need to append today's date to the file name when outputting a file. The date isn't available in the outbound XML so I can't use variable substitution. Does anyone have any suggestions?
Hi,
I don't have access to a date or time in the outbound XML file so I can't use variable substitution. I can't add additional fields to the outbound message as the partner would reject them.
To Map the Date function you no need any field in the source structure.The Date function is the standard function.and it wont take any input from sourece.it simply returns the current date in the specifies format.
I see that I need to create a mapping to the root node, using my date and including a userdefined function to put this value somewhere I can get it later
generally u specify your file name in Receiver communincation channel.So the same file name you have to concate with the Date (by usind predefined function Concat) and give the new string that means(ex:Filename = XYZ and Date :20080914 then new concated string whould be "XYZ20080914")
you have to create one new UDF and copy the code that have specified and give the new String (for ex:XYZ20080914) as input.map it to root node.
In ID you have to enable Adapter specific message attributes and also Filename in that.(Give * or any string in the place of File name) Because of this in the receiver file adapter it wont take the static filename which we have specified in the fiels FileName,instead it will take the File name which we have specified in Mapping UDF.
Similar Messages
-
Adapter Module Filename in File Receiver Channel
Hi All,
is it possible to set the Filename in File Receiver Adapter from Adapter Module?
I know that it is possible to read the data
Channel ch = new Channel(moduleContext.getChannelID());
path = ch.getValueAsString("file.targetDir");
I Need to set the filename in Adapter Module, using of Payload is not possible because Payload is not xml.
Dynamic Parameters in Message Header is not possible because it is an multi mapping process an i need dynamic Filename for each Part
payload after mapping is like
MainDocument
SubMainDocument
MainDocument
SubMainDocument
i need special Name for each SubMainDocument in FileReceiverAdapter
regards
ralfHello Stefan,
interface mapping is an mapping like this:
outbound_interface => Inbound_Interface1
=> Inbound_Interface2
=> Inbound_Interface3
in sxmb_moni this looks like this
Soap_Header
Soap_Body
Payloads
=>MainDocument ( application/xml )
=> SubMainDocument ( text/xml )
=>MainDocument ( application/xml )
=> SubMainDocument ( text/xml )
First SubMainElement is routing to FileReceiverAdapeter A where Filename has to be like "NameA%nr%"
second SubMainElement is routing to FileReceiverAdapeter B where Filename has to be like "NameB%nr%"
%nr% is som value from the Payload.
Payload is not xml because using of Conversion Argent!!
I Think there is only one Dynamic in Header for all subelements, i have test it!
ralf -
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> -
Receiver determination using substring in filename in file adapter
Hi
In PI 7.11 I would like to determine the receiver based on a substring in the filename in a file receiver adapter. I am planning on using a context object but am having trouble entering the correct code in the "Right Operand" field.
I have tried selecting Context Object = Filename http://sap.com/xi/XI/System/File and entering this code in the Right Operand: "contains(substring('_4000_'))" and an "=" in the as I am looking for a filename, that contains the substring "_4000_".
I would like to avoid using an extra map and using Dynamic Configuration, as I thing this would be the most elegant way of fixing it
Is there a way of referencing the context object if I chose xpath in stead of context object?
MIkaelHi Mikael,
I have the same scenario like you , could you please tell me about the condition how to you use XPath for Context Object
I need to check the file name and according to that I have to put the file in the different directory.
Source File: XXXX_IN_xxxx
XXXX_PH_xxxx
I have to check the 7th and 8th Char of the file and according to that I have to place the file in the folder
Target: DGE008\IN\Inbound
DGE008PH\Inbound
I don't know how to used the XPATH for file and specially how to use the substring in that.
Could you please help.
Thanks, -
File receiver: Dynamic Filenames error
Hi
I get an error in my File receiver adapter..
Receiver Adapter v1730 for Party '', Service 'SenderSystem':
Configured at 19:32:43 2005-08-01
Last message processing started 19:33:26 2005-08-01, Error: Message processing failed with java.text.ParseException: Variable 'test' not found in variable substitution table
We are currently on XI Sp12 patch level3.I have enabled the Variable substitution option and have defined a variable "test" used in defining the file name scheme.The reference points to a node value in the payload.
I have checked the config xml for the channel which does contain this value test in the variable table..Am I missing anything???
the config xml is as below:
[code]2005-08-01 19:32:43 : ToFile
Raw configuration data ***
Transport protocol: File, version
Message protocol: File, version 3.0.0527
ftp.user|anonymous
file.varSubstitution|true
file.adapterStatus|active
file.addParameterParams|*** TABLE , 0 ROWS DEFINED ***
file.execute|
file.targetFileName|%test%.xml
ftp.overwrite|false
file.counterMode|immediately
file.encoding|
file.overwrite|true
ftp.transferMode|bin
ftp.anonymous|false
ftp.port|21
file.advanced|false
file.varSubstitutionDisableSecurity|true
ftp.targetDir|null
ftp.host|null
file.counterSeparator|
file.counterFormat|00000
file.varSubstitutionParams|*** TABLE , 1 ROWS DEFINED ***
file.varSubstitutionParams|file.varSubstitutionParams$0$file.varSubstitutionParamName$test
file.varSubstitutionParams|file.varSubstitutionParams$0$file.varSubstitutionParamValue$payload:input,1,filenode,1,filename,1
file.type|bin
file.targetDir|//10.201.103.253/download
ftp.password|***
ftp.putSafe|YES
file.writeMode|addTimeStamp
ftp.writeMode|addTimeStamp
file.recordsetStructure|null
file.conversionParameters|*** TABLE , 0 ROWS DEFINED ***
ftp.connection|permanently
file.counterStep|1
Used configuration data ***
'MessageProtocol': 'File'
'TransportProtocol': 'File'
'file.adapterStatus': 'active'
'file.advanced': 'false'
'file.encoding': ''
'file.execute': ''
'file.overwrite': 'true'
'file.targetDir': '//10.201.103.253/download'
'file.targetFileName': '%test%.xml'
'file.type': 'bin'
'file.varSubstitution': 'true'
'file.varSubstitutionDisableSecurity': 'true'
'file.waitForExecute': '0'
'file.writeMode': 'addTimeStamp'
OK - initialized
[/code]Sri,
You have specified payload:input,1..... in ur variable substitution configuration. Is "input" the name of ur Message Type object in repository. If not, specify the name of the Message Type referred to in ur inbound interface.
We tried this option and generated an additional field in the XML data given as input to the file receiver adapter, to be used for substitution purpose only. We avoided specifying this field in our content conversion , however it still gets written to the file!! if u able to crack it let us know
-Saravana -
Retaining original filename in FILE- SOAP- SOAP- FILE
We have faced a scenario where I have to retain original filename in File-> SOAP-> SOAP ->File. The issue is that we don't have any ESR objects and neither do we intend to create any. So its purely configuration to transfer file from one folder to another.
Any suggestion would be highly appreciated.
Thanks,
SwatiHello Swati,
Even after trying the above steps suggested by Praveen, if you don't get the results use Dynamic Configurations module in the Receiver channel along with the above settings.
1) Make sure the above settings are done (given by Praveen)
2) Assign a new variable as the file name parameter under receiver channel configurations.
3) Assign the "message:interface_name" value to the variable under Variable Substitution
4)Under Module Tab do the following:
Let me know if you still face any further issue.
Regards,
Simran -
Variable Substitution File Receiver Adapter
Hi,
I am in the process of implementing a scenario involving the conversion of a .jpg file to .bmp. In my scenario, I'd like to the .bmp file name to be dynamically controlled; therefore, I have used the Variable Substitution option in the File Receiver Adapter.
In both the File Sender & Receiver comm. channels, I have ticked 'Adapter Specific Messsage Attributes' check-box and selected the 'File Name' option.
The File Receiver comm. channel also has the following:
File Name Scheme*: %File_Name%.bmp
Variable Name: File_Name
Reference: message:FileName
Having done the above, I am getting the following error message in Comm. Channel Monitoring:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Unknown message header category 'FileName' for variable 'File_Name'.: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Unknown message header category 'FileName' for variable 'File_Name'.
Would really appreciate your assistance on this.
Regards,
Reuben.
PS: The Sender File Adapter has theHi,
The full error message is s follows:
Runtime exception during processing target field mapping /ns0:MaterialBITMAP_In. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Test_Conversion_ method setfilename$[17092008, osinef, com.sap.aii.mappingtool.tf3.rt.Context@d3b0d3b] com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns0:MaterialBITMAP_In. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Test_Conversion_ method setfilename$[17092008, osinef, com.sap.aii.mappingtool.tf3.rt.Context@d3b0d3b] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:350) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:215) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Test_Conversion_ method setfilename$[17092008, osinef, com.sap.aii.mappingtool.tf3.rt.Context@d3b0d3b] at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:56) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:294) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:215) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:47) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:294) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:215) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.lang.NullPointerException at com.sap.xi.tf._Test_Conversion_.setfilename$(_Test_Conversion_.java:61) ... 24 more RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:MaterialBITMAP_In. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Test_Conversion_ method setfilename$[17092008, osinef, com.sap.aii.mappingtool.tf3.rt.Context@d3b0d3b]
11:15:02 End of test
Reuben. -
I have a PC computer and an i-phone 4S. I set up an i-tunes acct online w/ icloud. After a recent update my PC started receiving an error message on start up. It says "AppleSyncNotifier.exe - Entry Point Not Found". It also says, " The procedure entry point smlTextreaderConstName could not be located in the dynamic link library libxml2.dll". I click on OK and it moves on. It doesn't seem to affect my computer, but it's annoying. Any ideas on correcting this?
UPDATE - (Made a second post so it'd be clearer)
I uninstalled Office 2003, then iTunes, then all of the associated software (Mobile Device Support, Apple Update, Quicktime, EVERYTHING)
Reinstalled Office 2003, then Office 2003's Service Pack 3, then all Microsoft Updates for Office 2003. Then I configured a blank Outlook profile, no data other than the IMAP info for my .Mac/Me account. Then I downloaded (didn't used my existing copy) of iTunes 7.7 and reinstalled. Sync'd phone. Changed MobileMe settings. Told it to sync contacts and calendar with Outlook. It warned me because it was the first sync. Told it to take ALL of the MobileMe data and replace the data on the computer (which was blank.) NOTHING showed up in Outlook. When I tell it to sync Contacts with the Windows Address Book, it works fine.
In Conclusion, it still won't sync with Outlook, when it's set to Sync with Outlook I still get the annoying MAPI errors. So I switched to to Sync the Contacts with the Windows Address Book, and I'm backing up my WAB file now with my nightly backups.
I suppose we'll see if it gets fixed when I format/reinstall on Vista Ultimate in the next month or two. If anyone has any suggestions, I'm open and willing to try them.
On a completely unproductive note: Despite my love for Exchange, I hate MAPI. -
I am trying to update iTunes and keep receiving the message "The folder path "My Music" contains an invalid character.
The folder where everything is stored isnt even called My Music, it is just called Music.
I gave up on trying to update my itunes and removed it and am trying to re-download but receive the same message. Now I have no itunes on my computer at all.
Short or wiping my computer and starting again I have no ideas left.
Please help!That message isn't referring to the location of the music, it's referring to the location of the iTunes programme.
So the message is either referring to the download location or the folder it is trying to install the programme in. I think (I wouldn't put money on this) that invalid characters will be things such as * ^ % and so on. When you get the message, look for the location that your computer is trying to use. Are there any strange characters in the "file path" that your computer is using? -
SFTP sender to File receiver mapping of file names
My scenario is: sender channel = SFTP (Seeburger) transferring multiple PDF files to Receiver adapter File (NFS).
These PDF files need to have the same name as the original files from the sender (3rd party) system.
Because these files are being processed without an interface, I can't use UDF to help map the file names.
I've tried using Seeburger's localejbs/Seeburger/AttribMapper to map the names, as follows:
File (NFS) receiver channel config:
- ASMA boxes for 'Use Adapter-Specific Message Attributes' and 'File Name' are ticked
- Module localejbs/Seeburger/AttribMapper is on the first line in the module tab under processing sequence, with module key = AttributeMapper
- Under Module Configuration:
- Module Key = AttributeMapper
- Parameter Name = http://sap.com/xi/XI/System/File/FileName
- Parameter Value = @http://seeburger.com/xi/SFTP/dtSubject
(I haven't entered any attribute module config on the sender side)
This setup fails on the receiver side with the message 'Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.RetryControlException: Channel stopped by administrative task.' (not very helpful!). All I can get from that is that it doesn't like my module configuration!
Can anyone help me understand the correct way to do the file name mapping for my specific scenario?
Regards,
ChristineWe've got this working at last!
The main problem was indeed the missing .sca file from Seeburger: SeeModuleCollectionPI.sca
Our Basis team deployed this file this morning. After a bit of fiddling around with the attribute mapping, my test files were transferred successfully with their original names.
The config I ended up with is just as described in another forum post for SFTP to FTP, but I'll repeat it in more detail here:
Sender channel
Parameters tab:
Adapter Type = SFTP (Seeburger)
(sender, transport & message protocol = SFTP)
Scheduler = x in all appropriate days, with interval = 1 (minimum allowed)
(rest here is specific to your environment, but I set filename to *.pdf to get all .pdf files from the sender)
Module tab
Processing Sequence
Number Module Name Type Module Key
1 localejbs/Seeburger/AttribMapper Local Enterprise Bean AttribMapper
2 localejbs/Seeburger/solution/sftp Local Enterprise Bean solutionid
3 localejbs/CallSapAdapter Local Enterprise Bean exit
Module Configuration
Module Key Parameter Name Parameter Value
AttribMapper http://sap.com/xi/XI/System/File/FileName @http://seeburger.com/xi/common/dtSubject
Receiver Channel
Parameters tab:
Adapter type = File
(receiver, with transport protocol File System (NFS), etc)
Target tab:
Target directory (set to your required PI server directory)
File Name Schema = * (can be anything, will be ignored)
Processing tab:
(your requirements-specific settings - mine were create, write directly, file type binary)
Advanced tab:
Under Adapter-Specific Message Attributes (ASMA):
tick the following:
Use Adapter-Specific Message Attributes
Fail If Adapter-Specific Message Attributes Missing
File Name
Modules tab:
Processing Sequence
Number Module Name Type Module Key
1 CallSapAdapter Local Enterprise Bean 0
(nothing under Module Configuration)
Thanks to those who kindly took the time to try and help me, your suggestions pointed me at the real problem.
Christine -
File Receiver Adapter - time stamp in front possible ?
Hi all together,
is it possible with the file receiver adapter to add a time stamp in front of the filename?
f.ex. <timestamp>_SUFFIX.dat
With file creation mode "use timestamp" and file name scheme
SUFFIX_.dat it will create
SUFFIX_<timestamp>.dat .
Thanx a lot for your help
regards
HansHi,
This is not possible in the communication channel, but if you want to add date time stamp on the filename, you can use dynamic configuration. For that you have to write an UDF in the message mapping concatenate the date tme stamp with the filename and extension.
In the communication channel you need to check on the message attributes so that when the adapter framework is called the filename generated in the message mapping would be used by the adapter. In the communication channel remove the filename and put * in the filename, as filename is one of the mandatory parameters in the comm channel.
Regards,
Indranil
Award points if helpful -
Dynamic File name for File receiver adapter
Hello,
I am doing Proxy sender to File receiver scenario.
Filename is generated in SAP R/3 program and I want to create the file with this same name
on target location.
please suggest me how to use this file name in Receiver file adapter?.
Thanks & Regards
JageshHi,
you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
Refer this blog:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Also you need to use this udf
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Also refer this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards,
Nithiyanandam -
Xml file in dynamic file name in file receiver adapter
Hi,
I'm doing the dynamic file name in file receiver adapter. I have done as per instructed in /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
All turned out okay. I have got the file name I require. Except that the file format is XML and I need to suppress the filename node occupied by the dynamic file name.
The content conversion mentioned in /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12, does not seem to solve my problem. As it is only for file format other than the XML one, because we only do the content conversion if we want to "convert" the format of the content from XML to the other format.
Does anybody have the solution to my problem? thanks in advanceThank you Raj for the direction
The way to do it is :
1. In ID, advanced tab, put a check on the adapter-specific message attributes - file name.
2. Put a "*" on the file name scheme
3. In IR, create a UDF to set up target file name :
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// set up file name for receiver adapter
String SourceFileName = conf.get(key);
conf.put(key, TargetFileName);
return " ";
4. Map the above UDF to the header level of the target structure.
Regards,
Idi -
Error in File Receiver Channel
Dear All,
I am Getting below error in File Receiver Channel.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: User ABC cannot log in.
Regards,
ManikandanHi Manikandan,
Check the username and the password for the FTP server. If the username or the password is wrong then you would be able to post the message.
Also, there might be a timout issue, In the timeout parameter enter some value.
Ref: FTP Server connection Problem
Check and update us.
Thanks, -
Mail 2 File scenario - problems with attachments in file receiver
Hi experts,
I want to receive PDF documents via email and send them thru file adapter. Now I have some trouble with the attachments. I have configured my mailsender as follows:
localejbs/AF_Modules/PayloadSwapBean TRANSFORM
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
Modules:
TRANSFORM swap.keyName Content-Disposition
TRANSFORM swap.keyName Content-Description
TRANSFORM swap.keyValue MailAttachment-1
TRANSFORM swap.keyValue attachment;filename="MailAttachment-1.pdf"
Now what modules do I have to use in my file receiver when I want to write the PDF-attachment to my directory? I already tried a lot and referred to many blogs but nothing really worked. I only get my header information in the output file.
Any ideas?
Thanks in advance.
Best regards.
Oliver.Hi
Check this blogs
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/1685
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/2849
Regards
Ramesh
Maybe you are looking for
-
Standard Purchase Order Data Source question
Hi, I have read the documentation discussing how to create data definitions. They all say make sure that the code is the short name of the concurrent request. However I noticed when I look at the Standard Purchase Order Data Source's code it has is P
-
i have an apple id etc want to download whattsapp messenger for iphone but as Zambia have no credit cards this proving impossible . HELP
-
Hidden "Primary File" field in Content Profile
Hi all, I want create my own Content Profile not have the +"Primary File+" field. Can I do that??? Thank you so much!
-
CS4 Upgrade - still use CS3?
I currently have CS3 and I'm thinking about getting the CS4 Upgrade. I know if I buy the regular CS4 software I'll be able to use CS3 AND CS4, but I'm wondering if this is also true if I get the CS4 Upgrade. I've never upgraded before, so I'm not rea
-
How to select data from excel within certain range?
hi all, i am having an application where i am reading data from an excel sheet. in my case i am taking the date as an input from the user in range i.e starting date and end date in dd-mm-yy format( or to to from)and then i have to read the data of al