Hiding values in Query Output
Hello,
I've a web report in which I've embedded a query which has 3 exceptions. The data in columns are numbers 10, 20 or 30. The exceptions are defined like 1-10 as RED, 11-20 YELLOW, 21-30 GREEN. Now while displaying the result I just want to disply the colors not the values as 10, 20 or 30. So where should I hide this, at query level or at the web application level and how?
Amit
Hi Amit,
You can hide the values at the Query level with the option Calculate Single Value as -> <b>Suppress Result</b>. You'll get the exception colors in the report.
From Query Designer, Context menu of the Key Figure -> Properties -> <b>Calculate Single Value as</b> -> <b>Suppress Result</b>.
If you want to hide the result also, you can set the option in Calculate Result As -> Suppress Result.
Assign Points if this helps.
Regards
Hari
Message was edited by: Hari Krishnan K
Message was edited by: Hari Krishnan K
Similar Messages
-
Is it possible to insert a table value in query output?
Hi,
I am developing a query in which i have to display is a few values from a table in the output. I want to know if it is possible to directly get the values from the table thru the user exit and display in output or should i first put the values of the table into a infoprovider and get it from there in the query?
Regards,
SujaiHi Sujai,
You will have to put the values from the table into an infoProvider and then create a query on that infoProvider. Data from table cannot be directly shown in a query.
Hope that helps!
Regards,
Saurabh -
Query output in APD shows zero values
Hi ,
I am using query output in APD . The query has got some calculated key figures for which the output result of the query in APD shows zero .Is there any way to resolve this .
regards,Hi,
You need to store the source key figure value in a separate variable lets say v1 then **** the new variable v1 value to circular right, then remove the gaps, and then again shift V1 right by deleting trailing spaces and then finally copy the value in V1 to source or target key figure.
Hope this helps.
- Kiran -
Output mismatch between BEx query output and WebI Report output
Hi All,
I have a BEx query in which there are only characteristics placed in rows.
There are combinations of the values of the characteristics giving different records in the query output.
Date is one of the characterisctics in the query output.
There is an output mismatch between the query output and the WebI report output in the following case:
When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
Is this because of the 'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
How do I fix this?
Please helo me with this.
Thanks and Regards,
Srilakshmi BHi Rajesh,
I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
So I cannot check the WebI report by hiding the # or Not assigned values.
The problem is that in the Query output the records are like these shown below:
Char1 CHar2 CHar3 Date field
A B C Date1
#(Not assgined) #(Not assgined) #(Not assgined) No value
Where as the WebI report output is as below:
Char1 CHar2 CHar3 Date field
A B C Date1
#(Not assgined) #(Not assgined) #(Not assgined) Date1
As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
Please check this and let me know what could be the issue and how do I fix it.
Thanks and Regards,
Srilakshmi B -
Hi All;
Below is my query and the output and i need to remove null values from the output
Any help regarding same is much appreciated
Thanks
; WITH CTE AS
select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,a.new_mainprogramme_idname,
a.new_subprogramme_idname,
a.owneridname,
a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
ap.scheduledstart,
ap.scheduleddurationminutes
from opportunity a
left join contact c on (c.contactid = a.parentcontactid)
inner join activitypointer ap on ( ap.regardingobjectid = c.contactid )
inner join appointment appt on (appt.activityid = ap.ActivityId)
where
appt.new_didmeetingtakeplace = 1
and appt.statecode = 1 and
(a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid, c.contactid,c.fullname,a.owneridname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,
a.new_dateofapplication,ap.scheduledstart,
ap.scheduleddurationminutes
union
select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,a.owneridname,
a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
ap.scheduledstart,
ap.scheduleddurationminutes
from opportunity a
left join contact c on (c.contactid = a.parentcontactid)
inner join activitypointer ap on (ap.regardingobjectid = a.opportunityid)
inner join appointment appt on (appt.activityid = ap.ActivityId)
where
appt.new_didmeetingtakeplace = 1
and appt.statecode = 1 and
(a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,a.owneridname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,
c.fullname,a.new_dateofapplication,
ap.scheduledstart,
ap.scheduleddurationminutes
CTE2 As
select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,
ac.new_businessstartdate,new_dateofapplication,(NoOfAppointments),
case when ac.new_businessstartdate > = CTE.scheduledstart
then (CTE.scheduleddurationminutes) end as PreStartHours,
case when ac.new_businessstartdate < CTE.scheduledstart
then (CTE.scheduleddurationminutes) end as PostStartHours
pp.new_outputs,
case when po.new_outputsname = 'Pre Start Assist'
then 'Yes' else 'No' end as Precheck,
case when po.new_outputsname = 'Business Assist'
then 'Yes' else 'No' end as Buscheck
from CTE
join account ac on (ac.accountid = CTE.parentcustomerid)
join dbo.new_programmeoutput as po on (CTE.opportunityid = po.new_relatedopportunity)
join dbo.new_programmeprofile pp on (
po.new_mainprogrammeid = pp.new_mainprogrammeid and
po.new_subprogrammeid = pp.new_subprogrammeid
and pp.new_claimstartdate = po.new_claimdate
and pp.new_outputsname = po.new_outputsname)
where (ac.SCRIBE_DELETEDON is null)
group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,ac.new_businessstartdate,new_dateofapplication,NoOfAppointments,
scheduledstart,new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,scheduleddurationminutes
select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
new_businessstartdate,new_dateofapplication,(NoOfAppointments),
PreStartHours, PostStartHours,po.new_programmeoutputid,
case when (new_outputsname) = 'Pre Start Assist'
then 'Yes' else 'No' end as Precheck,
case when (new_outputsname) = 'Business Assist'
then 'Yes' else 'No' end as Buscheck --po.*
from cte2
left join dbo.new_programmeoutput as po on (cte2.opportunityid = po.new_relatedopportunity)
where po.new_claimmonthidname is not null and po.statuscode_displayname = 'claimed'
group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
new_businessstartdate,new_dateofapplication,(NoOfAppointments),
PreStartHours, PostStartHours,po.new_programmeoutputid,new_outputsname
--where new_claimmonthidname is not null --and CTE2.PreStartHours is not null and CTE2.PostStartHours is not null
Pradnya07i need to remove null values from the output
Hello,
What exactly do you mean with "remove", to filter the rows out from result set or to replace the null value by an other value e.g. 0? This can be done with the
ISNULL function:
ISNULL(case when ac.new_businessstartdate > = CTE.scheduledstart
then (CTE.scheduleddurationminutes) end, 0) as PreStartHours, ...
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hello Gurus,
I am having an issue with query output.Please find below the details of it
Unsold claims: Total---> 200
Dispatch: Total--->118,086
Unsold claims/dispatch--->0.001694
This should be the output but its coming --.0033120 because itu2019s dividing with max value in dispatch which is 60,386.
Reason: The aggregation property of Dispatch is max value. I am not supposed to do any changes in Modeling. So can we do any thing at reporting level to get the desired output?
Desired output---->0.001694
Output coming---->.0033120
Please help me in getting the desired output at query level.
Regards,solved with the help of nested exception aggregation
-
To download the query output to falt file
Hi all,
i have a query which i know will give more than 65k records as the output for a selection.
i cannot run this query in excel due to its limitation.
if i run on web i cannot download this as downloading is happening to excel file only.
The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
How do i achieve this?
SAP has given response use try using these options:
1.open interfaces to receive the output of a query via the MDX language.
2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
how do i achieve my scenario with option 1?
Are there any alternatives??
Any useful help will be rewarded.
Regards,
Dhanya.hi vivek,
thnks for the useful reply.
i have some problem with my ID,hence loggin in through my coleague's ID.
i will assign u points as i get logged in.
I did as u said by downloading it to unconverted format.
the file got download to a text file.where the output has
1.header rows(10 lines almost)
2.the values r coming in single quotes e,g:
'144000023073 'TAAS SETTLEMENT CONV 738 '19333000 '30.09.2006 '0.000
how can i remove all this?
Regards,
Dhanya
I -
How to replace # or Not assigned with blank in BEx Query Output.
Hi,
While running the query through BEx Query desginer or Anlayser, I am getting # or Not assigned where there are no values.
The requirement is to "Replace # or Not assigned with a blank" in the output.
I want to know, is there any setting in BEx query desginer where we can do this. How to do this.
Please share your inputs on this. Any inputs on this would be appreciated.
Thanks,
NaveenCheck out SDN-thread: "Re: Remove 'Not assigned'" for more details
Ideas from SDN research:
"a solution i have used is to put each RKF column in a CKF colum then in each CKF use RKF + 0, the outcome is that your # should now be 0s, in the query properties you can set the option to display 0s as blank."
"try to enter a text for the blank entry in the master data maintenance of the relevant objects and set the display option for the objects to 'text'."
Threads:
SDN: How to replace # or Not assigned with blank in BEx Query Output.
SDN: Re: Remove 'Not assigned
SDN: How to replace # or (Not assigned) with blank in BEx Query Output.
SDN: Bex Analyzer : Text element system's table ?
SDN: change message in web application designer ["nonavailable" -> 136 of SAPLRRSV]
SDN: Not Assigned ["Not Assigned -> 027 of SAPLRRSV]
SDN: replacing '#'-sign for 'not assigned' in queries
SDN: # in report when null in the cube
SDN: How to replace '#' with blank when there is no value for a date field
Edited by: Thomas Köpp on Sep 13, 2010 5:20 PM -
Filter unassigned values in report output
Hi Friends,
I have a requirement as explained below.
There is a variable for Document Number with Select Options in the selection screen.
There are some documents which come as unassigned in BW, When I execute the query leaving this document no field blank it picks up all the blank document nos also and displays them as # unassigned.
I had tried by excluding # in the variable default value and also by Do NOt Include in selection in the query Designer, but it goes for a toss if the user changes in the Selection screen or removes the filter value in the Query Output.
Is there any way we can achieve following:
1. Even if user leaves this Variable as Blank, the report should filter out the # values.
2. If in case user enters # over there, report should not bring any output.
Objective is to hide the # Document Nos and user should not have any option to change in the query output.
can it be done by doing something in Variable exit or is there any other way.
would appreciate your help.
Regards
DeepakHi Siggi,
I tried that stuff, but that gives user a flexibity to change the value at the time of entering the parameters or by removing the filter in the query output.
Hi Klaus,
We are not Implementing any authorization model, everything is open to all the users. So this option also gets ruled out..
BW Gurus .. any other ideas on this..
Regards
Deepak -
Suppress zero rows in the query output.
Dear Experts,
We executed a query. In the output the values are displayed based on a hierarchy on gl account.
But in the output some rows dont have any values i.e 0 value. Still those rows are appearing in the report output.I want to
supress entire row. How to supress the entire row if no value i.e zeros are appearing in the query output.
Regards,
Bhadri M.go to change mode of query
in that set the query properties /go to the query property secreen
in the "Display " tab set the supperssion as "active (all value=0)" and in structure properties select the check box "also use zero suppression for strucure element"
i think it will be help ful
Edited by: Soma Venkateshwarlu on Aug 28, 2009 2:40 PM -
How to replace # in the query output ?
Hi experts,
In the query output and for a particular field in a record if there is no value then it is displaying as '#'.
Can we replace '#' with any text or with any other value ?
Regards,
Nishuv V.hello,
if you display the characteristics as Key u will get as '#'.
You can select as Text,then it will show 'Not Assigned'.
Further, check on these threads:
How to replace '#' with blank when there is no value for a date field
Re: How to replace display attribute Value '0', instead of '#' in the query
Reg,
Dhanya -
Result Row in the query output
Hi,
If I restrict a characteristic by hierarchy then I cant have the result row displayed. If the hierarchy active is removed then the result row gets displayed. All characteristics are marked to show the result row.
This characteristic is Account Number. If in the query definition I remove the restriction on account numbers and just select hierarchy active and the required hierarchy in the properties then I get the result row in the output. But now it also displays all the unassigned account numbers in a separate node Not Assigned Account Number (s).
I cant even restrict it in the output with hierarchy active selected. When I do select filter value in the output the options Include in Selection and exclude from Selection are grayed out and hence cant select it.
Please advice on this issue
Thank you,
samHi Jaya,
I think you misunderstood my issue.
My problem is not that i do not want to see the field. But instead, i do not want to see only the results row in the query output.
I need to have the results to populate a calculation via sumct formula.
My question is, can sumct be populated if i hide/supress RESULT row ?
Regards,
Maili -
hi there,
I have an issue with the display of hours 00:00:00 in the query output in BW.
The system assumes it as 0 or blank and therefore display it under unassigned hour.
I am using the reference of 0TIME for this hourly display.
When I checked the 0TIME i could not find the corresponding SID value for 00:00:00 hours.
Can anybody please advise what needs to be done?
Thanks in advance,
Kind regard,
KateHi Kate,
I am experiencing the same problem as you: an InfoObject, created referencing 0TIME, represented in the BEX Query as "#" when the Value is "00:00:00".
How did you work it out?
The Formula Variable strategy is not applicable in this case because 0TIME is not a key figure !
Bye
Aldo -
Removing Leading zeros from query output.
Hello Experts,
Is it possible to remove leading zeros from the query output for a particular column?
I have a characteristics 'Reference Document' which has values like '000001386'. The users just need '1386' to be displayed and have asked us to remove the leading zeros.
Is there something that can be done for this at a query level? I can't modify the underlying InfoProvider because this requirement is just for one set of users, the other users need the document nmber in the original format.
Thanks
ArvindHi,
you can use ALPHA conversion option in the definition of that particular characteristic.
Try this code in a routine.,in query designer;
data a(9) value '000001386'.
SHIFT a LEFT DELETING LEADING '0'.
write:/ a.
Output will be : 1386
Or use this method also
data a(9) value '000001386'.
Call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
Exporting
input = a
Importing
output = a.
write a.
output:
1386
Regards
CSM Reddy -
Inserting Selection Criteria in Query Output
Hello guys
How can I insert a "Selection Criteria" for a query in its output. The final outcome should be:
1. The user runs the query.
2.The Selection Criteria pops up. The user enter the values. Then executes the query.
3. The query is displayed:
a. It has the Free Charcteristics in the left hand side top corner.
b. The query results below it.
c. And on the top, in the middleof the query, over the results area, the selction criteria should be displayed like:
<b> Plant : 0353
Free Material : Empty Demarcation
Characteristics Fiscal year / Period : 001/2007
Query Output</b>
Can this be done in BEx? Do i need a create a workbook? how do i do this?
Thanks.Hi Prasad,
Create a workbook so that you will be able to place results at defined locations.
For displaying all selection criteria in the workbook choose layout > Display Text Elements . Delete the text elements that you do not wish to display.
Jaya
Maybe you are looking for
-
First issue: I have for the second time installed Acrobat xi pro and then click on "check for updates" from the help menu. And it shows that an update is available. But when I update it I am given the following error message: Error 1328. Error applyi
-
How do I restore mail from Time Machine after a clean Yosemite install?
I've been having various performance issues with my iMac recently (wifi keeps dropping off, scan functionality on my multifunction printer stopped working, whole system periodically hangs) so decided to do a clean install of Yosemite. I also have a M
-
Hi, i read that in Attributes u have do declare global variables , in Function group i declare it in Top,but if i have lot of global Variables where i have to put it ? like table types below DATA: BEGIN OF t_tab OCCURS 0, root(20) TYPE c,
-
Dblink not working in dedicated mode
Hi All, my application tried to access the database in dedicated mode but when it's trying to connect to other database from the original database using DBLINK then it's throwing me ora-24777 use of non-migratable database link not allowed. --> when
-
Hi, would someone please tell me how to engage the numeric keypad when running Quicken in Windows on an iMac? Thanks.