How to format this date to german?
Hi!
I have following xml structure and try to format the value of customfield to a german date format:
<issues>
<issue id="5827" >
<customfield name="Erledigungsdatum" type="8" >Thu, 31 Aug 2006 00:00:00 +0200</customfield>
Following expression does not work:
<?format-date:./customfield[@name='Erledigungsdatum'];'DD.MM.YYYY'?>
How can I achieve this?
Regards
Hi Kleiber ,
To use the Microsoft format mask or the Oracle format mask, the date from the XML
data source must be in canonical format.
This format is:
YYYY-MM-DDThh:mm:ss+HH:MM
Just check the user guide, to format for your style
Similar Messages
-
How to set this DATS parameter
Hi Pros,
I am calling function 'HR_FORMS_TIM_GET_B2_RESULTS' in the program , its input parameter is BEGDA, I transfer a date variable to BEGDA, but does not work. can not get any data. but if I run this function in SE37, I input date '20140807', successfully get result. please tell me how to set this DATS parameter?Hi,
You might be passing the date in '12.12.2014' or '12/12/2014' format. Please
use the function module 'CONVERSION_EXIT_BEGDA_INPUT' to convert the date
to internal format and then pass it to the function module.
Thanks -
How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!
Thanks very much!
Although I had to add everything again to the playlist, at least I can just copy it over in future! -
Tell me how to format a date retrieved from a MS SQL Server 2000 database?
Tell me how to format a date retrieved from an MS SQL Server 2000 database for various uses in my JSP page?
Or if you want to use JSTL instead of a scriptlet see:
http://forum.java.sun.com/thread.jspa?threadID=676754&tstart=0 -
How to print this date format: eg. 14-Aug-2002 01:26:36 PM?
Can anyone tell me exactly how to print this format?
This is how we can produce the output you specified.
import java.util.*;
import java.text.*;
//14-Aug-2002 01:26:36 PM?
class Test
public static void main(String args[])
//Date b=new Date();
//System.out.println(b.toString());
// Format the current time.
SimpleDateFormat formatter = new SimpleDateFormat ("dd-MMM-yyyy ' ' hh:mm:ss a");
Date currentTime_1 = new Date();
String dateString = formatter.format(currentTime_1);
System.out.println(dateString);
}//end of Test. -
How To formate PDF Data(Binary) to HTML Formate
Hi All,
I am using PDFs in my application. Once the user has submitted his project in formation through pdf, it stores in BAPI. When i tried to retrive the data from back end to display in a view. it shows me all the information is in single line because of PDf binary data. Can any one knows about how to display pdf data in a view (html) with multiple lines.
Thanks
Regards
Ravi.GollaHi Ravi,
See this thread...It might be useful for u..
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9
Urs GS -
How to format this table in jsp page?
I have a table in database and there are four data field in it.They are "id","name","email","registetime".
In javabean,I add all this data to a vector:" ResultSet rs;
while(rs.next()){
vec.add(rs.getString("id");
vec.add(rs.getString("name");
vec.add(rs.getString("email");
vec.add(rs.getString("registetime");} ";
I use a Iterator to read all the data to jsp page:"
iter=vec.iterator();
while(iter.hasNext()){
int i=0;
%>
<table border="1" bordercolor="#FF6699" bgcolor="#CCCC99">
<%
if(i==0|i%8==0){
out.println("<td><tr>");
%>
<%=iter.next()%>
</td>
<%
if(i%8==0)
out.println("</tr></td>");
i++;
%></table>
I use a variable i for change range.I want to output a '\n' after output 4 data.But now the data in IE is this:
1
lyo
[email protected]
2003-6
2
Yashnoo
[email protected]
2003-7
It not that I want to get.I means I want to get data like this:
1 lyo [email protected] 2003-6
2 Yashnoo [email protected] 2003-7
How can I do? :(Anyone has idea?But I change it to this:
<body>
<table border="1" bordercolor="#FF6699" bgcolor="#CCCC99">
<%
Iterator iter=null;
ResultSet rs=null;
Vector vec=new Vector();
vec=lyo.addData(rs,vec);
iter=vec.iterator();
try{
while(iter.hasNext()){
int i=0;
%>
<%
if(i%8==0){
out.print("<tr>");
out.print("<td>");
%>
<%=iter.next()%>
<%
out.print("</td>");
if(i%8==0){
out.print("</tr>");
i++;
%></table>
<%
}catch(Exception e){
out.println(e.toString());
%>
It can't help? Why? -
Hello frenz,
I have date in xml file as 2010-11-20T00:00:00.000+04:00
but when I give this in the template as <?format-date:TRUNC_STH.TRAN_DATETIME_;'dd-MON-yyyy'?>)
I get this date as 10-NOV-2010 but not 11-NOV-2010
what's wrong pls tell me... has it got anything to do with the GMTDo have a look at the blog http://blogs.oracle.com/xmlpublisher/2009/06/how_to_keep_your_dates_from_go.html
-
How to Achieve this Data Load into Cube
Hi Experts,
Could you please update me on how to achieve this
I got a History data (25-35 Million Records) for about 8 years to be loaded to BW.
What is the best approach to be followed
1) Load everything into one cube and create aggregates or
2) Create 4 different cubes (with same data model) and load load 2 years of data into each cune (2Years * 4 Cubes = 8 Years Data) and develop a multicube on top of 4 cubes
If so how can i load data into respective cubes
Ex: Lets assure i got data from 31.12.2007 to 01.01.2000 which is 8 years of data
Now i created 4 Cubes--C1,C2,C3,C4 & C5
How can i specifically
load data from 01.01.2000 to 31.12.2001 (2 Years) to C1
load data from 01.01.2002 to 31.12.2003 (2 Years) to C2
load data from 01.01.2004 to 31.12.2005 (2 Years) to C3
load data from 01.01.2006 to 31.12.2007 (2 Years) to C4
load data from 01.01.2008 to 31.12.2010 (2 Years) to C5 (Currently Loading)
Please advise the best approach to be followed and why
ThanksIf you already have the cube C5 being loaded and the reports are based on this cube, then if you donot want to create additional reports, you can go ahead and load the history data into this cube C5.
What is your sourcesystem and datasource?. Are there selection conditions (in your infopackage) available to specify the selections? If so, you can go ahead and do full loads to the current cube.
For query performance, you can create aggregates on this cube based on the fiscal period / month / year ( whichever infoobject is used in the reports)
If your reports are not based on timeperiod, then multicube query will work as parrallelized sub queries and so there will be 4 dialog processes occupied on your BW system everytime the query is hit.
Also any changes that you want to make in cube will have to be copied to all cubes, so maintenance may be a question.
If there are enough justification, then approach 2 can be taken up -
In the sample data below, there are rows that contain header names, followed by a row with the data.
The problem is that some of the "header" column values change. They represent "sizes" boxes.
Name | BoxType | Color | Qty | 45 | 11 | 13.5
Compx | F | Red | 32 | 1 | 0 | 34
Name | BoxType | Color | Qty | 75 | 11 | 12.5
QuickMartZ | G | Blue | 68 | 13 | 7 | 77
Name | BoxType | Color | Qty | 75 | 11 | 45
QuickMartZ | F | Blue | 22 | 17 | 72 | 12
How could I model this data or re-shape it into a schema such as
Table
=========
AccountName
BoxType
Color
Qty
Size
Ultimately I need to be able to extract a "rolled up" count of the boxes by size and their quantity
Something like this
AccountName
BoxType
Color
Qty_Size1
Qty_Size2
Qty_Size3
Qty_Size4
Qty_Size5
Qty_SizeN...Without some value which links the two rows together (other than the order of rows how do we know the box in the line above Compx belongs to it?) I don't think this is going to be possible as a set based solution.
You could use a cursor to move through the rows RBAR:
DECLARE @table TABLE (name VARCHAR(20), boxType VARCHAR(20), color VARCHAR(20), qty VARCHAR(4), col1 INT, col2 INT, col3 FLOAT)
INSERT INTO @table (name, boxType, color, qty, col1, col2, col3)
VALUES
('Name', 'BoxType', 'Color', 'Qty', 45, 11, 13.5),
('Compx', 'F', 'Red', '32', 1, 0 , 34),
('Name', 'BoxType', 'Color', 'Qty', 75, 11, 12.5),
('QuickMartZ', 'G', 'Blue', '68', 13, 7 , 77),
('Name', 'BoxType', 'Color', 'Qty', 75, 11, 45),
('QuickMartZ', 'F', 'Blue', '22', 17, 72, 12)
DECLARE @name VARCHAR(20), @boxType VARCHAR(20), @color VARCHAR(20), @qty VARCHAR(4), @col1 INT, @col2 INT, @col3 FLOAT,
@pname VARCHAR(20), @pboxType VARCHAR(20), @pcolor VARCHAR(20), @pqty VARCHAR(4), @pcol1 INT, @pcol2 INT, @pcol3 FLOAT
DECLARE @products TABLE (name VARCHAR(20), boxType VARCHAR(20), color VARCHAR(20), qty VARCHAR(4), size1 FLOAT, size2 FLOAT, size3 FLOAT)
DECLARE @boxes TABLE (name VARCHAR(20), boxType VARCHAR(20), size1 FLOAT, size2 FLOAT, size3 FLOAT)
DECLARE c1 CURSOR
FOR SELECT *
FROM @table
OPEN c1
FETCH c1 INTO @name, @boxType, @color, @qty, @col1, @col2, @col3
WHILE @@FETCH_STATUS <> -1
BEGIN
IF @name = 'name'
BEGIN
SET @pname = @name
SET @pboxType = @boxType
SET @pcolor = @color
SET @pqty = @qty
SET @pcol1 = @col1
SET @pcol2 = @col2
SET @pcol3 = @col3
END
IF @name <> 'name'
BEGIN
INSERT INTO @products (name, boxType, color, qty, size1, size2, size3) VALUES (@name, @boxType, @color, @qty, @col1, @col2, @col3)
INSERT INTO @boxes (name, boxType, size1, size2, size3) VALUES (@name, @boxType, @pcol1, @pcol2, @pcol3)
END
FETCH c1 INTO @name, @boxType, @color, @qty, @col1, @col2, @col3
END
CLOSE c1
DEALLOCATE c1
SELECT *
FROM @products
SELECT *
FROM @boxes -
How to format a date to display the ISO week number in BI Publisher ?
Hi there,
I need to format a date to display the ISO week number in BI Publisher.
I've tried the following <?format-date:NEED_BY_DATE;'WW'?>, but it returns a week number (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year, which is not what I want.
I want the ISO week number (1-52 or 1-53), the one implemented by the 'IW' format mask of the Oracle PL/SQL TO_CHAR() function for example.
I've tried using 'IW' format mask, but it is not recognised by BI Publisher.
Also, as I'm working on an RTF template, I've tried 'IW' as MS Word date format, but it is not recognised by MS Word :-((
Any help would be much appreciated,
Regards - HuguesHi,
Thank you for the post.
The thing is I don't have access to the query, unless I modify a standard E-Businees Suite view (one of those used to generate the PO document in Purchasing).
Regards - Hugues -
How to solve this Data Configuration issue with error message ORA: 01017
Bad public user name or password. ORA-01017: invalid username/password; logon denied
How to solve this?I'm using JCreator jdk1.5.0_7.But i don't know how
to use command prompt. When i execute my program, the
command prompt showed
Exception in thread "main"
java.lang.NoClassDefFoundError: StringManipulation
Press any key to continue...So you managed to compile your code since now you are running it. This error means that the class StringManipulation was not found. Usually an indicator that your classpath is incorrect.
What did you do to generate this error? That is, how did you execute your program?
[edit] if you did not compile your code then there is no class file StringManipulation.class and this error will appear. -
Respecetd guru's,
i have task to represent this date range start date to end date in every month.
it show like this..
01-sep-2009 to 30-sep-2009
so on...
plez help me.may be you are looking for this
SQL> SELECT TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL), 'mm'),
2 'dd-mon-yyyy'
3 )
4 || ' to '
5 || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL)), 'dd-mon-yyyy')
6 dt
7 FROM DUAL
8 CONNECT BY LEVEL <= 4; -- change the range here instead of 4 to get a long range
DT
01-oct-2009 to 31-oct-2009
01-nov-2009 to 30-nov-2009
01-dec-2009 to 31-dec-2009
01-jan-2010 to 31-jan-2010to get starting from 01-sep-2009
use like this
SQL> SELECT TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL-1), 'mm'),
2 'dd-mon-yyyy'
3 )
4 || ' to '
5 || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL-1)), 'dd-mon-yyyy')
6 dt
7 FROM DUAL
8 CONNECT BY LEVEL <= 4;
DT
01-sep-2009 to 30-sep-2009
01-oct-2009 to 31-oct-2009
01-nov-2009 to 30-nov-2009
01-dec-2009 to 31-dec-2009Edited by: Qwerty on Sep 8, 2009 8:51 PM -
How i achive this data by writing exact query ?
Dear Exparts,
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
"CORE 10.2.0.3.0 Production"
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - ProductionI have a table Name TB and Column A and B with the following data.
A B
10 02-AUG-2012
10 04-AUG-2012
10 01-SEP-2012
10 10-AUG-2012
11 04-AUG-2012
11 01-SEP-2012
11 01-AUG-2012
10 12-AUG-2012
10 15-JUL-2012I need data like
A B
10 10-AUG-2012
10 12-AUG-2012
10 01-SEP-2012
11 01-SEP-2012How we get this data ?
We have to count column B group by Column A. then devided the count_value by 2 and trunc it and base on the result out put will come. the data are the maximum data.
Like when we count group A result will be
A B
10 3
11 1base on above result my desire outpul will come...
Here is the script
CREATE TABLE TB
"A" VARCHAR2(20 BYTE),
"B" DATE
Insert into TB (A,B) values ('10',to_date('02-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('10',to_date('04-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('10',to_date('01-SEP-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('10',to_date('10-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('11',to_date('04-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('11',to_date('01-SEP-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('11',to_date('01-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('10',to_date('12-AUG-2012','DD-MON-RRRR'));
Insert into TB (A,B) values ('10',to_date('15-JUL-2012','DD-MON-RRRR'));Thanks in advance...
Ask2Learn
Edited by: Asked to Learn on Sep 1, 2012 7:55 AM
Edited by: Asked to Learn on Sep 1, 2012 8:38 AM (CHANGE DATA TYPE) SORRYthis ?
with t as
select a,b,round(count(*) over(partition by a)/2) cnt,row_number() over(order by null) rn from tb
),t1 as
select a.*,row_number() over(order by null) rn from tb a
select t1.a,t1.b from t,t1 where t1.rn=t.rn and t1.b>t.cnt order by a;
A B
10 4
10 6
10 5
11 3
4 rows selected
Or
with t as
select a,b,round(count(*) over(partition by a)/2) cnt from tb
select a,b from t where cnt<b; -
Hi all,
i have a very simple query.
I have report name like this "SALES REPORT DATE FOR "+Year(CurrentDate())
and it is showing result of SALES REPORT DATE FOR 2,014
but i want report look like SALES REPORT DATE FOR 2014
how i can change the year format form 2,014 to 2014
i am using 3.1
Thanks in advance
RanjeetHi
Find the below link
BI4.1 Business Layer Enhancements - Create Display Format
Maybe you are looking for
-
Virtualizing an Office add-in with Office 365 installed - possible?
I've just attempted to virtualise an Excel add-in by sequencing the add-in and providing a special shortcut to launch Excel in the bubble with the add-ins enabled. This normally works fine when Office is locally installed, but in this case my client
-
Illustrator cc 2014 dosen't open old big size file Black screen and crashing
I installed illustrator cc 2014 I can not open some of my old files... black screen on waiting.... Meanwhile writes above is not responding If file size is larger it's a problem My OS Windows 8,1 pro "Please help"
-
I just bought the new MacPro 2012, why does the transfer of my files from my old MacbookPro to the new MacbookPro taking so long? It is taking over 2 days over the WIFi!! It is ridiculous! Why did Apple give up firewire? Maybe this is a complaint. Th
-
Starting over: how do I restart my audio setup from scratch?
I've had JACK, Pulseaudio and ALSA on my desktop at one point or another and seem to be having real issues as of late (ex: VOIP, bluetooth headset works great for audio out, but mic volume stays maxed out and unusable... built-in audio mic works grea
-
Hi, Can I fill color in PowerView objects, for eg. need to fill Green\Yellow\Red in some fields to indicate their status? Thanks