Keyfigure value by comparing 2 date fields, in the query designer.
Hi all,
Could any one please intimate, how to display the key figure result with the comparison of 2 date fields.
We are having "Completed Date" say(CDATE) and "Deadline Date"(DDATE) values in the report as time characteristics, dervied from the CRM system.
Now we need to compare the values as:
CDATE <= DDATE, then only consider this under "Meeting Planned Date"(Key Figure).
Could you please intimate, how to display the key figure value, by using the code at the query designer level.
Thanks & Regards,
A.V.N.Rao
Hi Rao,
Simple create two formula variables with replacement path from these two date fileds,then create a formula then do the comparison
Eg:
ZVAR_CDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ CDATE
ZVAR_DDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ DDATE
CREATE A FORMULA FORMULA1: IN THE FORMULA BUILDER AREA DO THE COMPARISON.
Thanks & Regards
Ramsthota
Similar Messages
-
The keyfigure values appear as' X' when ran the Query in Web
Hi Experts,
When I tried to run a Query in web. The key figure values are appeared as 'X'. When I drill down by any characteristic like sales district, I could see values for some sales district,other than that the same 'X' was there.
Please help on this..
Thanks in advance,
Charles.Hi Charles,
Normally 'X' appears when the divison by zero happens, so this might be a calculated key figure wherein some divison is been done.
The level at which you are luking at the query where u r getting X, please check the data at same level in the cube or DSO, and perform the calculation in there.
If u get data at drill level then this is moreover a data issue.
To avoid the display of 'X' u can use the nodiv function in calculation.
Thanks
dipika -
How to get max date field in the query
Hi,
We uploads the data into the cube every week.
Basically we are planning to put some ticker on the query. This ticker will show the user, upto which date the data is available in the cube.
I want the query, which will show me only the maximum date (maximum 0calday) from the infocube in the report.
This in turn, I will use in the ticker and make use of it.
Can anyone please help in making this query.
Thanks
Ramesh Ganjiif 0CALDAY is used as a characteristic then you have to convert that as a key figure using a replacement path variable.
Please see the below link for changing 0CALDAY as a key figure using Replacement path
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
https://websmp106.sap-ag.de/~sapdownload/011000358700001963972003E/HowToCalcWithAttr.pdf
Now you have to create an exception "Top N Rows" based on the replacement path variable created above.
This will solve your problem.
Regs
Gopi.
Award points if it helps ... -
Sorting of Date field in the SQL Query useing ORDER BY
Hi
I am facing a problem when I am getting the results of a query from the ORacle 8i database using jdbc connection.
The query is having a date field and I have to sort the query results using ORDER By for the Date field. The query is giving exact results in the SQL PLus interface.
When I am getting this results in the GUI where servlets are being used an Exception is coming as not supported RefreshRow method.
If anyone has faced this problem and have got the solutions please let me know.
thanks
sulfyThat doesn't sound at all like an SQL problem.
More like you trying to do updates on the resultset which is not allowed ...
send a some code (not to much pls :) and we'll be
able to help more
cu
Spieler -
Master data is not getting displayed in the Query Designer
Hi,
I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
Hope its clear.
Please help.
ThanksHi,
I have brought the Emp. No. in the Key Field and also have activate the master data again.
Yet my Query Designer doesn't have the Emp. No.
I have done a full load for both Master and Transaction.
Please advice me what the other alternative.
Thanks -
hi
Can You Please suggest how minimal we can correct this at the query output
My coming output for the date field at the query is
01/28/2008
04/27/2006
06/1/2006
05/16/2006
Desired Output for the query field at the query is
1/28/2008
4/27/2006
6/1/2006
5/16/2006
Zeroes should not be present can you quickly help me in this regardHi
Check conversion routine on info object maintainance .
Regards,
Chandu. -
How to compare two fields from the same table in the select statement
Hi, friends
I try to compare tow fields from the same table, but no result,
For example, this
data: cptotchek tyep i.
select count(*) into cptotchek
from aufk where erdat = aufk-idat2 .
The result is cptotchek = 0, but there are the records in aufk , where, aufk-erdat = aufk-idat2.
Please, help me, i don't use the loop statement for optimize my program.
RegardsHi ,
it will not return any value when you are using column of same table
such as Date Field , Because while Using Aggregate Function it will not check with self column
. For that you have to take data in one internal table and then you can work on it .
And if you are worried about Performance it will not affect , untill you are selecting only required data .
you can try this way .
data: cptotchek type i.
types : begin of w_aufk.
include structure aufk .
types : end of w_aufk .
data : it_aufk type standard table of w_aufk with header line .
select * into corresponding fields of table it_aufk
from aufk .
loop at it_aufk .
if it_aufk-erdat = it_aufk-idat2 .
write : / it_aufk-erdat , it_aufk-idat2 .
else .
delete it_aufk .
endif .
endloop.
Regards
Deepak. -
Filling out the date fields in the forms
Hi,
I'm trying to fill out a form (http://www.uscis.gov/files/form/i-134.pdf). The regular text fields are working fine, but I've problem with date fields in this document.
When I set the value of any date field (e.g. see "Date submitted" in the middle-right of last page), Acrobat Reader assigns the same value to all other date fields - which is completely wrong. And if I delete any value it has assigned, it deletes the values of other date fields as well.
Is it a bug in Reader, or something is wrong with the form? I've the latest Reader 8.1.2 + security patch, running on Windows.
Regards,
Michael.It is the design of the form. It isn't a bug of Adobe Reader or Adobe Acrobat.
-
Using a parmater field for a Date field using the "in the period" selection
Users would like to fetch records using the "in the period" record selection. They would like to be prompted on the period to run the report. ie
MonthToDate
YearToDate
Last7Days
Last4WeeksToSun
LastFullWeek
LastFullMonth
AllDatesToToday
etc...
I've created a parameter with a dropdown list of values. However the parmeter field I created isn't available as a value in the date field in the "Select Record Expert" function.
Is there a work around?Ron,
Unfortunately you still have a little bit more work to do... but not much.
You need to add a formula to your selection criteria. Something along these lines:
IF {?DateRange} = "MonthToDate" THEN {TableName.DateField} in MonthToDate ELSE
IF {?DateRange} = "YearToDate" THEN {TableName.DateField} in YearToDate ELSE
IF {?DateRange} = "Last7Days" THEN {TableName.DateField} in Last7Days ELSE
IF {?DateRange} = "Last4WeeksToSun" THEN {TableName.DateField} in Last4WeeksToSun ELSE
IF {?DateRange} = "LastFullWeek" THEN {TableName.DateField} in LastFullWeek ELSE
IF {?DateRange} = "LastFullMonth" THEN {TableName.DateField} in LastFullMonth ELSE
IF {?DateRange} = "AllDatesToToday" THEN {TableName.DateField} in AllDatesToToday
On the plus side, you'll be able to go back into your parameter and add some spaces to list options... which will look better for the end users.
HTH,
Jason -
Focus lost in Date Field when the property autosubmit="true" is added
Hi,
I am using jdeveloper version 11.1.2.0.0.
The issue I am facing is when I add the property autosubmit="true" for a date field and if I am selecting a date value using date picker, the focus is lost for the date field. But when I remove the property autosubmit="true" for the date field and if I am selecting a date value using date picker, the focus stays in the date field. This I tried in sample application with the default converter and validator. Anybody can help me with this issue?Hi,
there is a preSubmit event for form objects you can use.
Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
$ = num2date(date(), "MM/DD/YYYY") -
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
Date fields in the Maintainence View.
Hello friends,
I created a maintanence view which of 2 steps. This view contains a DATE field of data element type 'DATS". Now the problem is -"
1. In the first screen of the viewI am not able to see only the DATE field(Over view scr).
2. But I able to see the same field in the 2nd screen(Maintanence Screen).
Not only to my View I maintained ' Table Maintanence Generator" to some more tables.There also I am not able to see the date field in the first screen, unless it is a key field.
Thanks in advance.Hi
Step 1: Create & Maintain Table (SE11)
Screen 101: ABAP Dictionary: Initial Screen
Screen 102: Maintain Table -> Delivery and Maintenance
Screen 103: Maintain Table -> Fields
[] SE11: Enter Table Name -> Create
Enter Table Description (Mandatory Field)
Select Delivery Class
Set maintenance level
Enter Fields, Assign Data Elements
Save Entries
Check Inconsistencies
Activate Table
Go To Technical Settings (SCREEN 104)
Delivery Class: The delivery class controls the transport of table data when
installing or upgrading, in a client copy and when transporting between customer
systems. The delivery class is also used in the extended table
maintenance.
There are the following delivery classes:
A: Application table (master and transaction data).
C: Customer table, data is maintained by the customer only.
L: Table for storing temporary data.
G: Customer table. The customer namespace must be defined in table TRESC. (Use
Report RDDKOR54 here).
E: System table with its own namespaces for customer entries.
S: System table, data changes have the same status as program changes.
W: System table (e.g. table of the development environment) whose
data is transported with its own transport objects (e.g. R3TR PROG, R3TR TABL,
etc.).
Data Browser/Table View Maint.: This indicator specifies
whether it is possible to display/maintain a table or view using the maintenance
tools Data Browser (transaction SE16) and table view maintenance (transactions
SM30 and SM31).
MANDT field is mandatory for Client dependant tables
Technical Settings: The technical settings control, for example, table buffering.
Indexes: To speed up data selection, you can create secondary indexes for the table
Append Structure: Append structures are used for enhancements that are not included in the standard.
Screen 104: Maintain Technical Settings
Select Data Class (Mandatory) [APPL0]
Select Size Category (Table size - No. of records - Mandatory) [1 to 6]
Specify Buffering [allowed / not allowed]
Save
Check Inconsistencies
Activate & Go Back to Maintain Table Screen
Data Class: The data class defines the physical area of the database (for ORACLE
the TABLESPACE) in which your table is logically stored. If you choose a data
class correctly, your table will automatically be assigned to the correct area
when it is created on the database.
The most important data classes
are (other than the system data):
APPL0 Master data
APPL1 Transaction data
APPL2 Organizational and customizing data
Size category: The size category determines the probable space requirement for a table in the database.
Buffering: The buffering status specifies whether or not a table may be buffered.
Screen 105: Maintain Table
Screen 106: Maintain Enhancement Category (ECC 6.0 onwards)
-> Extras -> Enhancement Category
Select Enhancement Category
Enhancement Category: Structures and tables that were defined by SAP in the ABAP
Dictionary can be enhanced subsequently by customers using Customizing includes
or append structures. The enhancements do not only refer to structures/ tables
themselves, but also to dependent structures that adopt the enhancement as an
include or referenced structure. Append structures that only take effect at the
end of the original structure can also cause shifts - in the case of dependent
structures - even within these structures.
Screen 107: Maintain Table -> Table Maintenance Generator
Screen 108: Generate Table Maintenance Dialog: Generation Environment
-> Utilities -> Table Maintenance Generator OR [] SE54
Specify Authorization Group [&NC&]
Select Maintenance type [One Step/Two Step]
Mention Screen Numbers [1/2]
Save & Go Back
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details. -
How to select data from a table using a date field in the where condition?
How to select data from a table using a date field in the where condition?
For eg:
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = '31129999'.
thanks.Hi Ramesh,
Specify the date format as YYYYMMDD in where condition.
Dates are internally stored in SAP as YYYYMMDD only.
Change your date format in WHERE condition as follows.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = <b>'99991231'.</b>
I doubt check your data base table EQUK on this date for the existince of data.
Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and <b> bdatu <= '99991231'.</b>
Thanks,
Vinay
Thanks,
Vinay -
Error giving a default value to a date column in the attribute settings.
When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
How can i fix that?
Thank uThe default date format for oracle.sql.DATE which oracle.jbo.domain.Date extends is "YYYY-MM-DD"
-
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.
Maybe you are looking for
-
How can I transfer contacts from one iPad to a new iPad with different iCloud addresses?
how can I transfer contacts from one iPad to a new iPad with different iCloud addresses?
-
IMovie "mobile" format does not work on iPad
I created several movies with iMovie and shared them via MobileMe. Each movie was rendered in the "mobile" format. When attempting to view the result on my iPad I received a message telling me there is a problem with the format of the movie and that
-
Sharing Itunes library between an admin and user account on one imac G5
Hello, Please forgive the repetitive question. i have set up an admin and a user account on my iMac. I set the itunes library to users/shared/music/itunes/itunes library on both accounts. The music shows up on the admin account but not the user accou
-
How to make subforms editable in ADOBE forms
Hello All, The 'Pagination' for few of the subforms are editable, and for few of the subforms are not editable. Actaully i have to set the 'overflow' for one subform, but the whole pagination is dispaly mode. (i can edit pagination for other subfo
-
Standard VGA Graphics Adapter problem ot hp dv7-6178us
Hello, I have the problem with Standard VGA Graphics Adapter and I can't find a solution for it? Can someone help with this driver? Thanks!