on 03-03-2015 10:50 AM
Hi,
I am extracting a date from a flat file and then passing it to an InfoObject with DATS type. I thought DATS has only 8 characters but when i look at target once data is loaded it seems to have 10 characters? Details of what happens to the data is below.
Source: 01/04/2013
PSA: 01/04/2013
Target: 20.4/.01/0
I am looking to use a formula to adjust the data in the transformation - but should i include the "." (dot) or not?
Cheers,
Hi Leo,
The date will be stored as YYYYMMDD in database level, but while displaying it shows as DD.MM.YYYY. So you need give in your excell sheet in YYYYMMDD format.
Thanks,
Vengal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leo,
DATE is configured as DATS with 8 characters (format is YYYYMMDD)..Perhaps you used any CONVERSION ROUTINE in your TRANSFORMATION or DATASOURCE..
Please check the field connected to DATE that you are uploading in DATASOURCE..Is it EXTERNAL or INTERNAL?
You don't need any formula to do this..If the field getting the date in datasource is INTERNAL, your upload file should be in YYYYMMDD format..But if it is EXTERNAL, you will get your desired output..
Regards,
Loed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i am understand correct if you are loading flat file
do one thing
open the excel file -> go to the date column -> right click -> select format cells -> go to the custom -> maintain the YYYYMMDD - save it.
after check the data format
after load the data to BW system then you won't get any error.
-Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can change date format in su03
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for all your responses:
Vengal - The date will be stored as YYYYMMDD in database level, but while displaying it shows as DD.MM.YYYY. So you need give in your excell sheet in YYYYMMDD format.
that is correct and i have resolved the issue.
For some reason this post is not coming up as a question...so cannot assign points. sorry! Not sure what happened - have liked your posts instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Moderators,
Could you please help Leo to mark this thread as 'answered' as Leo could not get the option to do so.
Thanks,
Vengal.
Hi - Pravender Kumar, if you could change this to a question for me that would be great.
Hi,
Dats have char8
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leo,
When ever we create an InfoObject of type as DATS, by default it will take lenght as 8 and the output lenght as 10. We need not to do anything more on this in transformation level as well. As you said "." is not required. You can try create an InfoObject by using reference of 0DATE/0CALDAY (if you do not want to any customization on your InfoObject). Alternatively, check the date format in source file. Hope, it may help you.
Best Regards
Venkat...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
use the 0CALDAY info object for the date field.
SAP system will take input - YYYYMMDD
but after loading the data will give out put - DD.MM.YYYY.
ex- 20150302 - input
02.03.2015 - output.
use the info object - 0CALDAY - data type DATS, lenght - 8.
-Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.