Display data in jan-2009 to feb-2009 (N) , mar-2009 to may-2009 (Y)
i have data in columns as
month status
01-jan-2009 N
01-feb-2009 N
01-mar-2009 Y
01-may-2009 Y
01-jun-2009 N
01-jul-2009 N
01-aug-2009 N
i want to display data as
jan-2009 to feb-2009 (N)
mar-2009 to may-2009 (Y)
jun-2009 to aug-2009 (N)
Hi,
Welcome to the forum.
Please always give your database version, it'll help us giving you a relevant solution.
Assuming you can use analytic functions, here's a solution using a "tabibitosan" method :
with sample_data as (
select '01-jan-2009' mon, 'N' status from dual union all
select '01-feb-2009', 'N' from dual union all
select '01-mar-2009', 'Y' from dual union all
select '01-may-2009', 'Y' from dual union all
select '01-jun-2009', 'N' from dual union all
select '01-jul-2009', 'N' from dual union all
select '01-aug-2009', 'N' from dual
-- end of sample data
select min(mon) start_dt
, max(mon) end_dt
, status
from (
select to_date(mon,'dd-mon-yyyy') mon
, status
, row_number() over(order by to_date(mon,'dd-mon-yyyy'))
- row_number() over(partition by status order by to_date(mon,'dd-mon-yyyy')) as d
from sample_data
group by status, d
order by start_dt
START_DT END_DT STATUS
01/01/2009 01/02/2009 N
01/03/2009 01/05/2009 Y
01/06/2009 01/08/2009 NI also assumed the date is stored in a VARCHAR2 column. If that's not the case, just remove TO_DATE function.
More on those techniques here :
Re: Tabibitosan method tutorial by Aketi Jyuuzou
Similar Messages
-
Question about displaying data
Based on the search criteria I need to show some info. with check box on each item, but it might retrun upto fifty items (between 1 to 50 items). Should I create checkbox/output text dynamically or how do I handle this scenario? In the jspx how do I loop it and display? Thank you.
hi user13094256
See my reply in your other forum thread with the same question
at Question about displaying data
regards
Jan Vervecken -
Displaying date in 01-Jan-2008 format
hi,
I have a urgent requirement while displaying date after selected from the date picker, Is it possible to display date in 01-Jan-2008 format in the date field.
Thanks in advance.
krisGopi,
It look like a bug in WebDynpro, Check below threads for more information:
Why this Date format (dd.MMM.yyyy) doesn't work?
Re: InputField DatePicker Questions
http://help.sap.com/saphelp_nw04/helpdata/en/4a/05ad3e1d1edc61e10000000a114084/content.htm
Thanks
Sandy -
Not able to display data in separate columns using Unicode encoding
Hi,
Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
This is an urgent need. Please help me out.Hi,
I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
eg:
select
case
TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2)
= :P15_EV_LCL
then
span style="background-color:lightgreen"
|| TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
else
span style="background-color:yellow"
|| TRUNC(
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
end "Effort"
from actuals Z
If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
Please suggest
Thanks
Sudhir
Edited by: Sudhir_N on Mar 23, 2009 10:00 PM -
Unable to display data no entry in the table without using Model clause
Hi,
I've an urgent requirement described below :
The previously posted Question has been answerted using Model Clause:
Is there any way out to solve it without using Model clause:
I've a table named as "sale" consisting of three columns : empno, sale_amt and sale_date.
(Please ref. The table script with data as given below)
Now if I execute the query :
"select trunc(sale_date) sale_date, sum(sale_amt) total_sale from sale group by trunc(sale_date) order by 1"
then it displays the data for the dates of which there is an entry in that table. But it does not display data for the
date of which there is no entry in that table.
If you run the Table script with data in your schema, then u'll see that there is no entry for 28th. Nov. 2009 in
sale table. Now the above query displays data for rest of the dates as its are in sale table except for 28th. Nov. 2009.
But I need its presence in the query output with a value of "sale_date" as "28th. Nov. 2009" and that of "total_sale" as
"0".
Is there any means to get the result as I require?
Please help ASAP.
Thanks in advance.
Create table script with data:
CREATE TABLE SALE
EMPNO NUMBER,
SALE_AMT NUMBER,
SALE_DATE DATE
SET DEFINE OFF;
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(100, 1000, TO_DATE('12/01/2009 10:20:10', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(100, 1000, TO_DATE('11/30/2009 10:21:04', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(100, 1000, TO_DATE('11/29/2009 10:21:05', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(100, 1000, TO_DATE('11/26/2009 10:21:06', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(100, 1000, TO_DATE('11/25/2009 10:21:07', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(200, 5000, TO_DATE('11/27/2009 10:23:06', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(200, 4000, TO_DATE('11/29/2009 10:23:08', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(200, 3000, TO_DATE('11/24/2009 10:23:09', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(200, 2000, TO_DATE('11/30/2009 10:23:10', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(300, 7000, TO_DATE('11/24/2009 10:24:19', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(300, 5000, TO_DATE('11/25/2009 10:24:20', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(300, 3000, TO_DATE('11/27/2009 10:24:21', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(300, 2000, TO_DATE('11/29/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
Insert into SALE
(EMPNO, SALE_AMT, SALE_DATE)
Values
(300, 1000, TO_DATE('11/30/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
COMMIT;
Any help will be needful for me
Regards,select sale_date,sum(sale_amt) total_sale
from
select empno,0 sale_amt,(sale_date + ao.rn) sale_date
from
select empno,sale_amt,sale_date ,(t.nxt_dt - t.sale_date) diff
from
select empno
,sale_amt,trunc(sale_date) sale_date
,trunc(nvl(lead(sale_date) over (partition by 1 order by sale_date),sale_date)) nxt_dt
from sale
) t
where (t.nxt_dt - t.sale_date) >1
) rec,(select rownum rn from user_objects where rownum<=200) ao
where ao.rn <=(rec.diff-1)
union all
select empno,sale_amt,trunc(sale_date) sale_date
from sale
group by sale_date
order by 1;
~~~~Guess this will serve the purpose...
Cheers Arpan -
Display data from multiple document Libraries in List View Webpart
Hi All,
I want to display data from multiple document libraries into one list view webpart(custom i have created)
I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
but it tells to display only from one document library.
My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
With Regards,
Jaskaran SinghHi,
As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
in different libraries.
The links below will provide more details:
Create Visual Web Parts in SharePoint
2010
A demo about displaying list items in visual web part:
http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
About the Check In and Check Out:
How to Check In a document programmatically
SPFile.CheckIn method
and SPFile.CheckOut method
Best regards
Patrick Liang
TechNet Community Support -
Problem with displaying Date field in the table.
Hi All,
I am trying to display data into a table UI Element.
In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009" to "26.02.2009".
But while modifying DATE field , I want to show the Calender of that month, in that i have to select the another date.
(Like normal Date UI Element will show that calender).
Can anyone please help me.
Thanks in Advance!
Regards,
Sreelakshmi.Hi,
Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to AUTOMATIC and it works.
Regards,
Manne. -
Displaying dates in Bridge CS3
Bridge CS3 seems to display dates differently according to the type of RAW file. For example the dates for my CRW files are displayed as Month + Year (e.g. March 2009), while dates for my CS2 files are displayed as Day Number + Month (e.g. 10 March). Is there any way that the format of dates can be changed so they are consistent? I would prefer Month + Year as that is more useful to me.
Thanks Curt. The date format in Metadata for all my images is the same - DD/MM/YYYY, so it seems to be a problem with the display. Looking more closely at the images where the date is displayed as Day Number + Month, they are ones taken on 1st January 2009 and 2nd February 2009, where the date in Metadata is shown as 01/01/2009 and 02/02/2009. In other words the day and month numbers are the same. I wonder if this is the source of the problem, or is it just a coincidence? Unfortunately I haven't got any photos dated the 3rd March so I'll have to wait until 4th April to test it further. In the meantime I'll go through my images to see if I have any more where the date is displayed as Day Number + Month and see if the day and month numbers are the same.
-
How to display date(instead of number) along y Axis of column chart?
Hi there,
I have a requirement wherein, I have to display date on y Axis and projects along x axis. This is basically a milestone chart. Something like this:
here's my code:
<mx:ArrayCollection id="acProjects">
<mx:Object projId="A1" projDesc="Execution of Civil Work" plandate="2009-12-23" actualdate="2009-11-25"/>
<mx:Object projId="A2" projDesc="Installation of Equipment" plandate="2010-02-15" actualdate="2010-03-25"/>
<mx:Object projId="A3" projDesc="Comissioning of Equipment" plandate="2010-05-30" actualdate="2010-06-15"/>
<mx:Object projId="A4" projDesc="Handover to regular use" plandate="2010-04-23" actualdate="2009-03-30"/>
</mx:ArrayCollection>
<mx:ColumnChart id="columnchart1" width="100%" height="100%" color="black" dataProvider="{acProjects}">
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="projDesc"/>
</mx:horizontalAxis>
<mx:series>
<mx:ColumnSeries displayName="Planned Date" xField="projDesc" yField="plandate"/>
</mx:series>
</mx:ColumnChart>
But with that code i get something like this:
Generally, by default, the Y axis is always numbered. Is there a way where we can change it to display date?
Appreciate your help...
-DeepakUse the DateTimeAxis:
http://livedocs.adobe.com/flex/3/langref/mx/charts/DateTimeAxis.html -
Problem in displaying data in sapscript
Hi,
I am working on the sapscript for the tcode QC21 and the form name is 'YQM_QCERT_02'. here the data is represented in the column wise and i want to disply the data row wise.
Plzz provide me guidlines how to display the row wise data in the SAPSCRIPT.
Edited by: ricx .s on Apr 21, 2009 11:03 AM
Moderators message=>
Please post your questions in appropriate forums
Edited by: Vijay Babu Dudla on Apr 21, 2009 6:38 AM>
shelly Malik wrote:
> Hi,
>
> Please refer to the given below line may be helpful for u......
>
> https://www.sdn.sap.com/irj/scn/forums
in what way it is helpful -
To Display Date format YYYY/MM/DD in Report
Hi All,
I wrote start routine code for field Document Date(ZDOC_DATE) to display date format YYYY/MM/DD ,but it displaying as 20090212.But my requirement is the date format should display 2009/02/12.
Please find the below code which i have written,
data : v_month(2) type n,
v_year(4) type n,
v_day(2) type n,
v_Doc_Date(8) type c.
v_month = ITAB-DOC_DATE+4(2).
v_year = ITAB-DOC_DATE+0(4).
v_day = ITAB-DOC_DATE+6(2).
concatenate v_year v_month v_day into v_Doc_Date.
result value of the routine
RESULT = v_Doc_Date.
Can any one please suggest to display the date format as 2009/02/12.
Thanks in advance
karuna.Hi Rathy,
As per your suggestion i have changed the document date lenght 10 & changed code ,the issue has been resolved now..date format showing 2009/03/22.
data : v_month(2) type n,
v_year(4) type n,
v_day(2) type n,
v_Doc_Date(10) type c.
v_month = ITAB-DOC_DATE+4(2).
v_year = ITAB-DOC_DATE+0(4).
v_day = ITAB-DOC_DATE+6(2).
concatenate v_year '/' v_month '/' v_day into v_Doc_Date.
condense v_Doc_Date.
result value of the routine
RESULT = v_Doc_Date.
Thanks for your quick response.
Thanks to all.
karuna -
Display data (dropdown for years) in Team Calender
Hi,
Presently, in the dropdown menu of the Display data of team calender 3 years are populated "2007, 2008, 2009". Can anyone pelase let me know how to configure this to display dropdown to display till 2011?
regards,
pinkiHi Siddharth,
Which code..can you please let me know that?
regards,
pinki -
Display data from a virtual InfoCube
Hi experts,
When I tryed to display data from the virtual InfoCube 0FIGL_V40, I've got a dump.
Please help me to solve this problem.Dear Akshay,
Is it possible that the problem comes from R/3 since when I check the extractor 0FI_GL_40 with the RSA3 Tcode I've got the message:
Errors occurred during the extraction --- Message no. RJ012
I think that the pb has been solved by switching on the business function "Reporting Financials" . Inthe SAP source System -> TA: SFW5. Turn on Reporting Financials. Then I've no pb while testing the extractor.
Pb solved.
Many thanks
Youness
Edited by: Youness NAJI on Jan 13, 2010 4:39 PM -
I have a crystal XI report that when run will not display data; if the report should be six pages that is the number of pages that will be generated. The problem is that the pages show up as blank. If the blank pages are exported the exported file will contain data, if the report is sent to a printer the report will contain data, but no data is ever displayed on the screen. This report has been loaded on 15 other computer and runs perfectly. Any help would be greatly appreciated. By the way if this user logs in remotely and runs this report it will display data.
A few ideas;
1) Make sure you are working with [SP 6|https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe].
You are on SP 2...
[SP6 msm|https://smpdl.sap-ag.de/~sapidp/012002523100000634032010E/crxir2sp6_rdc_mm.zip]
2) Try different resolutions
3) Try to see if there is an updated video driver
4) Make sure there is a default printer driver installed.
5) Run [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] see if there are any differences in dlls loading on a box that works and the one that does not (CR and non CR dlls).
Ludek
Edited by: Ludek Uher on Feb 22, 2010 10:32 AM -
Displaying Date types in the grid control
I have a grid control and one of the column is displaying
'Date' type data. I am able to see the Date values in the grid, if
I define the return type of the getter function as String format.
But the problem with this is, when I click on the Date column
header, the grid is sorting the rows while treating the Date values
as String values. And when I change the return type of the getter
method as Date type (java.util.Date), I don't see any Date values
in the grid. Do I need to do any additional coding to display the
date values as Date types to display the data and then to be able
to sort the grid on Date types.
Please help.You should return Date values to the Flex application and
store them in the dataProvider associated with that DataGrid. For
Date-values you have a couple of choices:
1. Actually store the time (a long Number - milliseconds
since Jan 1970) and use a labelFunction on the column to format
that values as a Date. This way sorting will treat the value as a
number, but it will appear as a Date.
2. Write your own Sort compare method for that column. Check
the docs on Sort and SortField.
Maybe you are looking for
-
GRC 10.0 Mass Role removal
Hello all, we are using GRC AC 10.0 (SP14). Today I found out that the access removal for multiple user is not working. The role removal for one User is working fine. But for multiple user who all have the same role it is not possible to select this
-
Making animated gifs in Photoshop Elements 11
Is there a way to color and/or adjust the lighting on all of the frames/layers of a gif at one time? I've been trying to adjust the brightness of a twenty-layer gif, but it's a pain in the butt to have to go through each layer and try to match the sa
-
Hi, I am a technical Consultant. I have worked on SAP R/3 but have no experience in SAP B1. Right now i am involved in integration project. I have question on interface mapping. what is the procedure for doing that. what are the file formats i have t
-
TDS on Transporter 100% Exempted
Dear Expert, I got a scenario for 100% TDS on transporter vendor. I configured a withholding tax code with 0% and assigned it in vendor master data also assigned exempted reason, exempted % as 100%, when I am creating remittance challan i am getting
-
Mapping logic required--Counter
Hi Experts, How to increment the counter value by 5 every time, I tried using counter arithmetic function it is now working for my requirement. My Source structure <Elemica_Order> <HItem>1..to unbouded <LItem> <Item>1..to