on 11-24-2009 6:36 AM
Hi Experts,
1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
Regards
.........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Following links may help you for creation of dynamic configuration
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=95093307
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme
parameter.
The tiemstamp option that you are using will not give you the filename in the above format Date_Time.....if you are using this option then you cannot either change the format.
What you can do is apply Dynamic Configuration in your scenario....in the UDF get the current time....create the filenam in the format you want by concatinating the required variables and constants...and create the file.....at least the normal naming scheme wont help you.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
The addtime stamp will add timestamp as the last part of the filename before the extension.
2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
Search SDN for dynamic file naming.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
File with timestamp means FileName+Timestamp, so if you have given filename as XYZ.csv then the output file name will be XYZ<timestamp>
>>i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
Give Filename as TimeSheet_Country_Date_time.csv in file adapter
Regards
Suraj
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 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.