XI3.0 File Adapter - Changing target directory at runtime
Hi all,
I have a XI3.0 running and I'm using the file adapter of SAP Basis 7.00. I'm trying to change the target directory at runtime, as I already did with the file name. The file name could be changed using the DynamicConfiguration, but this does not work for the directory. In help.sap I found the hint to use the variable substitution of the communication channel. I did not get it running, but it also does not solve my problem since I don't want to get the value for the target directory from the message header, but from a SAP IS-U system.
Can anybody help me to solve this problem?
Hi,
while using variable substitution, did u set the indicator for create Directory:
<i>If the adapter is to create the target directory, if it doesn't already exist then set the indicator Create Target Directory.
If the indicator is not set and the target directory doesn't already exist the adapter returns an error.</i>
Regards
Vijaya
Similar Messages
-
Dyanamic Configuration at receiver file adapter determine target directory
Hi Experts,
I have a requirement to determine the target directory during runtime.
From the source side one particular field determine the Target directory where you need to place file
ECC - PI - File adapter - this is the scenario
In target side 3 directories in the same server . but the directory should determine from source fields - werks
As I am new to PI Please describe the procedure in detail.
Thanks in advance.
KevinHi Kevin,
Use the below UDF and map to the rootnode in the message mapping.
public String GetFileName(Container container){
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;
In the Advanced tab of the File adapter, check the option Adapter Specific Message Attributes. Under that, check the Filename option.
This would get the fieldname in the target filename.
Check the below link:
/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/frameset.htm
/people/shabarish.vijayakumar/blog/2007/07/26/troubleshooting-the-file-adapter-last-updated-on-02-july10
Thanks, -
File Adapter : Dynamic Target Directory
Hi EveryBody,
I have an IDOC to File Scenario in which based on some field value X in IDOC i need to send the file to Different locations under the same FTP Server.
For Example : if X = 01 then Target folder T1
X = 02 then Target folder T2.
Can somebody help me out on the same.Possibly this can be done by Dynamic Configuration.Can somebody send me some links.
Regards,
ZabiullaHi,
First of all I would suggest to avoid the mail communications for the query.
Its against the SDN rules.
please read [Rules of Engagement|/thread/117188 [original link is broken];.
About Solution, you need not have to go for Dynamic Target Directory
You can use the Variable substitution concept here.
In the Target directory pass the %Var1%
and use Var1 ---> payload:<fieldName>
Refer to the last part of this link to understand this better,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
For dynamic configuration you can also refer below link
Dynamic configuration of Receiver FTP File channel
Thanks
Swarup -
XI3.0 - file adapter create directory
Hi,
Is there anyway in 3.0 to prevent a receiver file adapter from creating a directory if it does not already exist. There was a parameter in the J2SE adapter but I do not know if or how this has been implemented in 3.0.
Regards
IanIan,
SPS 17 introduces a new configuration setting for the receiver file adapter: "Create Target Directory" which does exactly what you want.
See http://help.sap.com/saphelp_nw04/helpdata/en/57/a21f407b402402e10000000a1550b0/frameset.htm
Regards,
Koen -
Unable to convert the file name in Target directory
Dear Experts,
Currently iam facing a problem with some files.my interface is a File to file .As per the interface the sender will pick the flatfiles from source directory which the file name was BNP_NE201.txt once my file reached to target directory the name of the file willrenamed as VENDOR_Payment.NE201 automatically for this they have done some OS level script in receiver communication channel of the first interface which we have added "un operating system command after message processing" in processing parameters tab.again one more sender comm channel wil pick the file from first target directory which is having naming convesion of "VENDOR_Payment.NE201 " and post it to target. all the two interfaces are file to file (NFS) . for a parctuclar day files has been posted to 1 st target directory and the receiver communication channel is not yet convert the file names bcz of that the second communication channel can't able to pick the files from target directory. for some times that is working fine and some times it is unable to convert.
from our side i check every thing .could you please suggest me the way to approch
Reagrs,
Kiran tanuku>> for a parctuclar day files has been posted to 1 st target directory and the receiver communication channel is not yet convert the file names bcz of that the second communication channel can't able to pick the files from target directory. for some times that is working fine and some times it is unable to convert.
You need to wait until the file is converted. After when it is converted then the second interface sender communication channel will pick the files.
What do u mean by unable to convert?
Is it unable to do the content conversion? if so then check the data as you said that it sometimes it works fine.
> The best approach is to change the name of the file in the receiver communciation channel instead of using a script.
Thanks, -
hi forum experts,
i have a file to file scceanrio....without BPM....
there is only one mapping ...in the receiver determination......
the problem is........
when in the receiver communication channel....in the <target directory>....i give something absurd.....e.g. '-', the file cant be put to the desired directory...
and the file is lost.............moreover nowhere in the rwb i can see what the error is.......in rwb it shows file delivered successfully........
now how can i retrive the lost messgae.....how can i resend the message from rwb or MDT............
is it possible from MDT to resend the message payload again????
pls helpDhar,
Is this is development or production? Also why you have given the target direcotry as '-' ? Is this your requirement?
Anyway you can post the same message once again from RWB. Since it is file to file scenario you can post from RWB.
Go to sxmb_moni and open your message. From the source payload right click and select view source. Then copy this payload and go to RWD ---> Adapter Engine ---> Test Message ---> Here you give your Source business system, Target business sytem and all the parameters. Also you paste the payload here. Also give your user name and password and select Quality of service BE. Then send the message. You will see a new message in sxmb_moni.
Also would recommend to give a name for target directory.
Check this weblog for some help on this:
/people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
---Satish -
File-adapter with Dynamic Directory/Filenames in Header-variables
Hi,
I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
Is it also possible to use the dynamic names using the header-variables?
I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
Thanks in advance.
Regards,
MartienHi,
I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
I planned to put the details in my blog.
Regards,
Martien -
File adapter - change of encoding in the header of the xml message
Hello!
I would like to change the encoding in the header of an xml message (sent to a a receiver file adapter)
from <?xml version="1.0" encoding="UTF-8" ?>
to <?xml version="1.0" encoding="ISO-8859-1" ?>
We have XI 3.0 with SP15.
Can anybody help me please?
Kind regards
ChrisHi Chris,
An XSLT map can convert the encoding for you.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='xml' encoding="ISO-8859-1"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Thanks,
-Russ -
Setting the File Adapter Sender Source Directory...
Good morning, Experts
We have 2 sender file adapter communication channels in XI 7.0. Source directories for each are as follows:
Channel A - //757spgmr16-xp.sauder.com/SAP
Channel B - //devqas.sauder.com/ROOTBIN
Channel A works. Channel B does not. It returns "Configured source directory '//devqas.sauder.com/ROOTBIN' does not exist". When I remote into the XI box as the administrator I can open a Windows Explorer window and can see both of these source folders.
What user ID is used to access the NFS for the communication channel???
Any help you could give would be greatly appreciated.
Thanks,
ChadIs the integration engine running in a service on the XI server??? There are a number of SAP labelled services. Some are started with the log on of "Local system", some with the administrator account and then some with an ID of "SAPServicePID".
My guess here is that possibly this SAPServicePID user is running the integration engine and does not have permissions to the source directory??? Could this be the case???
Can somebody tell me the name of the service for the integration??? -
File Adapter on shared directory
Hi,
I am trying to use file adapter on a mapped network drive, windows machine.
I am getting this error:
ORABPEL-11001
Invalid Input Directory.
The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "O:\BCRSignatures"
Ensure that the following conditions are satisfied for the input directory :
1) It exists and is a directory (not a file). and
2) It is readable (file read permissions). and
3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
4) If using a logical name, then ensure that the mapping from logical name<-physical directory is correctly specified in the deployment descriptor
The location is accesible for read and write within Windows.
The error persists even with "no delete files after processing" and "no archive processed files", options.
Any ideeas? Sugestions?
Regards,
LathaHi Latha,
Can the user your running your AS access the directory? Assuming you're on windows, by default the process manager service runs as the local system account. Try running the service as a named user with sufficient privileges on the directory.
Regards,
Pop -
ESB file adapter on shared directory
Hi
I am trying to use file adapter on a mapped network drive, windows machine.
I am getting this error:
ORABPEL-11001
Invalid Input Directory.
The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "O:\BCRSignatures"
Ensure that the following conditions are satisfied for the input directory :
1) It exists and is a directory (not a file). and
2) It is readable (file read permissions). and
3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor
The location is accesible for read and write within Windows.
The error persists even with "no delete files after processing" and "no archive processed files", options.
Any ideeas? Sugestions?
Metalink is poor on this.
Thank you,
LiviuHI BPEL Gurus,
Everytime i m facing ORABPEL-11001 Errors . I dont know why its coming.can u someone give suggestion to this regards. i attach the logs as follows
<2007-11-23 09:53:29,825> <INFO> <dev.collaxa.cube.activation> <File Adapter::Inbound> Recovery still not possible after 151110 attempts due to ORABPEL-11001
Invalid Input Directory.
The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "D:\igefi\bpelinterfaces\mfond\dev\Wrk_Imp_Swap_Price\WORKDIRS\input".
Ensure that the following conditions are satisfied for the input directory :
1) It exists and is a directory (not a file). and
2) It is readable (file read permissions). and
3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor.
the above message i m getting in domain.log and opmn.log
Regards
Hameed -
BPM Scenario how to wait til file deleted in Target Directory
Hi Frnds,
I am working on one JMS to File scenario,my requirement is i am sending JMS message to File Directory,when i placed meg in target directory some vent wil read the message it wil process in to SAP.
When i receive once again mesage in JMS scenario will start execute , is previous message still in File Directory i have to wait to event occured,after procesing only i have to place next message.
How many different ways i can achieve this.
many thanks,
RAJHi,
you can create a java proxy in your BPM that would check the file and if so wait for some time
and check once more
Regards,
Michal Krawczyk -
Changing target directory of sound effects, DVD templates etc.
My Adobe Premiere 13 works fine but I want to change the target directory of sound effects, DVD templates etc. Default setting is C:\ .... In Adobe Organizer such option is not offered. How can I change this target directory?
newbie Sue
Premiere Elements 13/13.1 have content download located in the Online Folder...
Please see
Local Disc C
Program Data
Adobe
Premiere Elements
13.0
Online
and in the Online Folder are the DVD Templates and Sound Effects Folders.
I have found that once deleted the Online Folder will regenerate in the same place from which it was deleted.
So, try it if you must, but I would discourage you from doing so.
Please explain what the Elements Organizer has to do with all this. Are you trying to get Sound Effects and Movie Menus into the
Elements Organizer Create Slideshow feature? Cannot do.
Please give more details and I will think about this some more. My first impression that you are targeting cannot do goals.
Thanks.
ATR
Add On..after the above was posted, I found some grammatical points that I corrected. -
Navigating Mac "Bios"/ Change Target directory to boot from
i have tried going into the "bios" (for macs i am not to sure what it is called form macs) and attempted to change the Target Directory but i am unable to navigate around it how do i? is it because i use a standads USB keyoard and mouse rather than a mac one?
ThanksIt's done from the system preferences/Startup Disk pane.
If you want to change it at boot, just hold down the option key and choose your boot disk.
You don't set this in "BIOS" (EFI). -
Receiver file adapter NFS - Access directory of other server
HI,
I need access from an file adapter type NFS to a shared folder on the SAP ECC server. This is possible?. Users who are connecting to assign permissions on the folder. The 2 servers are on the network and the server is not enabled SAP ECC FTP. All run on Windows 2003 server environments and the SAP PI Server is 7.1 EHP 1.
Regards,
JohnnyTo access a Unix NFS from Windows you can install "Microsoft Services for Unix". Those are free of charge provided by Microsoft.
See
http://technet.microsoft.com/en-us/library/bb496506.aspx
Markus
Maybe you are looking for
-
Program for table control in bdc
Hi All, Can Anybody provide me program on table control that used in BDC. Please provide me program also. thanks rahul.
-
Hi, Does anyone have any documentation/help on the various registry keys for EASYDMS? Please send it to me on the following email id: [email protected] Thanks & Regards Abhishek
-
Hey Client proxy based on objects in PI -> The communication between the implementing ABAP code in SAP ERP and PI when calling the proxy, can this be HTTPS or is it default/always HTTP? Thanks! regards Ole
-
View display preference for search or spotlight window
Is there a setting that will allow a search window to display column view? Is there a setting that will keep the view that is chosen or last used?
-
Good Color Profiles for LED 24"?
Does anyone have any good color profiles for the 24" LED? I tried using one I really like on my MBP, but it looks completely different on the 24" LED. I don't really like the standard Cinema color profile - kinda light and washed out. Anyone?