How to get Quername while executing query in CMOD
Hello,
I have written some code for giving authorization to the users while excuting query,
i need to find users with role YB_CRM_MN_ADMINISTRATOR which i can get through FM CRM_ROLES_OF_USER_GET.
After that I need to find the query it is executing, if it is ZZCMI0UO01_Q0002 the user should have all the access to view all the data in the query or have limited data access.
how can i get the Query name at runtime ??
Thanks in advance.
regards,
Mahesh
The result of the query is normally shown via an iterator which ids bound to a vo. After the query is executed you can check the iterator (estimatedRowCount >0) and then insert a message.
Got this you need to use your own query listener (sample for this http://andrejusb.blogspot.de/2008/11/adf-query-component-and-view-criteria.html) here you execute the query and after that get the estimated row count.
Timo
Similar Messages
-
Error 0DAT while executing query
Hello All,
While executing query in query designer I am getting following error.
Component 0DAT version A does not exists in the database.
Can any one please let me know how to rectify this error.
Points will be rewarded.Hello,
Thanks for your prompt reply.
I am looking for 0DAT in BC (object type) but could not able to find it.
I am new in BW :
Do I have to search BC in r/3 and replicate in BW then install and activate it ?or I will find in BW only? -
Web Analysis Error -- Error while executing query and retrieving data
Regarding Web Analysis:
We have a number of reports that we created. yesterday they were all working fine. today we try to open them and most are generating an error.
The error is:
Error while executing query and retrieving data.; nested exception is:
com.hyperion.ap.APException: [1033] Native:
1013033[Thu Oct 22 09:08:17
2009]server name/application name/database name/user name/Error91013033)
ReportWriter exit abnormally
Does anyone have any insight into what is going on?
My version information is:
Hyperion System 9 BI+ Analytic Administration Services 9.3.0.1.1 Build 2
Web Analysis 9.3.0.0.0.286
Thanks in advance for your help.
DaveWHi,
And also click on check option by opening the query in Query designer,as Mr . Arun suggested.
And if you get any error in checking, see the long message(detail).
With rgds,
Anil Kumar Sharma .P -
Error while executing query in OLAP server
Dear all,
we are using APD to extracted sales data for the last 3 months .this APD was executed perfectly till yesterday.
in today's run APD got failed with error message as below
"@5C\QError@ Fiscal year variant Z3 is not maintained for calendar year 9999
"@5C\QError@ Error while executing query in OLAP server; redesign query.
Please suggest corrective action .
I have tried executing manually with less selections on creation date by no success..
regards,
puruPurushotham wrote:
Hi Jeeth,
>
> in query we have selection for " currency type " and created on " .we are not using fiscal year variant.
>
> in first strep of APD design only we have a problem and also recently there are no changes to this APD .
>
> It was executed perfectly on till 4th .
>
> Edited by: Purushotham on Feb 6, 2012 12:48 PM
Dear Purushotham, You can maintain the Fiscal year Variant in OB29. 2 possibilities, #1 : Data for the FYV/Year could be wrong. #2 : Updates for Fiscal Year might not have been done. You can maintaine FY varients up to FY 2XXX in your BW system. This should fix the error. The table T009 must be the same as we get when we do OB29 TCode in BW, so via SPRO do rebuild of table again.
Edited by: Arun Bala G on Feb 6, 2012 4:05 PM -
Error while executing query through rsrt
hello experts,
I am facing following error while executing one HR query through rsrt.
"System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01- (see long text) "
while executing query through rsrt it automatically goes to debug mode, coming out of debug mode i get the screan showing above error message.
What would be an issue?
Regards,
Nirav
Edited by: Nirav Shah on Apr 21, 2008 8:19 AMHi ramesh,
I havent kept any execlusion selection. Though i saw long text, it is like this:
"Diagnosis
This internal error is an intended termination resulting from a program state that is not permitted.
Procedure
Analyze the situation and inform SAP.
If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
Notification Number BRAIN 299 "
Regards,
Nirav -
trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error occurred." message appears. how do I fix this?
Try this Technote
http://kb2.adobe.com/cps/405/kb405604.html
Try step 4 here
http://kb2.adobe.com/cps/405/kb405604.html#main_dat -
Error while executing query in BEX
Hi All,
I am experiencing an issue while executing query on FIAR_C03.
"Abort No Values could be determined for variable 0P_FVAEX
Error specify a value for 0P_FVAEX
Abort system error in program SAPLRRKO and form APPEND_KHANDLE_1-01-
I had searched SDN forums and found the similar error which is inculded in the below link:
Bex Variable
However, the solution specified is only for a particular 3 queries. Also the solution is that the 3 queries(Which are having errors) are replaced by another 3 queries.
Can anybody help us in this regard.
Regards
YJhi JY,
try 858477 steps for other 'infected' webtemplates ?
try implement correction in 660514 ?
(also search other notes with keyword 0P_FVAEX
e.g 585202)
hope this helps. -
Error in while Executing Query in the Query Designer
Hi,
I created info Set based two info object and three Data Store Objects. and join condition is Left Outer Join.
there are Business Partner info object, CRM BP Sales View Info Object and Data Store Objects are BP: Roles (0BP_ROLE),Partner: Industries(0BP_IS),CRM Marketing Attributes for Business Partner(0ATR_DS01)
I given some Selection Parameters while executing query in the Query Designer. in That i given city is selection parameters
and i creted variable for this info object.
it gives the Error Messages
Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
Der Wert "New Delhi " von Merkmal 0CITY40 enthält an der 10.ten Stelle einen Fehler
it is very urgent , can any one help me regarding this.Hi Reddy,
The Error message in english is this
While reading the data mistakes have appeared. Navigation is possible
The value " New of Delhi " from sign 0CITY40 contains a mistake at the 10.ten place
and i think you need to run the change run and run the report with out selecting the variable option.and navigate in the report by filtering the report for your requirement.
Try this and let me know.
Thanks,
RK -
How to get the current executing file/itself absolute directory?
hellooo,
gentlemen/lady, how to get the current executing file/itself absolute directory?
thanks
Hello,
you can get the real path information of the JSP through the servlet context:
http://java.sun.com/products/servlet/2.2/javadoc/index.html
javax.servlet
Interface ServletContext
Method getRealPath
Christian Plenagl
Developer Relations Engineer
BEA Support
[email protected] (alex mok) wrote:
>hellooo,
>
>gentlemen/lady, how to get the current executing file/itself absolute
>directory?
>
>thanks
-
Hi All,
how to get key from mdx query ?
example :
SELECT [Measures].[67822GFASOU7KUT6FKHSQ34FV] ON COLUMNS NON EMPTY CROSSJOIN([ZCOMPANY].MEMBERS, [ZMILL].MEMBERS) ON ROWS FROM ZODS_GL/ZODS_GL_001
the result from this mdx query are zcompany text and zmill text, how to get company key and mill key ?
Regards
JeiMinghi Jeiming,
to get key in mdx, you can try something like
[ZCOMPANY].[LEVEL01].MEMBERS
properties [ZCOMPANY].[2ZCOMPANY]
following threads may useful
Extracting texts with MDX
MDX Statement - display only keys for characterstics and their dis. attrib.
hope this helps. -
While Executing Query with out giving any inputs to selection variables
Hi,
While Executing Query in the Query Designer with out giving any inputs to selection variables. I got an error message in german Language this is translating of german to English .
In the reading of the data, mistakes appeared. Navigation the value is contains possible "New Delhi" of feature 0CITY40 at that
10. ten place a mistake Notification Number BRAIN 290
This is very urgent can you please help me .
Thanks & regards
Subba Reddy.Double click this error message it will give you more details. Post that.
-
ORA-01722: Error while executing query in Query Designer
Hi All;
I am getting the below error while executing a query
ORA-01722: invalid number
Error reading the data of InfoProvider
Error while reading data; navigation is possible
Have anyone encountered this before? How do i resolve this?
Thanks!
~ Arun KKHi,
Did you checked all the setting required to run this query are present in the Qualtiy system??
Which means all the characteristics,key figures are in active state.
Also all the cubes are in active state with no issues with the involved in the dimensions used for the query.
Also do a check in the query and if you have authorization try to save the same query and execute the saved one again in quality and see if the same error happens again.
Thanks
Ajeet -
Error while executing query after migration
I have migrated a query to 7. While executing the report following error occurs
When I attempt to open a query, (I get past the login and query selection screens) I get the following error:
"Creation of item TEXTELEMENT_xx Failed" (20 or so lines)
After which the variable entry screen pops up, but no data is displayed when the query returns due to the creation of the elements failing.
Excel 2007 Office SP2. SAP GUI 710
Please suggest.
Regards,
Raj.Hi Raj,
I also faced this problem with Excel 2007 BI
I was able to resolve the problem with the following
This problem is because changes to excel in the 2007
first try reinstalling the GUI components If it works with the reinstallation then its fine
if not try Installing FEP 900 (Latest patch for BEX Suite) and GUI 7.10 patch 13
this definitely solves your problem
Thank you -
CX_SY_NO_HANDLER Error While executing query in RSRT T-Code
Hi Experts,
I have created a data source extraction using function module.
Then i have created customer exit variable, dso, infocube and all....
my variable name is ZWBS_VAR and
query name is WBS_VAR.
while executing this query name I'm getting the exception CX_SY_NO_HANDLER.
If i use WBS_VAR instead of ZWBS_VAR in when condition.. it is not showing that error.
this is my code i have written in ZXRSRU01 include.
DATA:it_wbs_elemt TYPE STANDARD TABLE OF /bic/awbsdsogn00,
wa_wbs_elemt like line of it_wbs_elemt,
L_S_RANGE TYPE RSR_T_RANGESID with header line,
LOC_VAR_RANGE like line of i_T_VAR_RANGE,
ZLOW TYPE C,
LV_USER LIKE SY-UNAME,
lv_user1 LIKE /bic/awbsdsogn00-/BIC/WBSE.
CASE i_vnam.
*****************************Start of Code for 'ZWBS_VAR' variable******************************
when 'ZWBS_VAR'.
lv_user = sy-uname.
if lv_user CP '/BIC/WBSE'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_user
IMPORTING
output = lv_user1.
CLEAR wa_wbs_elemt.
SELECT * FROM /bic/awbsdsogn00 INTO TABLE it_wbs_elemt WHERE /BIC/WBSE = lv_user1.
READ TABLE it_wbs_elemt INTO wa_wbs_elemt WITH KEY /BIC/WBSE = lv_user1.
IF sy-subrc = 0.
l_s_range-low = wa_wbs_elemt-/BIC/WBSE.
l_s_range-sign = ' I '.
l_s_range-opt = ' EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
ENDCASE.
IF I_STEP = 3.
LOOP at i_t_var_range INTO loc_var_range WHERE vnam = 'ZWBS_VAR'.
CLEAR : l_s_range.
zlow = loc_var_range-low.
lv_user = sy-uname.
CALL FUNCTION 'CONVERSIOn_EXIT_ALPHA_OUTPUT'
EXPORTING
input = loc_var_range-low
IMPORTING
output = loc_var_range-low.
IF lv_user NE loc_var_range-low.
IF lv_user CP '/BIC/WBSE'.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'You are not authorized for the WBS ELEMENT'
I_MSGV2 = loc_var_range-low
I_MSGV3 = 'Enetr your valid WBS ELEMENT'
I_MSGV4 = lv_user
EXCEPTIONS
OTHERS = 02.
RAISE Again.
ELSE.
l_s_range-low = loc_var_range-low.
l_s_range-sign = loc_var_range-sign.
l_s_range-opt = loc_var_range-opt.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIf.
ENDLOOP.
ENDIF.
If you find any errors in this piece of code please let me know..
Thanks&Regads,
Sirisha.Hey think other way round .
Filtering the report with the partner(current user executing the report) will suffice your requirement .
Am I correct ?
If yes then follow this simple approach .
Create a variable(mandatory, not ready for input ) of type customer exit on partner infoobject and filter your report with this variable .
In this way the current user executing the report can see data only related to him .
Type the below code in cmod .
WHEN '(give your variable name).
DATA :lv_bp TYPE /bi0/oibpartner,
CHECK i_step EQ '1'.
lv_bp = sy-uname.
IF lv_bp IS NOT INITIAL.
lv_bp = ( sy-uname ) .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_bp
IMPORTING
output = lv_bp.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = lv_bp .
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range,lv_bp.
ENDIF.
If this approach is not flexible in ur case then let me know will change the code what u have written as I can see many errors in that .
Also I can figure it out that the whole code is ctrl c ctrl v of that sdn document but his requirement was quite different than yours . -
How to implement enter and execute query in ADF
I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help me / point me to how this can be implemented.
Thanks,
Srini.Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
Regards,
Srini.
Maybe you are looking for
-
I'd like to upgrade the hard drive on my x60s. I found the ThinkPad 250GB 5400 rpm Serial ATA Hard Drive through the "find compatable accessories for your computer" link on Lenovo's website. I've spent the past 45 minutes trying to find out whether
-
UnZip Paylaod....
HI All, I am doing on File -> File Scenario. My Source File is a ZIP File(contains .txt file with tab delimeter). I need to unzip the file and sent to the target system. Currently I developed the scenario using payloadZipBean. If the ZIP File contain
-
One Sender system (sync) and two receivers system(Sync) . Pls help
Hello All, For one Sender system (sync) and two receivers system(Sync) as I am using BPM for it. CRM sender system (RFC) DM (RFC) and ERP Receiver systems (RFC) Pls let me know In Receive there is only two mode 1. Async 2. Open S/A bridge So do i nee
-
I will sometimes refresh a webpage in safari and it presumably loads that page's cached version because the content is days old. Anyone else expieriencing this? I have an iPad 2, iOS5.01.
-
HP L7590 printer - paper not being picked up
We are a small company with a remote office that has a new L7590. It is connected to a wired network and has win2ks in Head Office managing the print queue. A paper jam occurs from the tray, and I am told the paper was extricated in several pieces, a