About date Format
hi all experts,I met a problem about date format.
I created a select-option refer to VBEP-EDATU(char 10), but I hope to set the display format as YYYY/(.)MM or MM/(.)YYYY.just like selecting the Month planning period in T-code :MD61
How to realize it ?
thanks in advance.
regrads.
Hi Lin,
Split the string,
DAta : yr type char4,
mnt type char2,
day type char2.
yr = vbep-edatu+0(4).
mnt = vbep-edatu+4(2).
Concatenate yr mnt day into t_date separated by '/' .
Rgds,
Jothi.P
Similar Messages
-
Problem About Date Format in Dashboard
Hi All:
I still have problem about date format in dashboard and dashboard prompt. When I use cast(dealdate as date) in dashboard prompt(coloumn formula of deal_date) and filter view(In edit view of filter coloumn formula) Then It converts the date format from mm/dd/yyyy to yyyy-mm-dd But I want format in dd-mm-yyyy.
ANd also one problem more that is when I use cast function in filter coloumn formula then how I give alias to it. Because it shows same like that cast(deal_date as date) on dashboard filter view.
Pluzz help me to solve this problem
HaroonChanging the ini files should change the date format. Have you amended the correct instances of the date format? In dbFeatures there is one for every ODBC connection.
For example in my DBFeatures.INI
[ DATA_SOURCE_FEATURE = ODBC_300 ]
DATE_FORMAT = 'dd-mm-yyyy' ;
TIME_FORMAT = 'hh:mi:ss' ;
DATE_TIME_FORMAT = 'dd-mm-yyyy hh:mi:ss' ;
IDENTIFIER_QUOTE_CHAR = '"';Also a file on the presentation side in OracleBI \web\Config called localedefinitions.xml.
Inside that there appears to be defaults for localisations - maybe it is possible to amend your locale in the Administration settings of the dashboard.
However, I haven't tried this sorry. -
Hi All!,
I need to store date in the form " MM/dd/yyyy HH:mm:ss a " .
I tried DateFormat, SimpleDateFormat, and Calendar classes but could not achieve that format.
Can any one suggest how to store date in the above said format?
Thanking You in advance,
MJHi All!,
I need to store date in the form " MM/dd/yyyy
HH:mm:ss a " .
tried DateFormat, SimpleDateFormat, and Calendar
classes but could not achieve that format.
Can any one suggest how to store date in the above
said format?
Thanking You in advance,
JStore where? Are we talking about a database? You should in that case let the driver handle the conversion and use a PreparedStatement.
Kaj -
Why if I format my date as SimpleDateFormat sdf3 = new SimpleDateFormat("dd/MMMM/yyyy")
in my DB the date is saved for example as 2005-10-27 ?
Is there a way to save it the way I want it ?
THanks!I second what stdunbar said.
The database uses a binary format to store a column with a date (or timestamp) datatype. Assuming you're storing your values correctly, the full precision is stored in the DB, but may get rounded in the display, particularly in a utility program.
For example, with Oracle using the sql*plus utility:
SQL> create table foobar (a date);
Table created.
SQL> insert into foobar (select sysdate from dual);
1 row created.
SQL> insert into foobar values ( to_date('12/31/1999 11:15:30','mm/dd/yyyy hh:mi:ss') );
1 row created.
SQL> commit;
Commit complete.
SQL> select * from foobar;
A
27-SEP-05
31-DEC-99
SQL> alter session set nls_date_format = 'Mon dd, yyyy hh24:mi';
Session altered.
SQL> select * from foobar;
A
Sep 27, 2005 22:23
Dec 31, 1999 11:15
SQL> -
HI guys
i got two obiee server running in our env . both are identical . on one server when ever we rite any report with date column in it it comes up with dd/mm/yyyy output on another server if we right any report all the date column comes with dd mon yyyy format .. i want both of them should show date like dd mon yyyy format .. i checked all the conf files are both are looking same still not able to figure out where should i change for this to work .
please let me know if you need more info from my end.
Regards,
DevHI Kishore
Thanks for your reply i checked all the things but with no success. do think there could be any other place where i should check .
1. nqsconfig date format
its same for both the two installations
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;
DATE_DISPLAY_FORMAT = "yyyy/mm/dd" ;
TIME_DISPLAY_FORMAT = "hh:mi:ss" ;
2. make sure that you didn't save date format in column properties from front-end
Just checked and we havan't saved anything in column properties .. even i created new report as well but still format was same ..
3. Did you mention anything in connection pool settings to set date format.
no we havan't mention anything in connection pool
4. Make sure that you are connecting to same database, and date format set for date is same here and there
yahh both the two installatiosn are connected to same database .. but not sure about "date format set for date is same here and there
" hw i can check this
finally, check this: http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
no its not on one column .. its to all the date format columns on all the reports .. so i think its not case with me .
please let me know if you need more info
Regards,
Dev -
Date format in Discovere Reports
We have created a workbook with a parameter which is supposed to show up an LOV for a parameter in the MON-RR format. Now this LOV shows up
correctly in the Discoverer Desktop edition as MON-RR format, but when we view
the same in Discoverer Viewer it shows up as DD-MON-RRRR.
Earlier we had got a partial resolution on this issue (TAR 3891425.996), wherein by changing the ICX
profile value in Oracle Applications, we are able to set the date mask to MON-R
R.
But now the above profile applies to all the reports and all the dates show up as MON-RR, whereas we want to continue showing the date in DD-MON-RRRR forma
t in some of the reports.
How can this be achieved ?HI Kishore
Thanks for your reply i checked all the things but with no success. do think there could be any other place where i should check .
1. nqsconfig date format
its same for both the two installations
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;
DATE_DISPLAY_FORMAT = "yyyy/mm/dd" ;
TIME_DISPLAY_FORMAT = "hh:mi:ss" ;
2. make sure that you didn't save date format in column properties from front-end
Just checked and we havan't saved anything in column properties .. even i created new report as well but still format was same ..
3. Did you mention anything in connection pool settings to set date format.
no we havan't mention anything in connection pool
4. Make sure that you are connecting to same database, and date format set for date is same here and there
yahh both the two installatiosn are connected to same database .. but not sure about "date format set for date is same here and there
" hw i can check this
finally, check this: http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
no its not on one column .. its to all the date format columns on all the reports .. so i think its not case with me .
please let me know if you need more info
Regards,
Dev -
Working with SAP Data Format yyyy.mm.dd in data services
Hi,
I had 2 questions about date formats coming from SAP to DS .
1) I am trying to convert date fieild from SAP that is formated to yyyy.mm.dd to mm/dd/yyyy but I am not having any luck .. I am using the to_date function when I run this below I get null values in my template table . I think it has to do with me not stating my input date format but cannot seem to get the correct syntax's any ideas ?
2) Does Data Services recognize dates which are formatted as yyyy.mm.dd ?? When I put I added a column to a template table and added the sys date command it returned the sys date as yyyy.mm.dd BUT when I try a fiscal_day function (which should brings back the number of days between the input (my SAP source date ) and the sys date which are formatted the same (yyyy.mm.dd) I get a format error (input parameter 2009.03.10 is not valid) . any ideas ?
Thanks for your time,
BrettHello Brett
to_date convert STRING to date based on input format.
As i understand your source data not in string format.Is this correct?
Use combination to_char->to_date for your transformation
Regards
Kanstantsin Chernichenka -
Do you know about Date format in miliseconds with TO_CHAR() function?
You'll need to use TIMESTAMP for milliseconds. You can find this well documented in the SQL Reference.
Thanks,
Tyler -
Data format to transfer data through DTW
Dear all,
I can't find the documentation which has information about Data Format to fill template to transfer data via DTW to SAP B1.
Example:
Account code : 20 Character
Active Account : valid entry tYes, tNO
etc ..
Anyone can help ?
best regards,
SuryaSurya,
Please take a look at the Wiki e-book. It seems you are trying the Chart of Accounts template.
https://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne...ToGo-10.DataTransfer+Workbench
Also, the SDK Help files have useful information about the valid values for different objects.
Suda -
I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data
Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
If you only have the free Reader then you can still do it, but it requires a script. -
Refer to Doc ID 825030 which talks about applying of patch for correction of date format in web adi. Is this patch can be applied on R12.1.3 instance as this patch released date is very old. Please suggest if there is another patch which be applied to correct the date format in web adi. currently the date is coming in number format.
Hello,
This document is for 11i Date Format Changes When Loaded Into Webadi (Doc ID 825030.1)
use this document instead for R12 : Incorrect Date Format in Excel Sheet Generated Via WebADI (Doc ID 828253.1)
<Moderator Edit - deleted MOS Doc content - pl do NOT post such content>
Best Regards,
Eric. -
Dear SAP experts,
I'm implementing an automatic payment module through HSBC in an SAP project.
My customer want to streamline their payments to vendors using automated
payments with HSBC.
I have a document about ifile description which show me information about the
structure and data format in HSBC ifile. I know how to create a DME format tree
but the HSBC format seem to be very complicated, it contains a lots of fields and
a lots of them I don't really understand.
I'm sure that many of you have done this before. Do you have any document about
data mapping for HSBC file format? I have a lot of fields leaving undone so any
relevant documents will be very helpful for me.
Hope you can help.
Thank in advance.
Maxielight.Hello Maxielight,
I too am working on this IFILE format for transmitting to HSBC for Indian INR payments & am using DMEE.
I'm struggling with a couple of fields in relation to PP.
1st is the 'Record Count' in FIle header, which is just a count of the total number of lines in the file.
2nd is the 'Total number of instructions in batch' in Batch Header section, because I'm trying to count using aggreation via reference node id, but because the Batch Header is level 1 & I need to wait for '2nd Party Details for PP' which is at a lower level I always get an error when I run the check with error 'aggregation not permitted because of field I'm using is lower level, or they are not in the same segment.
I've also tried creating a new segment with 'Delay output' but still get similiar error about the nodes being in differenet segments.
How did you get past this issue?
We are not using COS, instead we will print our own cheques in the office so sorry I cannot offer advise there.
Any advice you can offer would be appreciated.
Thanks,
Steve -
Question about get web service result in actionscript and convert data format
Hi, All
I have question about how to get dataset from web services
and put it in tree structure. I have 2 questions about this:
1, How can I get data correctly in actionscript?
I have no problem to get data by
<mx:ArrayCollection id="acFolder"
source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
/>
And display in datagrid.
But when I try to use
public function
handleFolderContents(event:mx.rpc.events.ResultEvent):void{
arData=mx.utils.ArrayUtil.toArray(event.result);
acData=new ArrayCollection(arData);
input.text=acData.getItemAt(0).id;
Seems I can’t get data, it always say:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
2, how to convert data format
I get data from web service and want to convert it to tree
structure, as mention below:
I get:
<Array>
<id>111</id>
<Name>Production1</Name>
</Array>
<Array>
<id>222</id>
<Name>Production2</Name>
</Array>
Convert to:
<mx:XMLList id="treeData">
<node>
<node label="Production1" data="111">
<node label="Production2" data="222"/>
</node>
</node>
</mx:XMLList>
Please help me.
Thanks.First, don't specify the package path in the argument
declaration. Instead import the event object:
import mx.rpc.events.ResultEvent;
The docs state this emphatically.
Second, try "lastResult", in place of "result":
arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
not positive about this. I maybe recall reading that result was ok
for the event object, but maybe not.
Finally, why do you want to convert the xml? You certainly
could, but it would be a manual process, recursively reading the
existing xml nodes and building the new structure, but again, why?
Just use a labelFunction if necessary to display the nodes as
you wish.
Tracy -
As I opened the places.sqlite with an sqlite-editor I found out that firefox saves the last_visit_date via a timestamp which is 16 digits long. I realized that the first 10 digits are similar to the corresponding unix-timestamp but not equal. So.. how can i convert the firefox-timestamp into a normal date? Or into the corresponding unix-timestamp?
Write a bash script or 'C' program to change the date format and then use the sql update function to receive the stdio output 'where date_field='embeded date value'.
-
Problem with date format mask 'D'
I am experiencing an extremely thorny problem with the date format mask ‘D’. I am trying to use it to check whether today is a Monday. The variable v_temp_day is set to sysdate. For the last 4 weeks the code has behaved erratically – giving a different result at 02:00 than at 10:30 even though it is only taking account of the date. In desperation I inserted a debug statement formatting the date in a variety of ways – with interesting results. Oracle is somehow managing to tell us that today is simultaneously Monday and Tuesday depending on which format mask you choose. Anyone got any thoughts or suggestions?
PROC_ID TO_CHAR(STAMP_TIM
EVENT_SQLERRM
RRHKP010 17092007 02:00:00
TO_NUMBER( TO_CHAR( v_temp_day, D ) ) = 2. TO_CHAR( v_temp_day, D ) = 2. TO_CHAR( v_temp_day, DY ) = MON. TO_CHAR( v_temp_day, DAY )
= MONDAY . TO_CHAR( v_temp_day, Day DD-MON-YYYY HH24MISS ) = Monday 17-SEP-2007 020000. TO_CHAR( v_temp_day, D ) = 2.
SQL> select to_char( sysdate, 'D' ) from dual ;
T
1My book says the trunc(d,'iw') will return "same day of the week as Jan 1st of that year"It's bad book.
Please read about [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96540/functions176a.htm#80159]TRUNC & 'IW' Format Model and [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96529/ch3.htm#50331]Database Globalization Support Guide: First Calendar Week of the Year in the manual.
Maybe you are looking for
-
ITunes now wont auto connect when iPhone connected
Since installing 10.6.8 on my macbook pro now when I plug my iphone in itunes wont auto sync??? Yes the "open itunes when this iphone is connected" and in itunes preferences the prevent field is unchecked. Ideas please ????
-
Issue with installing Adobe Flash Player on my Mac OS X Yosemite 10.10.2
Hi I'm having problems with installing adobe flash player on my mac pro. I am able to download file but can't instal it riches 30% and stuck. Can anyone help me solve this problem please???
-
Manual Test Script to test iDoc in SD
Hi all Can you please guide me as to how i should write a manual test script in SD to execute a test for iDocs. Regards Hema
-
How to delete the hidden partition (about 35 GB) on my H430 HDD?
Hello dear sirs/madams I want to delete the hidden partition in my H430 desktop. It came with DOS. I am unable to use OneKey Recovery after the reseller installed Windows 7 Ultimate x32. And it is showing the hard disk capacity is 465 GB in my 500 GB
-
Daring Fireball showed the script below that does a word count, in conjunction with ThisService. I want to edit it, so it counts characters. Can anyone tell me what to substitute for what? Thanks in advance! on process(_str) tell application "System