File Conversion/Source File Question
After converting a song, would it cause any harm to iTunes or my iPod if I were to delete the source file?
Thanks in advance.
As long as you keep the convereted file in itunes there should be no problem deleting the source file.
Similar Messages
-
File Conversion to File Conversion Scenario..
Hi,
I am doing a File Conversion to File Conversion scenario. Hope its clear..
Well in this scenario my structure is
<File2File_Conversion_Sender_MT>
<Employee>
<id>aa</id>
</name>sas</name>
<Employee>
<File2File_Conversion_Sender_MT>
In sender:-
Wat will be the document name?
Recordset name?
Recordset structure?
In receiver:-
Recordset structure?
Let me know if any more clarification is needed.
thanks
AnjuHi Anju,
Use this :
Document Name : File2File_Conversion_Sender_MT (this is Outbound Message Type)
Document Namespace : NAmespace of outbount Message Type.
Recordset Structure : Employee,*
Name----
Value
Employee.fieldSeparator -
> ,
Employee.endSeparator -
> 'nl'
Employee.fieldNames -
> id,name
ignoreRecordsetName -
> true
Go through this :
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
Thanks,
Maheshwari.
Message was edited by:
Maheshwari Morbale -
Could somebody help me to answer my question .
The question is an empty file a valid source code file?
Thanks for the help...
Elvira48Yes.
CompilationUnit =
PackageStatement? ImportStatement* TypeDeclaration*
;All parts optional.
Pete -
XML to flat file conversion using file content conversion in reciever CC
Hi,
Iam working on Idoc to File scenario.
Iam having a problem in the communication channel of reciever.
Iam using File content conversion in Reciever Adapter.
My xml format is asfollows:--
- <Header>
<FILLER1>KTP</FILLER1>
<YEAR_IDOC>YEAR 2006</YEAR_IDOC>
<FILLER2>FIRSTWEEKNUMBER</FILLER2>
<WEEK_IDOC>51</WEEK_IDOC>
<FILLER3>NUMBER WEEKS 26</FILLER3>
<PLANT_CODE>FACTORYM019</PLANT_CODE>
</Header>
- <Record>
<First_material>731000</First_material>
<First_quantity>0000.0</First_quantity>
<First_quantity>0001.9</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0020.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0018.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<Second_material />
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0011.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0049.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0067.0</Second_quantity>
<Third_material />
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>0008.0</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
</Record>
The file format should be as follows:--
KTP YEAR 2006 FIRSTWEEKNUMBER 51 NUMBER WEEKS 26 FACTORYM019
731000 0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
0000.0 0000.0 0000.0 0008.0 0000.0 0000.0
Could some one help me in resolving this issue.
Regards
PraveenHi Praven,
couldn't you simply modify your target DATA type so it will be easier to handle?
For example something like:
<Header>
</Header>
<Record>
<Material>
<Number>..</Number>
<quantity>..</quantity>
<quantity>..</quantity>
</Material>
In this way file content conversion will be easier (easy)!
Regards,
Sergio -
Additional files with source file
Hi Experts,
I have a source xml file, one tage has a link from where the additional file has to be downloaded and transferred to the target folder.
Such as the one shown below...
<name>file1</name>
<link>http://xyz</link>
Can u help me on how I can acheive this requirement??Hi Teja,
This is not possible by using the standard adapters. for this you have to write the separate java module.
FYI
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
/people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
Regards
Ramesh -
Not able to do settings for Resource Files and Source Files (Indesign CS4 )
Hi,
I am new to Indesign Plugin Development .
I want to build the sample sdk examples from Indesign SDK(CS4) for windows .
Also I am not able to build project developed using Dollyxs. Its
giving error as PRJ0003 : Error spawning 'cmd.exe' while I am building it.
I have no idea abt settings for Project->Property for Resource and all
other files.
Can anybody tell what are the settings to be made at Project ->Property
dialog for all files.
Thanks and Regards,
Ravi SharmaI have the same problem - any update on this?
Tom -
Class file to java file conversion
is it possible to convert .class file into .java file & if yes
then how to convert .class file into .java file.
plz. mail me ans. on [email protected] | [email protected]Yes there are many Java Decompilers which converts the Java bytecode class files to Source files, You may find the follwing URLs helpful:
http://www.brouhaha.com/~eric/computers/mocha.html
http://members.fortunecity.com/neshkov/dj.html -
Hi Scripting Guy. I am a Server Administrator who is very familiar with Active Directory, but new to PowerShell. Like many SysAdmins, I often need to create multiple accounts (ranging from 3-200) and add them multiple groups (ranging
from 1 - 100). Previously I used VBS scripts in conjunction with an Excel .XLS file (not CSV file). Since VBS is essentially out the door and PowerShell is in - I am having to re-create everthing.
I have written a PowerShell script that bulk creates my users and adds them to their corresponding groups - however, this can only use a CSV file (NOT an XLS file). I understand that "CSV is much easier to use than Excel worksheets", but
most times I have three sets of nearly identical groups (for Dev, QA and Prod). Performing Search and Replace on the Excel template across all four Worksheets ensures the names used are consistent throughout the three environments.
I know each Excel Worksheet can be exported as a separate CSV file and then use the PowerShell scripts as is, but since I am not the only SysAdmin who will be using these it leads to "unnecessary time lost", not to mention the reality that even
though you clearly state "These tabs need to be exported using this naming standard" (to work with the PowerShell scripts) that is not the result.
I've been tasked to find a way to modify my existing PowerShell/CSV scripts to work with Excel spreadsheets/workbooks instead - with no success. I have run across many articles/forums/scirpts that let you update Excel or export AD data into an Excel
spreadsheet (even specifying the worksheet, column and row) - but nothing for what I am trying to do.
I can't imagine that I am the ONLY person who is in this situation/has this need. So, I am hoping you can help. How do I modify my existing scripts to reference "use this Excel spreadsheet, and this specific worksheet in the spreadsheet
prior to performing the New-ADUser/Add-ADGroupMember commands".
For reference, I am including Worksheet/Column names of my Excel Spreadsheet Template as well as the first part of my PowerShell script. M-A-N-Y T-H-A-N-K-S in advance.
Worksheet: Accounts
Columns: samAccountName, CN_DisplayName_Name, sn_LastName, givenName_FirstName, Password, Description, TargetOU
Worksheets: DevGroups / QAGroups / ProdGroups
Columns: GroupName, Members, MemberOf, Description, TargetOU
# Load PowerShell Active Directory module
Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
Import-Module ActiveDirectory
Write-Host " "
# Set parameter for location of CSV file (so source file only needs to be listed once).
$path = ".\CreateNewUsers-CSV.csv"
# Import CSV file as data source for remaining script.
$csv = Import-Csv -path $path | ForEach-Object {
# Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
$userPrincinpal = $_."samAccountName" + "@saccounty.net"
# Create and configure new AD User Account based on information from the CSV source file.
Write-Host " "
Write-Host " "
Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
New-ADUser -Name $_."cn_DisplayName_Name" `
-Path $_."TargetOU" `
-DisplayName $_."cn_DisplayName_Name" `
-GivenName $_."givenName_FirstName" `
-SurName $_."sn_LastName" `
-SamAccountName $_."samAccountName" `
-UserPrincipalName $userPrincinpal `Here is the same script as a function:
Function Get-ExcelSheet{
Param(
$fileName = 'C:\scripts\test.xls',
$sheetName = 'csv2'
$conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
$cmd=$conn.CreateCommand()
$cmd.CommandText="Select * from [$sheetName$]"
$conn.open()
$cmd.ExecuteReader()
It is called like this:
Get-ExcelSheet -filename c:\temp\myfilename.xslx -sheetName mysheet
Do NOT change anything in the function and post the exact error. If you don't have Office installed correctly or are running 64 bits with a 32 bit session you will have to adjust your system.
¯\_(ツ)_/¯
HI JRV,
My apologies for not responding sooner - I was pulled off onto another project this week. I have included and called your Get-ExcelSheet function as best as I could...
# Load PowerShell Active Directory module
Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
Import-Module ActiveDirectory
Write-Host " "
# JRV This Function Loads the Excel Reader
Function Get-ExcelSheet{
Param(
$fileName = 'C:\scripts\test.xls',
$sheetName = 'csv2'
$conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
$cmd=$conn.CreateCommand()
$cmd.CommandText="Select * from [$sheetName$]"
$conn.open()
$cmd.ExecuteReader()
# Set parameter for location of CSV file (so source file only needs to be listed once) as well as Worksheet Names.
$sourceFile = ".\NewDocClass-XLS-Test.xlsx"
# Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
$userPrincinpal = $_."samAccountName" + "@saccounty.net"
# Combine GivenName & SurName for DisplayName
$displayName = $_."sn_LastName" + ". " + $_."givenName_FirstName"
# JRV Call the Get-ExcelSheet function, providing FileName and SheetName values
# Pipe the data from source for remaining script.
Get-ExcelSheet -filename "E:\AD_Bulk_Update\NewDocClass-XLS-Test.xlsx" -sheetName "Create DocClass Accts" | ForEach-Object {
# Create and configure new AD User Account based on information from the CSV source file.
Write-Host " "
Write-Host " "
Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
New-ADUser -Name ($_."sn_LastName" + ". " + $_."givenName_FirstName") `
-SamAccountName $_."samAccountName" `
-UserPrincipalName $userPrincinpal `
-Path $_."TargetOU" `
Below is the errors I get:
Exception calling "Open" with "0" argument(s): "The 'Microsoft.Jet.OLEDB.4.0'
provider is not registered on the local machine."
At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:39 char:6
+ $conn.open()
+ ~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
Exception calling "ExecuteReader" with "0" argument(s): "ExecuteReader
requires an open and available Connection. The connection's current state is
closed."
At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:40 char:6
+ $cmd.ExecuteReader()
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException -
How to specify inclusion and exclusion rules for File data sources
This is the seed URL for a file data source: file://localhost/c:/myDir/
I want to exclude indexing and searching of files under: file://localhost/c:/myDir/obsolete/
What is the exact format for the exclusion URL?
I have tried both file://localhost/c:/myDir/obsolete/ and /myDir/obsolete/
but neither of it seems to work; it still indexes everything under /myDir/
Should I just put: /obsolete/ as the exclusion URL?
Also after initial crawling, if I change the inclusion and or exclusion rules and then run the crawler again, it should update the indexes accordingly. Is that right?
The version of UltraSearch I am using is 1.0.3.
Thanks for any help on this.Try "/c:/myDir/obsolete/"
Changing inclusion/exclusion rule does not affect files already crawled. It onyl
affects next crawling behavior.
To do any DML to existing data set, use SQL directly on wk$url table under the instance owner. -
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 -
Hi,
I have some jars in my package. I can see all the jar files in the IDE under my package name.
However, when I try to open any of the classes in any jar - it gives me an error saying "Source File for {package name}.{ClassName} not found".
This was working yesterday.
Any suggestions where I may be going wrong? Thanks!whether your jar file contains source file or not.
better unzip the zar using winzip to check this -
Hello Guys,
I need to get a message from RFC, map it in a way that I wouldn't need to do any file conversions in file adapter and send it to FTP. How could I set the file name in this case?
PS: the file name cannot be included in payload, while I don't want to do any conversations of that payload...
Many thanks for your answers,
MilanHi Milan,
Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
Pls. do the following.
1. in the mapping program that you are using populate the filename coming from the source into the target in any of the fileds.
2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
Create an simple user defined function in the mapping and use the following code.
Imports: com.sap.aii.mapping.api.*;
Parameter: String filename
Paramter: String filename;
filename = fileName + ".DAT";
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
conf.put(key, filename);
return filename;
You donot need to hard code the value of the filename in the file adapter for your interface.
In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
Thanks
Indranil -
How to get the FILE COUNT from File directory
Hello,
i have to develop a scenario like, get the file count from source file directory and validate whether the file count is 5 or not. if 5 files exist i need to process those 5 files to DB tables. if file count is not equal to 5 then i need to send a mail to customer that files are missed at source directory. (subject as files were missed at source directory and in content i need to display the file names exist at source file directory. So that missed file will be generated by the customer based on this mail).
Could you please let me know how to get the count of files from source file directory. if it is possible only with UDF please provide the Java code
Best Regards,
SARANDo these files have some fixed names?
Can you try to use the option Advanced Selection For Source File to make XI pick all 5 files in one shot?
Check this blog on the same -
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
If this is not a option - BPM sounds the only possible way.
Regards,
Bhavesh -
Problem copying a File to another File
My routine to take one File's content and overwrite another File doesn't seem to work with xml. Could anyone explain this behavior?
* replaces one file's content with another
* @param sourceFile
* @param file_to_overwrite
* @throws java.io.FileNotFoundException
* @throws java.io.IOException
public static void overwriteFile(File sourceFile, File file_to_overwrite) throws FileNotFoundException, IOException {
BufferedReader br = new BufferedReader(new FileReader(sourceFile));
BufferedWriter bw = new BufferedWriter(new FileWriter(file_to_overwrite));
// overwrite destination file w/ source file
String currentLine = new String();
while ((currentLine = br.readLine()) != null) {
bw.write(currentLine);
br.close();
bw.close();
}when the overwritten file is opened in firefox I get this error
XML Parsing Error: no element foundwhen I open up the two documents in notepad to visually inspect, I see some square shaped characters in the original,
but not in the overwritten file.
opening the documents in wordpad shows the overwritten file to be all on one line whereas the original shows the nested form of the xml document.
Any thoughts or insight?thank you both for your replies
FileInputStream fis = new FileInputStream(sourceFile);
FileOutputStream fos = new FileOutputStream(file_to_overwrite);
int ch;
while ((ch = fis.read()) != -1) {
fos.write(ch);
fis.close();
fos.close();this seems to be working perfectly except it cuts off the final tag, <\log>
if i invoke another fos.write after the loop it inputs the value of -1 which is a "y"
what's happening at the end of the loop here?
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
<message>
<\message>
</record>
<\log> <------- goes missing on overwritten file -
Confused about Source/Project File Conversion Sizes
Which means.... I drop a 34MB .mov file into iDVD and it shows up in the Project Info window as 430 MB. Is this the way it has to work?
Second (related) question: I now have 26 minutes of files loaded into the iDVD project (showing 1.47 GB in iDVD). I want to add a 1.5 hour movie. Can this be done? The total size of the SOURCE files is far under 4.7 GB capacity of the DVD....saxyjazzman wrote:
Which means.... I drop a 34MB .mov file into iDVD and it shows up in the Project Info window as 430 MB. Is this the way it has to work?
When you add a movie file to iDVD it has to encode that movie file into a form that a standard set top DVD player will be able to interpret. A change in file size can occur. You can reduce the encoded file size by changing the encoder settings http://docs.info.apple.com/article.html?path=iDVD/7.0/en/11417.html. Professional Quality may produce a smaller size. The amount of file size change is going to vary by what type of video file is. There is no good way that I am aware of to exactly project what size a file will be upon import to iDVD. There are just too many variables (file type, codec, source camera, etc.)
saxyjazzman wrote:
Second (related) question: I now have 26 minutes of files loaded into the iDVD project (showing 1.47 GB in iDVD). I want to add a 1.5 hour movie. Can this be done? The total size of the SOURCE files is far under 4.7 GB capacity of the DVD....
Given the amount of expansion you've indicated I would say it is not going to fit. But if you add it you can check to see in Project Info like you indicated. You could try reducing the size of the 1.5 hour movie file. Put it into iMovie and then export it out as a smaller file size. This smaller file with then take up less room when it gets added to iDVD (keep in mind that exporting out as a smaller file size from iMovie will also reduce overall image quality).
Hope that helps.
Maybe you are looking for
-
Can I install only Windows on my Macbook Pro 2009?
Hello All, For reasons far outwith my control. i.e. I am in the middle of borneo, needing desperatly to get on a full windows machine... I need answers to the following? I have full gen versions of Windows 7 and MS Office 2010. I want to run these on
-
I am getting an error when trying to run this script, "missing expression" I want to display vi.ram_asset_class_id is null Where am I going wrong in the script below. select v.bank_client_id, v.cust_id,v.cust_name, v.system_id,v.common_
-
Performance of my query based on cube ? and ods?
hi all, how to identify the performance of my query based on a cube nor ods. I have requirement which enables to do flat file extraction and the extraction is only once and the records are less too. I need to sort whether my query will be faster base
-
New printing problem with InDesign CS4
After having great success with Aisolve's earlier fix on printing from InDesign CS4 after upgrading to Lion, I'm having a new problems after installing the OS X 10.7.2 upgrade last week. When I try to print from InDesign CS4 and Illustrator CS4 to m
-
Google UK Search- Bizarre Behaviour - Help!
Up until yesterday I have been using Firefox 2.0.0.14 with Googlebar Toolbar installed on my Mac Pro running 10.4.11. When I have done a web search on a key word in the past I normally get a page of results and at the top of the page there is a butto