Query restriction on CKF or Resticted KF
Hi gurus,
I succeed to restrict my report on key figures by using 0TCAKYFNM. i create restriction in RSECADMIN.
But if i define e calculated kf or restcited kf it does not appear. the calculated kf can be based on a KF not in the autorisation
Regards
Cyril
Note 717451 solves this.
Similar Messages
-
MSS custom query restrictions (table/view/join)
Dear all,
We are currently trying to integrate a sap query which also gathers data from event management. This query is based on an infoset and a table view and not on a logical database.
When executing the query within the portal (generictableview iview) we get the error message "No data records found". While debugging the function module HR_INFO_GET_USING_QUERY which is called here we found out that the error message is generated because no logical database is retrieved.
Therefore my question is: are mss queries in portal restricted to queries which are based on logical databases only or can we create and use queries in portal which are based on table/views/joins?
Any help on this issue is greatly appreciated!
Thanks already very much in advance,
HelgaHello MIG,
I am still searching and I have not found a solution yet.
Interestingly enough the query can be executed without any problems in R/3 but not from the portal iView. Therefore I am wondering if it is only a restriction on the MSS side.
@forum users: did anyone of you face this problem and has a solution to it?
Thanks very much for any input on this!
Kind regards,
Helga -
SAP Query restriction by Company
Dear SAP Experts,
I would like to ask an opinion of how to create a general solution for creating SAP queries regarding this requirement:
1) Create a query via SAP Query (transaction SQ01)
2) Use a pre-created infoset (VBRK-VBRP header-detail connection)
3) Restrict users to see only the data (e.g invoices) where he is allowed to see (based on VBRK-VKORG)
A question would be, how could I assign a SAP ECC user to a certain Sales Organization/Company so that you can have some sort of a master data of which company he belongs to for reporting/query purposes (in the end, which invoices he is allowed see)?
Is there a customizable way of linking a user to sales organization/s so that in the end I can use this filter in the SAP Query? Also, is there a way that this is generally done so that for all other queries which require Sales Organization/Company filtering (e.g. VBAK, other Finance reports), this is done "on the fly"/customized?
Your inputs are appreciated, thanks in advance.Hai
If u r Experience Candidate for 2+ years .Company will Sponcer the Certification wilth low Cost
Around Rs 35000.(INR).
https://websmp204.sap-ag.de/~sapidp/011000358700003517532005E
http://www.sap.com/services/education/certification/global-certification-policy.epx
http://www.sapcertification.info/viewpage.php?page_id=40
http://sapcertification.info/news.php
Assign Points if it is Useful
Thank u
Naveen -
Hi all,
I need your help in designing a query.I have made an variable ZMEFPERI on 0FISCPER.now i have to give restrition on it..
Can anyone tell me what is the meaning of "le ZMEFPERI" ?it is the restriction i have to give on the query.
Please i need to resolve this today only, help me!!
thanks,
Jaimin SoniHi
Select ur ZMEFPERI and Righrclick and select ristrict what ever u want.
And go to RKF and select the ZMEFPERI and ristrict based on time and create varaibles. -
Hello,
Hopefully this is a quick one.
I'm trying to restrict the results of a query in a report by using a select list with a named dynamic LOV. Basically the report will only display rows that are the same as the value currently in the select list. My problem is that I'm trying to have an 'All' value in the select list that will result in all rows being displayed.
I have tried using a LIKE in the query and setting the LOV to display null, then setting the null return value to %%%. This works exactly how i want it to if I hard code it into the query. However, when I try to use it as a value in the select list no rows are returned. The variable in the URL looks fine however it's not translating properly.
Has anyone got any suggestions or alternate ways of doing the same thing?
Cheers.Yes that has fixed the problem, either way % or %%% wasn't working.
However adding the ||'%' to the end of the select list variable in the query appears to have fixed the problem. I don't understand why though, it should have worked with the null return value of %...
Thanks a lot. -
Is there a way to restrict master data within an infoset query? I only want master data for a certain sales organization in the infoset query because this is joined to a cube. The cube does not contain sales org. If I could only have the infoset query display the one sale org master data this join would work.
Hi,
the join function in infoset can't provide you restriction by value.
Alternatively try to filter the infoset on the query level.
Hope helps. -
Hi all,
I have a query in which customer is a input variable, which is optional. My requirement is, if the user does not input any value for the customer in the report, then the report is to be restricted with a particular fixed range for ex: 1000 - 3000.
If the user enters some value, then the report has to be restricted for the entered selection.
How to achieve this?
Thanks in advance.HI,
Have two variables one Var1 with user input which is restricted inside a local keygifure ie to get input from customer.
Create another variable Var2 of customer exit which is restricted in Filter. Populate this by reading Var1 in the customer exit.
If user entry available populate them with user input value.
Else populate the value you need
Hope this helps for you.
Thanks,
Arun -
Please help - Recursive Query Restrictions
Hi All,
I wanted to know what restrictions are placed on Oracle Recursive Query capability. Any help or links in this regards would be highly appreciated. Waiting to hear from you.
Thanks,
SnehalCan't think of anything I would term a restriction off the top of my head. There are a few notes in the SQL Reference about precedence that probably aren't obvious.
Are you having a particular problem with this syntax?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Query - restricting rows based on specific combinations of columns
I have two columns in two different tables T1 and T2 like below
T1.Column1 T2.Column2
1 a
2 b
3 c
4 d
5 e
I need all the combinations of values in the columns, which I can choose like
select T1.Column1, T2.Column2 from T1, T2 ------ (Without specifying any join ie. cartesian product)
But, in those, combinations, I need to restrict the following combinations, from not being selected - (1,b), (1,c),(3,b), in the same sql, or using a subquery. I am not able to achieve this after several attempts. Can any one help?Just pad it and check
SQL> select no,name from a,b where to_char(no)||name not in ('1b','1c','3b')
2 /
NO N
1 a
1 d
1 e
2 a
2 b
2 c
2 d
2 e
3 a
3 c
3 d
NO N
3 e
4 a
4 b
4 c
4 d
4 e
5 a
5 b
5 c
5 d
5 eThanks,
Karthick. -
Restriction not working up properly in Query
Hi,
In BI Backend, i have 2 Info Objects in my Infocube, Movement type & Posting date. There are totally 3 movement types, A B & C. In my Query, i have to show up the posting date based on the Movement types in seperate columns. Say, Movement type A column should show the posting dates assigned to A.
I created a Calculated Key figure with Replacement path Formula Variable using Posting date. I restricted this CKF with the Movement type A. Similarly i created 2 more RKF's for B & C.
But, when i execute the query, I am getting the posting date value for all the rows in the 3 columns, which should not happen. As per actual, a particular row should have posting date value for only one of the movement types but in my case all the movement type columns are getting posting date value for a particular row.
I am not sure where things went wrong. Any help on this is highly appreciated.
Regards,
MuraliHi,
My Output should be as follows:
MT-A MT-B MT-C
12.09.2011
11.10.2011
01.09.2011
03.10.2011
23.01.2011
But my Output is as follows:
MT-A MT-B MT-C
12.09.2011 12.09.2011 12.09.2011
11.10.2011 11.10.2011 11.10.2011
01.09.2011 01.09.2011 01.09.2011
03.10.2011 03.10.2011 03.10.2011
23.01.2011 23.01.2011 23.01.2011
Please revert back for any further clarifications.
Regards,
Murali -
Unwanted query execution before adding Find page restrictions
Hello,
When the JHS (10.1.2.1.27) application I made is started, the whole table content is queried without restrictions BEFORE the Find page has loaded.
Because it's a fair amount of data, I get out of memory messages.
I have used 2 specific settings that are related to this:
1) Property "Use Table Range?" has been turned off
2) Query Bind Parameters are used
Looking in the log files I noticed the following:
13:24:00 DEBUG (JhsActionServlet) -Request URI: /PppHseSisQuery/FindPppVLastBhy.do
13:24:00 DEBUG (JhsActionServlet) -Request Character Encoding: ISO-8859-1
13:24:04 DEBUG (JhsDataAction) -Executing action /FindPppVLastBhy
13:24:04 DEBUG (JhsDataAction) -Created searchBean map and stored on session
13:24:04 DEBUG (JhsDataAction) -Created new searchBean for PppVLastBhyUIModel and added to quick search bean map
13:24:04 DEBUG (JhsDataAction) -Stored searchBean for PppVLastBhyUIModel on request
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 0 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 1 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 2 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 3 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 4 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 5 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 6 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: executing query, bind parameter values have changed
It seems that the bind parameters get initialized in some kind of way at startup.
This is detected as a change in value apparently, after which the query execution is triggered.
So far so good. The problem is that my main query restriction is not related to any of the query bind parameters.
Because the Find page has not been loaded yet, this mandatory restriction has not been added to the searchBean yet and will therefore not be added to the view object's where clause.
The result is that all table records will be queried.
My question: Is there any way to prevent the query to be executed before the Find page has loaded?Have you tried setting the group checkbox "Auto Query?" to unchecked? This should prevent the query from executing before the find page is loaded.
Steven Davelaar,
JHeadstart Team. -
Restrict values of characteristic in input-ready new rows query
Hello all
We are creating an input-ready new rows query. So we added characteristic as row.
We need the values in F4 (while choosing value in this row) are to be restricted by hierarchy (or just restricted by some algorithm - list of values). But if we choose "hierarchy" for that characteristic, it will also appear in rows, so not one posted value will appear, but full hierarchy for this value. How to make F4 for choosing restricted values of any characteristic.
Reason: we have different account plans for different years and don't want users to choose "old" positions.
Cheers, YuriHello, Yuri!!!
Try to use next variants:
1) Authorization
restrict you characteristic in RSECADMIN
2) COMPAUND
You can add compaund characteristic to you main characteristic, and if you restrict this compaund characteristic in filter, then in query you'll see only appropriate values
3) FILTER
You can restrict not only fixed values, but you can use prequery for you characteristic. For example make DSO in which will be calmonth and account in key. And make query to take accounts for calmonth. After that in you main query restrict you account through variables with replace path type (set query for accunts for month).
4) Relation in RSPLAN
Create DSO(as in case 3) and try to use relation for you realtime cube in RSPLAN.
Anton.
Edited by: Anton Moskvichev on Nov 27, 2008 9:51 AM -
CKF, RKF or Structures locking queries in Development sytem.
Our BW environment is set up to allow "Z" and "Y" queries. When creating a "Z" or "Y" query in the dev environments if a previously transported CKF, RKF or structure is added to the query, it locks after closing. Our QEA and PEA system allows creation of a "Y" query using transported CKF, RKF or structure without the query becoming locked. (The CKF, RKF or structures remained locked). Can anyone tell me how to get the DEA system to behave like the other two systems? Or if there is an OS Note that addresses this issue?
The development system is open and the ELEM type is set to everything changeable.
Thanks for your responses in advanceCKF = Calculated Key figures, RKF = Restricted Key figures. Our "Z" queries are transported queries and "Y" queries are for temporary ad-hoc reports and can be created in the production and quality control systems.
Thanks,
Joe -
Customer exist code 4 automatic recognisation of restricted key figures.
I have a scenerio like this.
I have Product Dimension(zpddim1) in that product release (zpdrl) In infocube(zcubepd) . Based on this
If you look at In Bex at the key figure we have created one Restrictedkey(2006.03,2006.09....) figure per Release. As the release goes forward in future(for e.g. 2006.09) then we have to add additional key figure Can you find out a way, where the query automatically recognizes the release adds it part of the data(key figure).
for the above scenerio I hav to create customer exists(I am writing code in ZXRSRU01 include program).
please help me how write the code for above scenerio.
what are the conditions,how fetch the data from that,how to create internal tables for that & all which are necessary.
It's very Urgent.please send replys asap.
(I will Assign max points if your reply helps me)
Thanks,
JamesLet me try to understand case 1 first.
<i>"Strange behaviour 1:
When including the CKF A in a query and restricting it on the actuals infoprovider, what do you get? I created a test query with two columns: actuals and one specific budget version. So in the columns the restriction is on budget version. In the actuals column I get the expected result, i.e. the loaded data. In the budget column I would expect nothing, as I have restricted the CKF on the actuals infoprovider only. But I do get data. I get B/4 for the correct budget version. So it seems the lower level restriction on infoprovider is overriding the higher level restriction in this column."</i>
I assume you are creating two new RKF on CKF A. Let us say R1 and R2. Is this correct?
R1 (and R2) is restricting A on 'budget version' or 'infoprovider'? It seems you are interchanging these two, though I assume these are separate characteristics. -
Query Changes: Variable not collected in Transport
Hi Experts,
Intiatlly some one created a query and it was transported to BWQ from BWD.
Due to some changes, I needed to rework on the query. For that I did the following:
a. In the Administrator Transport Workbench, I collected the query
b. CLicked on the Transport checkbox
c. Then assigned a new BEX Transport request.
d. I then made changes in the query plus added a variable in the query.
e. I checked my query and it was working fine in BWD.
Now when I transport this query to BWQ, the transport fails and says
"Error when acitvating element 4DKMNO0UMEXIN0FHM6RYXXJ3F"
"Element 4E5X3H4IQ5BEDSZY1I6GW4P2J" is missing in version M"
I think the transport is missing the variable I created. So why is this not collected?
Secondly since this transport request was released will I have to recollect the query and variable. If so how?
Thanks,
HundiaI raised an OSS Message.
The reply from SAP was:
"We have analyzed the situation with the inconsistent queries.
1. The error message
'Unable ot detect element type for Element Recreated Formula:
DBJFSQOSAL3WPK8LSCNUWNAJ"' is raise as a result of incorrect repair
procedure most likely perfomed by the program ANALYZE_MISSING_ELEMENTS.
This is very old report which allowes repair, but unfortunately this
repair is not correct. Therefore we do not recommend you to use it
in similar cases.
The element DBJFSQOSAL3WPK8LSCNUWNAJ recreated by the program as a
local formula must have type Calculated Key Figure. This info can be
obtained just by analysis of the corresponding structure members which
has to represent this CKF in the query...
2. Missing element and INCONSISTENCY. This is logically related to
the first case. I have perfomed extended anylysis and the situation is
the following.
Affected query YTEMP_ZSCNNM04_01 (4B75NN07LN3TJVDW9VX8OUACR) contains
one unresolved reference to 4B773WHW1GK5WZAPK5CZHZSH7. This missing
element can be a local structure member (FLM or SEL) or a reusable
object like calculated or restricted KF
Affected query ZORQSP_ZSPNNM021_NN_05 (4DUV3IK29VBJESNEWX20PBXM3) also
contains one unresolved reference. This is pretty similar to the case
above. The missing element is CKF. This can be found from the definitionof the related element.
Affected query YY_FT_TEST has 3 unresolved references. Here the case
is a bit different. According to my analysis the missing elements are
just such global part of a query like Filter and Sheet. This more less
means the entire definition of this query is not available.
Possible solution.
As far as I see, all missing elements are local for the BWD system.
This means that most likely we can not use transports from the other
system. By just to use this option aswell, please check if some of thesemissing can be found in the other systems
4B773WHW1GK5WZAPK5CZHZSH7
4BO650QIIZZ51VCNLZXSC4MP7
4BO652NN9NEIPI7P2IIUUMB57
4BPGWZK405TZ1061K1FSQCT0R
4DVE6TT3PU9YJ6RQ4ETM2MDIJ
and
4DBJFSQOSAL3WPK8LSCNUWNAJ
If you find something, it is necessary to transport them to the BWD
system. This will solve some issues.
But probably you will not find them. Therefore the alternative way will
be to replaces the missing objects in the definition of the affected
queries by some other availabe objects. This is to be done manually.
For example mising CKF can be replaced by a constant value and then
in Query Designer replaced once again by any avaialbe CKF.
Such technique can help te achieve technical consistency of the queries
ZORQSP_ZSPNNM021_NN_04, YTEMP_ZSCNNM04_01 and ZORQSP_ZSPNNM021_NN_05.
Situaiton with the YY_FT_TEST is more critical. There are no chances
to repair this one. The only option will be to delete it using the
transaction RSZDELETE.
Please tell me how would you like to process. In principle, this case
is not really critical as the missing elements are just locally affect
queries and not used by reusable query components like CKFs/RKFs which
might be shared between many other queries also affecting them.
Maybe you are looking for
-
Oracle 8.1.5 oci client to oracle 9i database
Is is supported to use an Oracle 8.1.5 oci client to oracle 9i database? If not, will it work?
-
Photoshop colour profiles and Aperture
The local lab only has Photoshop colour profiles, nothing for Aperture. Any way to utilize these in Aperture? They recommend their PS RGB profile. If I can't utilize it, I can get an image that is closer to my screen display, if I onscreen proofed us
-
Selectively editing nodes in a JTree
I need to make certain nodes in a JTree editable, without making every node in the tree editable. How can I accomplish this?
-
Manual Nat (twice Nat) Answers
There seems to be a large number of the subject queries in one form or another. Having acquired an asa 5505 and using 8.43 firmware and the ADSM gui for router configuration it has not been an easy transition from other products. I have come to un
-
Curious disk & Disk Utility problems
When I run Disk Utility on my drive I get this message: "Disk Utility stopped verifying [name of my disk]. This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple