on 03-29-2006 6:54 PM
Hello Experts,
I have a flat while with date format as
9/26/2005, will it create any problem while loading this flat file data.
Bw takes the data format as yyyymmdd, if so how do i conver the mm/dd/yyyy to the bw format before loading the data from flat files.
Thank You,
John
Hi
U can go in the transfer routine, click on function, choose date functions, then select function 0DATE, give the date format u desire, and then load data.
hope this helps.
assign the points, if it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as my first question i got through it but i had one more field in my flat file while actually is a time field, but in my flat file i have a data in this format
12/30/1899 08:30:00.000 which i need to change to 8:30
I am trying to change this but it is not allowing me.
one more note is i have some of the fields as [NULL] in this field
ZBGNTIME
12/30/1899 08:30:00.000
12/30/1899 08:30:00.000
[NULL]
[NULL]
12/30/1899 08:30:00.000
sO I WANT IT TO BE DISPLAYED AS 8:30 AND THE [NULL] AS IT IS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can process this in the transfer rules. How to process it depends on the format of your flat file. Is it a fixed width file? (e.g column 1 is 35 chars long, column 2 is 10 chars long etc.) or is it a CSV (with separator)? In any case assuming the your time field is named "TIME_FIELD" in the datasource/trans. strucute tab then you can use an ABAP/routine similar to the following:
we default to "NULL"
clear result.
Delete any spaces in the left of the time field.
shift TRAN_STRUCTURE-TIME_FIELD left deleting leading space.
if not TRAN_STRUCTURE-TIME_FIELD is initial.
result = TRAN_STRUCTURE-TIME_FIELD+0(5).
endif.
Hi John,
Goto the Transfer rules -> Datasource/Trans str tab -> Details -> For your date choose the conversion option "PDATE" or the appropriate conv routine.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
John
As far as I know you need to change your CSV file in to YYYYMMDD.
Thnaks
Sat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys i found the solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.