Dynamic File Name depending on the Source File name
Hi Experts,
I have a problem like Dynamic File name depending on the Source File Name. I will explain with example as follwos
Source File name Targer Folder/Filename
NK01.VR59.L2007030 VR59/Rec.l200
NK01.VR71.L2017030 VR71/Rec.l201
NK01.VR77.L2027030 VR77/Rec.l202
See above the exaple, Depending on the Source file name, I am deciding where i need to place my file and what name i need to name it.
So please suggest me the solution and How can i do this with a single communication channel ? Do i need to create multiple CC for each folder??
Points will be rewarded for Valuable anwer.
Thanks in Advance,
Best Regads,
Vijay
Hi VIjay,
Thanks for quick reply. But i am getting error in End to End Scenarios only. If i remove the Return " " statement from the UDF, while activating it is showing the error saying like missing return statement. I also mapped to the top most node to this UDF.
I am getting the following error in End to End error Scenarios:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Similar Messages
-
Sender File adapter not deleting the source file after reading
Hi everyone,
In the sender Communication channel i have choosen the "Delete" option after reading the source file. But it is reading the file, but it is not deleting the file. I have checked the file status. it is with full persmission.
can anyone give solution to this.
Thanx
BalaHi,
1. set the mode to delete
2. make sure the file is "deletable"
3. check xiserver:port/MessagingSystem/monitor log to see what happens with the file
(chec both audit and log in that link)
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> -
When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that can so do by changing the file name, but I would like to know if there is a way to set the default so that the source file name is used.
I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
Maybe one of the settings in about:config controls that?
pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere? -
Getting the Source File name Info into Target Message
Hi all,
I want to get the Source file name Info into Target message of one of the fields.
i followed Michal BLOG /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Requirement :
1) I am able to get the Target file name as same as the source file name when i check the ASMA in Sender & Receiver Adapter , with out any UDF...............this thing is OK
2) I took One field extra in the target structure Like "FileName" & I mapped it Like
Constant(" " )--UDF-----FileName
I Checked the Option ASMA in Both Sender & Receiver Adapters
Here iam getting the Target File name as same as Source file name + Source File name Info in the Target Field " FileName".
I Dont want to get the Target File name as same as Source file name. I want like Out.xml as Target file name.
If i de-select the Option ASMA in Adapters means it is showing " null" value in the target field "FileName".
Please Provide the Solution for this
Regards
BopannaHi All,
Iam able to do this by checking the Option ASMA in only sender adapter itself
Regards
Bopanna -
UDF to capture the source file name or the source folder for mapping
Hi All,
i have 2 files - File1 from File2 from 2 different folders- single comm channel FTP (FCC). i have to pass a constant A and B respectively to a field in target structure.
my options are -
either create a new field in source str populating different constants and then map to the target str
or a udf to get the source file name or the source folder so that i can map the constant using the value mapping/FixValue mapping.
please suggest. thanks.
rajibHi,
please use the UDF to determine the file name. Then based on file name either pass A or B to your target field.
The code is as given below. Just tweak the code to pass either A or B as per your requirement.
public String G_GetFileName(Container container) throws StreamTransformationException{
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;
Regards,
Deepak. -
Accessing comapny code from the source file name
Hi,
Iam doing FILE FILE to scenario.
My source file name is XXXX237061606.txt. (XXXX is company code)
My requirement is
Based on company code from the source file name; I need to send the file to the corresponding receiver.
How to retrieve the company code from the source file name?
Thanks,
Hem.hem chand wrote:>
> Hi Varun,
>
> Could u please provide me detailed procedure to get the company code.
>
> Reg,
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);
This will get you the File name...TRuncate it to extract company code...
Then have a mapping program with the receivers message type which is persent under SAP BASIS component....
There map to the required receiver by getting the file name above..
Create an int mapping for the above mapping and use that in ur enhanced recv determination -
How do I map the source file name to a target table?
I am mapping a source fixed length flat file to oracle target tables. One of the tables is a parent transaction table that stores the date, record number, status, etc. and the file name of the source flat file. The file name will change daily because the date is part of the naming convention. Is there an easy way to determine the source file name and map it?
One option a co-worker is working on is writing a pre-mapping stored procedure. It would insert the file name into a table prior to the mapping. But I was hoping for a cleaner solution.
Thanks!Hi
Use extarnel table to load the data from the file into the table.
Create a procedure which changes the external table definition as the filename chnages.
Use this proceudre in the mapping as a premapping process.
Ott Karesz
http://www.trendo-kft.hu -
Same file name in target as source file
Hi,
I am doing a file to file scenario in which there is no mapping involved, it is a bypass scenario.
I want my target file name to be exactly same as the source file name.
Source file name dynamically changes based on date and time.
I have tried creating the target file using the Add timestamp characteristic. But it is not in the same format as the source file.
How can I achieve this???
Since there is no mapping invlolved, I can't use dynamic configuration or variable substitution.
Please advice.
Regards,
SachiHi Sachi,
-->Are you bypassing the mapping rite....?
-->Then in your ID under Interface determanation what interface mapping did you maintained....?
-->I think you are by passing the IR.
-->I think this can be achived by using the ASMA but it requires the Mapping Program.
-->Even the above blog explains about getting the same file name using the ASMA and UDF.
Thanks -
I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read". I am able to open pdf files in IE and other programs.
I am encountering the same problem -- though with .qfx files from my bank. This worked fine in Firefox 31 ESR, but since upgrading to Firefox 33.0, I get the "<name>.qfx.part could not be saved, because the source file could not be read" when I attempt to download. (I should add that downloading PDF statements from the same site works fine, and that the qfx downloads work fine in IE and Chrome.)
I tried safe mode, it is still broken. Tried v34 beta, no luck. I reverted to version 31, it works again.
I guess I will stick with the older version until a solution is found...or just use an alternate browser to download my financial data. -
Logon Error:Could not retrieve the source file for Port "Main"
Hi All,
We have a port which is blocked due to structural exceptions.When i try to connect to the Exceptions folder
"Main[Exceptions]" the import manager throws an error "Logon Error:Could not retrieve the source file for port "Main".
Any help greatly appreciatedHi ,
Thanks for your reply.
This is what I see in the log file in the exceptions folder
These are the line I see almost to the end of the log file before they complete field mappings,value addings
<Failure ts="2008/07/22 00:10:48.326 GMT" tid="1286" entry-no="9114" operation="Create lookups" rc="0x80000001">Illegal value for parameter</Failure>
<Timer ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9115" name="Import Lookup" total="0.040819">1</Timer>
<Trace ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9116">Import of Lookup Failed.</Trace>
But when I open the same source xml file after downloading to my local folder from Exceptions Structural folder and load manually using IM i get the status as "Ready to import".
Any Help greatly appreciated -
Creating multiple records from 1 record in the source file for Import DM
Hi Experts,
Today I am working on an interface/import where I want to get the following result:
Source file contains a records like:
Account, Entity, DriverX
Sales,EntityA,ZZ
The BPC appset contains the 2 dimensions Account and Entity next to CostCenter dimension. The DriverX field in the source file is just additional information in the source file. However based on this DriverX we need to determine what CostCenter to choose but we also need to have the same record assigned to a second record in BPC.
Following my example, based on DriverX value I need to create 2 records:
Account, Entity, CostCenter,
Sales,EntityA,CC1
Sales,EntityA,CC2
I don't have a problem assigning the record to 1 CostCenter based on DriverX value but I have a problem creating my second record. Does any of you have had the same "challenge" and if so would you like to share the solution for this?
Best regards,
Johan
PS: I am working on SAP BPC, version 7.0 Microsoft version.Hi Greg,
Many thanks for your answer. And yes this would be a solution. However I just simplified my case as the decision to create an second record and where to post is depending on more than 1 field in the source.
But I will keep it in mind, because I also can opt for a solution to store data differently in BPC fac-tabels which will help me to use script logic.
If it is not possible to create multiple records from a single records in the standard functionality in the Transformation and/or Conversion file, I have to create a custom DTSX or change my way of storing data.
Anyone else who is having an alternative idea like Greg came up with?
Please let it know!
Best regards,
Johan -
Norton 360 popped up a "file insight" message related to a file that was downloaded to my PC. The source file was Firefox.exe, and the name of the file is RadioWMPCoreGecko19.dll
Some sites are reporting this file as malicious, but it seems to me that it is a plugin extension for firefox? Can you explain this file to me?See also [[/questions/878063]]
-
In trying to download an update I first received: "There were problems checking for, downloading, or installing this update. Firefox could not be updated because: No data was received (please try again)" It also gave a link to download manually. When I tried from the Firefox website I got: /Users/(deleted for privacy)/Desktop/Firefox 3.6.3(2).dmg.part could not be saved, because the source file could not be read.
Try again later, or contact the server administrator. I tried this 3 times.
== This happened ==
Not sure how often
== Mon around 11 am, central time, May 17, 2010I have tried downloading the file several times and get the same message: "No data received." I have no other system problems, I navigate well to other sites, but I'm unable to download this upgrade. Any suggestions?
-
I work for Office Depot, in the tech department. Basically, one of our associates was supposed to do a data backup, and re-install Windows 7, then transfer the files back. He used Windows Easy Transfer and compacted everything into a 163 GB file.
Now comes the hard part. When we try to put it back on his computer ((drag-and-drop to the desktop) which has been wiped back to factory settings using the recovery partition), it stops at 79.5 GB remaining (you know how it doesn't give you a % of completion,
it just shows how many GB are remaining) and then says "Can't read from the source file or disk" and gives you an option to try again, or cancel. It gets hung up on the same point each time.
Normally, this wouldn't be a huge issue, but the contents on the drive are his wife's architect blueprints and interior design stuff, along with wedding photos, etc, which are the only copies they have. On top of those, they have court documents and other
important files that we are unable to access now.
I wasn't involved with this transfer, so I'm trying to clean up the mess as best I can. I remembered that the customer's wife was Russian, and had some files typed with a Russian keyboard, so on and so forth. I wonder if that's the issue? If not, I really
have no idea how to manually extract things from a ".mig" file, or how to diagnose what area is potentially corrupted.
In light of this situation, we tried using "Recuva" to recover the files post-wipe, but everything was corrupted or unable to be opened, and it also extracted and recovered all of the "useless" photos, such as the skype logos, up and
down arrows for browsers, etc (it was 160,000+ photos).
Trying to avoid a potential lawsuit, unhappy customer, and costing the company lots of money to see if professionals can get into this external hard drive.
Other relevant information:
We used a Toshiba 500 GB (465 GB) external hard drive.
Customer's computer is an HP Pavilion P6000 Series (Model No. p6520y) running Windows 7 Home Premium 64-bit Service Pack 1.
Any other information that is needed can be provided, thanks in advance, and hopefully we can find a solution to this issue quickly!
-JohnI think there's a lack of understanding somewhere.
"If you even can't start the process, please unplug it from your new PC. Then head back to your new computer and plug
the external drive back in to your new computer. "
Unplug from new, head back to new, plug it back in? That doesn't make much sense! Haha.
I knew what you meant though, somewhat. When I search through the drives after clicking yes (Has windows easy transfer
already saved your files blah blah blah) I click on the transfer file and it says "Windows Easy Transfer could not open the file".
Rather than drag-and-drop the file to the desktop, I now tried to double-click on the file itself while it was plugged
into the computer. It opened, and it started transferring until it was about 70% completed, and then an error popped up saying "WET can't open the easy transfer file, make sure your USB device is plugged in or check your internet connection".
I checked, and the USB hard drive's light wasn't on. Now, I unplug it and plug it back in, and the light comes back on,
so I click Retry, and it resets the bar back to nothing and says "Transfer time: 1 minute".
Rather than continue trying, I clicked "Cancel" instead of Retry, and it says "Your transfer did not complete successfully."
It says to click "view report" for more information, but there's no "view report button".
At the moment, I am scanning the External Drive for bad sectors using the check disk tool in properties. It's frozen
at "0 USN bytes processed". -
How do I save PDF files by default to the folder of the source file?
How do I save PDF files by default to the folder of the source file with Acrobat 9.0.0 Standard?
I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
Maybe one of the settings in about:config controls that?
pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?
Maybe you are looking for
-
I know accounts cannot be merged. The @gmail account has existed for years before the @me account. I haven't been able to set up my phone yet because I have absolutely no idea how this will affect me, when it was quite clear before. How will this aff
-
HT5622 How do I have two apple ID's or two itune accounts on one computer?
My wife and I want to keep our iTunes separate so we have our own pics and music on our own phones. How do we sync them without combining them?
-
Special charactors found in out put file of .xml file in file adapter
Hi , Dear all, I am working on Sender File adapter picking files from the multiple Directories which are specified in a single CC and these files are placed in the different receiver directories in different CC's metained paths of the receivers The S
-
How to select from multiple output tables in the SAP Data Source
Hi, We're using the SAP Data Source to display SAP data in our portal from the Bapi: BAPI_INFORECORD_GETLIST. When defining the Bapi Meta Data we can select data from one of the two output tables (INFORECORD_GENERAL and INFORECORD_PURCHORG). But we w
-
Gmail totally sync with mail.
is it possible to have mail set up such that it replicates your Gmail Account. What I mean here is I would like my Gmail in Mail to include all my labels(which I currently have in Gmail). I guess what I am asking is it possible to have Mail totally s