Query specific authorisations
Hi experts!
maybe anyone has an idea how to solve this problem:
query1: salesman only can view his customer related data with all KF´s
query2: salesman can view all customer data, but only some KF´s
How is it possible to make authorisations (rsecadmin) depending on queries? I tried it with 2 roles for the same user, but system takes boht rsecadmin-objects, when it checks authorisation.
Is there a way to check first which query is executed and then check authorisations for this query?
thanx for all ideas!
gunter
You may check these threads for further info:
Re: query manager
Query Group in Query Category different with Authorization's group number
Thanks,
Gordon
Similar Messages
-
Comments are query specific....
Dear Folks,
As i understand that Comments are query specific. You can't create a new query with the same reference characteristics to read the comments.
As per my business scenario i have to read Comments which are query specific.
What is did so far:- Created Input Ready Query where i created one column and named as a Justification which is required to displaying justification where I want the Justification to go . I Created web template by using Input ready query. Created Modification Document Content to enable Row Cell to insert Justification against Key figure. Now it is working fine. Once save justification particular cell then it is storing in Document in RSA1.
Now i wanted to display in another query by using reference same Justification Characteristic.. how do i do this.
Can you give views on this.
Thanks,
Venkat Vanarasi.
Edited by: vanarasi venkat on Dec 6, 2010 11:31 AMDear Balajee,
Yes, it is true...
Now i am able to insert more than 60 char length in input ready query. by using below actions in web template:
I created on column in input ready query and named as "Comment" . I used this query in web template and created "Modifications" by using DocumentContent" Module in Analysis Web Item. by using this functionality it is allowing More than 60 char length in input ready query.
If you closely observed what i did is Created one Column in Input Ready Query which is Query specific. This column data will hold in Documents area Data Warehousing Workbench instead of Planning Cube.
To display comments i have created another BI query & used it in Web template , here issues is calling Comments into BI Reporting area ( which is not Input ready query).
I hope you understand now....
Thanks,
Venkat Vanarasi. -
Hi,
I want to restrict areas in the query manager to certain users. How can I do this please?
Thanks,
vankriYou may check these threads for further info:
Re: query manager
Query Group in Query Category different with Authorization's group number
Thanks,
Gordon -
Bex Query - Specific calculation in query result
Hi experts!
I've received a requirement and I cannot find any way to delivery it using the stantard operation or configuration into Bex Query.
We have a query which have three KF with summarization in result. The new requirement is based in the KF "POND" to change the calculation in the result. Below are the actual result and the expected result.
The actual query result.
Line
OP
QTD
TMP
POND
A1
1614073
702
19
13338
Total A
702
19
13338
B1
1587949
840
235
197400
B2
1610938
4.240
28
118720
Total B
5.080
263
316120
Total A + B
5.782
282
329458
The expect result based on the new requerment
Linha
Ordem de Produção
QTD
TMP
POND
A1
1614073
702
19
13338
Total A
702
19
19
B1
1587949
840
235
197400
B2
1610938
4.240
28
118720
Total B
5.080
263
62
TOTAL A + B
5.782
282
57
Check out the "Total A" result for KF "POND", the new calculation is the sum of KF "POND" divided by the sum of KF "QTD" (13338 / 702 = 19)
The same to "Total B" result for KF "POND", the calculation is the sum of "POND" divided by sum of KF "QTD" ( (197400 + 118720) / (840 + 4240) = 62).
I've been using all recourses into Bex query, but I've haven't found any way to deliver this requirement, though.
I'd really appreciate if anyone could give me some suggestion to deliver this requirement.
Thank you.
César Sevilha.Hi Suman!
Thanks for your replay.
The collision options wont help me because I have calculation on the same structure.
I need to keep the division POND by QTD in the result. Check out the table below.
The Formula Bex Query (POND / QTD) is a simple division between KF POND by KF QTD, the result
is a totalization of lines A and B.
The requirement is to keep this division on the result. Check out the column Requirement, this is the result expected.
Line
OP
QTD
POND
Formula
Bex Query (POND / QTD)
Requirement
A1
1614073
702 KG
13.338 KG
19 KG
19 KG
Total A
Result
702 KG
13.338 KG
19 KG
19 KG
result (POND) divided by result (QTD)
B1
1587949
848 KG
197.400 KG
233 KG
233 KG
B2
1610938
4.318 KG
118.720 KG
27 KG
27 KG
Total B
Result
5.167 KG
316.120 KG
260 KG
61 KG
result (POND) divided by result (QTD)
Total A + B
Result
5.869 KG
329.458 KG
279 KG
56 KG
result (POND) divided by result (QTD)
I'd like to know how to keep the division in the result.
Example:
The result of Total B should be 61 kg which is the result of division between the result of KF POND (316.120) by the result of QTD (5167).The currently formula has as result the totalization of B1 and B2.
Thank you in advance.
César Sevilha. -
Query specific cell in csv file
Hello
I'm downloading a csv file daily. I need to extract a value that is in row 30 and 11th column.
I'f you open the csv in Excel it has headers for the columns and the specificis
Right now im using
<cfftp action = "getFile"
server = "#remoteFileLocation#"
port="21"
username="anonymous"
password=""
connection = "MyConn"
passive = "Yes"
localFile="D:\Inetpub\localFile.csv"
remoteFile="Future.csv"
failifexists="no">
Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput>
<cfftp action="close" connection="MyConn">
<h1>Populate cpr table - future.csv</h1>
<cfhttp url="http://www.website.com/future.csv"
method="GET"
name="qStockItems"
delimiter=","""
firstrowasheaders="yes"
columns="PRODUCT,CONTRACT_MONTH,CONTRACT_YEAR,CONTRACT_DAY,CONTRACT,PRODUCT_DESCRIPTION,OP EN,HIGH,HIGH_AB_INDICATOR,LOW,LOW_AB_INDICATOR,LAST,LAST_AB_INDICATOR,SETTLE,PT_CHG,EST_VO L,PRIOR_SETTLE,PRIOR_VOL,PRIOR_INT,TRADEDATE">
</cfhttp>
<cfloop query="qStockItems" startrow="30" endrow="30">
<!--- <cfloop from="1" to="40" index="i">--->
<cfquery datasource="wire" name="addrecord">
UPDATE cpr
SET PRODUCT = '#qStockItems.PRODUCT#',
CONTRACT_MONTH = #qStockItems.CONTRACT_MONTH#,
CONTRACT_YEAR = #qStockItems.CONTRACT_YEAR#,
SETTLE = #qStockItems.SETTLE#,
TRADEDATE = '#qStockItems.TRADEDATE#'
</cfquery>
<!--- </cfloop>--->
</cfloop>
<cfoutput>#qStockItems.tradedate#</cfoutput>
I'd like to retrieve the latest contract for copper, which is the first HG in column 1.
If anyone can please chime in on the best programing technique to get the cell that contains the first time HG is in column 1 and then the value of its 11th column.
Thanks for your input!
PRODUCT SYMBOL
CONTRACT MONTH
CONTRACT YEAR
CONTRACT DAY
CONTRACT
PRODUCT DESCRIPTION
OPEN
HIGH
HIGH AB INDICATOR
LOW
LOW AB INDICATOR
LAST
LAST AB INDICATOR
SETTLE
PT CHG
EST. VOL
PRIOR SETTLE
PRIOR VOL
PRIOR INT
TRADEDATE
GC
12
2012
GCZ12
Gold Futures
1719.6
1729
1717.7
1727.2
10.7
65295
1716.5
276136
35289
11/29/2012
GC
1
2013
GCF13
Gold Futures
1720.4
1729
1719.8
1728.3
10.6
633
1717.7
2607
1437
11/29/2012
GC
2
2013
GCG13
Gold Futures
1722.4
1731.2
1720.1
1727.1
1729.5
10.7
177804
1718.8
196208
272660
11/29/2012
GC
4
2013
GCJ13
Gold Futures
1724
1732.1
1723.2
1731.6
10.8
2004
1720.8
6042
29539
11/29/2012
GC
6
2013
GCM13
Gold Futures
1726.5
1734
1725.2
1733.7
10.8
2167
1722.9
2463
29132
11/29/2012
GC
8
2013
GCQ13
Gold Futures
1732.8
1735.8
1731.8
1735.6
10.8
284
1724.8
891
17333
11/29/2012
GC
10
2013
GCV13
Gold Futures
1730.2
1736.5
1730.2
1737.6
10.9
9
1726.7
56
9505
11/29/2012
GC
12
2013
GCZ13
Gold Futures
1733.5
1740.1
1733
1739.7
10.9
1337
1728.8
1614
19489
11/29/2012
GC
2
2014
GCG14
Gold Futures
1733.8
1742.3
1733.8
1742.1
10.9
23
1731.2
38
2502
11/29/2012
GC
4
2014
GCJ14
Gold Futures
1744.1
1744.3
1744.1
1744.5
10.9
67
1733.6
39
3438
11/29/2012
GC
6
2014
GCM14
Gold Futures
1747
10.9
139
1736.1
101
9119
11/29/2012
GC
8
2014
GCQ14
Gold Futures
1749.5
10.9
0
1738.6
84
11/29/2012
GC
10
2014
GCV14
Gold Futures
1752
0
0
11/29/2012
GC
12
2014
GCZ14
Gold Futures
1748.2
1754.7
1748.2
1754.5
10.8
162
1743.7
71
5274
11/29/2012
GC
6
2015
GCM15
Gold Futures
1762.8
10.7
70
1752.1
18
5747
11/29/2012
GC
12
2015
GCZ15
Gold Futures
1770
1770
1770
1771.3
10.4
706
1760.9
10
8606
11/29/2012
GC
6
2016
GCM16
Gold Futures
1780.3
10.3
0
1770
227
11/29/2012
GC
12
2016
GCZ16
Gold Futures
1789.7
10.2
0
1779.5
14
2221
11/29/2012
GC
6
2017
GCM17
Gold Futures
1803.2
8.9
100
1794.3
446
11/29/2012
GC
12
2017
GCZ17
Gold Futures
1819.3
8.9
0
1810.4
66
11/29/2012
GC
6
2018
GCM18
Gold Futures
1840.7
8.9
0
1831.8
15
11/29/2012
GCT
2
2013
GCTG13
Gold Tas Futures
0
0.1
-0.1
0
UNCH
490
0
11/29/2012
GVF
2
2013
GVFG13
Gold Volatility Index (vix) Futures
14
-0.43
0
14.43
11/29/2012
GVF
4
2013
GVFJ13
Gold Volatility Index (vix) Futures
15.53
-0.37
0
15.9
11/29/2012
GVF
6
2013
GVFM13
Gold Volatility Index (vix) Futures
16.57
-0.33
0
16.9
11/29/2012
GVF
8
2013
GVFQ13
Gold Volatility Index (vix) Futures
17.72
-0.29
0
18.01
11/29/2012
GVF
10
2013
GVFV13
Gold Volatility Index (vix) Futures
18.25
-0.42
0
18.67
11/29/2012
GVF
12
2013
GVFZ13
Gold Volatility Index (vix) Futures
19.29
-0.2
0
19.49
11/29/2012
HG
12
2012
HGZ12
Copper Futures
3.5285
3.606
3.524
3.5885
0.064
15535
3.5245
45023
12399
11/29/2012
HG
1
2013
HGF13
Copper Futures
3.5355
3.6125
3.5355
3.598
0.0665
1001
3.5315
449
2338
11/29/2012
HG
2
2013
HGG13
Copper Futures
3.555
3.617
3.555
3.6015
0.067
382
3.5345
284
1253
11/29/2012
HG
3
2013
HGH13
Copper Futures
3.5425
3.622
3.5375
3.62
3.6055
0.068
63145
3.5375
33116
93576
11/29/2012
HG
4
2013
HGJ13
Copper Futures
3.5665
3.6265
3.5665
3.6105
0.068
26
3.5425
28
645
11/29/2012
HG
5
2013
HGK13
Copper Futures
3.5465
3.6295
3.5465
3.6135
0.068
1808
3.5455
1069
12823
11/29/2012
HG
6
2013
HGM13
Copper Futures
3.6
3.6
3.6
3.6175
0.068
11
3.5495
16
495
11/29/2012
HG
7
2013
HGN13
Copper Futures
3.5585
3.6365
3.5585
3.6205
0.068
832
3.5525
173
5990
11/29/2012
HG
8
2013
HGQ13
Copper Futures
3.623
0.0675
4
3.5555
5
467
11/29/2012
HG
9
2013
HGU13
Copper Futures
3.61
3.637
3.61
3.625
0.0675
445
3.5575
43
3324
11/29/2012
HG
10
2013
HGV13
Copper Futures
3.627
0.0675
0
3.5595
5
498
11/29/2012
HG
11
2013
HGX13
Copper Futures
3.629
0.0675
0
3.5615
13
474
11/29/2012
HG
12
2013
HGZ13
Copper Futures
3.6405
3.6405
3.63
3.63
3.6305
0.0675
84
3.563
40
4244
11/29/2012
HG
1
2014
HGF14
Copper Futures
3.6325
0.0675
0
3.565
279
11/29/2012
HG
2
2014
HGG14
Copper Futures
3.634
0.0675
0
3.5665
32
11/29/2012
HG
3
2014
HGH14
Copper Futures
3.635
0.0675
1
3.5675
3
91
11/29/2012
HG
4
2014
HGJ14
Copper Futures
3.6355
0.0675
0
3.568
11/29/2012
HG
5
2014
HGK14
Copper Futures
3.636
0.0675
0
3.5685
11/29/2012
HG
6
2014
HGM14
Copper Futures
3.6345
0.0675
0
3.567
11/29/2012Thanks for the reply Dan
The problem is the HG for the current month can be on either the 30th row.. 31st row... i dont know the row number for the current month.. but I do know it will be the first time HG is in column 1
Thanks -
How can i restrict the query specific to the user??
Hi all,
I have a query used by multi users; I wanted to restrict the users how can I do that??
Regards
Kiran KumarHi,
check this links
http://sap.ittoolbox.com/groups/technical-functional/sap-bw/restrict-query-to-user-1453172
Restrict Query on the logged User
regards,
shikha -
User specific authorisation for VA01/VA02/VA03 transaction
Hi Friends,
I have specific requirement i.e for eg Sales order created by one user id say X should not be viewd by other user id Y and only user Id X can change his Sales order and vice versa.
Is there any standard solution for this requirement. Please let me know your valuable feed back.
Regards
JPHi,
Ask your basis consultant to resrict user wise authorization for that transaction codes
We can restrict user wise for it.
Give both user ids and transaction codes to your basis person and try for it.
Regards
Kiran -
Automatic generate specification of Bex query
Dear Experts
Does anybody know how to generate a document which include the all of Bex query specific informatin, for example: structure, filter, what's the detailed line under the structure, and what's detailed infoObject restrain under the line, etc
in the metadata repository, I can not get such detailed information.
thanks in advancehi Jie,
try to activate trace (ST05) before change the query structure, filter etc, and deactivate after that, and 'display trace' and explore the query tables got from trace list like
RSZELTXREF (field LAYTP = FIX is for filter)
RSZELTDIR (field DEFTP = STR for structure)
RSZSELECT RSZRANGE RSZCALC
RSZCEL RSZELTPRIO RSZELTTXT
RSZELTATTR RSZCOMPDIR
hope this helps. -
Accessing documents specific to a query
Hi All,
I have comments entered in a query specific to each row (characteristics).
For example in query1, I have comments entered which are specific to characteristics A and B.
In query2, for characteristics A and B I need to access the comments from query1.
Can this be possible? I can see the comments stored in RSA1-->Documents specific to the query1 and characteristics A & B.
Are there any tables or fucntion modules to access these comments?
Thanks in advance!
Sonali.Dear Sonali,
If you want to have documents only for characteristic A or B you can use 'master data documents'. They will be visible in both queries. Apart from that if a document is defined on a specific query you won't be able to see this document in another query. If both queries are build on the same data provider you can change the documents to both refer to this data provider not to a specific query. The documents will then be visible in both queries.
Best regards,
Janine -
Need customized query on updateable report (tabular form)
I have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
The function works beautifully on a page type of Report.
However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
Thanks,
CarolI have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
The function works beautifully on a page type of Report.
However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
Thanks,
Carol -
Region source (PL/SQL function body returning SQL query)
Hi, guys.
Here is what i try to do:
Create a region of type SQL Query (PL/SQL function body returning SQL query). In the source area i tried to put this:
DECLARE
v_new VARCHAR2(10);
v_SQL varchar2(32000);
BEGIN
v_new := :P102_HDN_NEW;
-- htp.p(v_new);
IF v_new = 'N-Set' THEN
v_SQL := 'select ' ||
ELSIF v_new = 'Y-Set' THEN
v_SQL := 'select ' ||
END IF;
RETURN v_SQL;
END;
And here is the reply from APEX:
1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. The query can not be parsed, the cursor is not yet open or a function returning a SQL query returned without a value.
Now.
1. Variable is set with the right value.
2. Each statement (separately) returns SQL that works with no problems
3. Problem occures if i try to put IF statement around the SQL creation.
4. If i select "Use Generic Column Names (parse query at runtime only)" instead of "Use Query-Specific Column Names and Validate Query" then the script returns SQL properly, however report's column names are set to Col1, Col2,Col3 ......
Thnks in advence
MikeOK. Here is enire statement:
DECLARE
v_new VARCHAR2(10);
v_SQL varchar2(32000);
BEGIN
v_new := :P102_HDN_NEW;
htp.p(v_new);
IF v_new = 'N-Set' THEN
v_SQL := 'select ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(10,c.sdescr) descr, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(12,DECODE(ld.level,''All'', ''All Categories'',ld.level)) level, ' ||
'apex_item.checkbox(1, ld.opt_in_auto_flag, decode(ld.opt_in_auto_flag,NULL,''disabled'',''Y'',''checked'')) auto_in, ' ||
'apex_item.checkbox(2, ld.opt_in_manual_flag, decode(ld.opt_in_manual_flag,NULL,''disabled'',''Y'',''checked'')) manual_in, ' ||
'apex_item.checkbox(3, ld.opt_out_auto_flag, decode(ld.opt_out_auto_flag,NULL,''disabled'',''Y'',''checked'')) auto_out, ' ||
'apex_item.checkbox(4, ld.opt_out_manual_flag, decode(ld.opt_out_manual_flag,NULL,''disabled'',''Y'',''checked'')) manual_out, ' ||
'DECODE(c.code, ''NMBR'', NULL,''Change to '' || DECODE(ld.level,''All'',''Categories'',''All Categories'')) link_change, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(11,c.code) code ' ||
'from ' ||
'tbl1 c, ' ||
'tbl2 ld ' ||
'where c.code = ld.code ' ||
'and c.type = ''TYPE1'' ' ||
'and c.active = ''Y'' ' ||
'order by c.sorting ';
ELSIF v_new = 'Y-Set' THEN
v_SQL := 'select ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(10,c.sdescr) descr, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(12,''All Categories'') level, ' ||
'apex_item.checkbox(1, c.option_1, decode(c.option_1,NULL,''disabled'',''Y'',''checked'')) auto_in, ' ||
'apex_item.checkbox(2, c.option_3, decode(c.option_3,NULL,''disabled'',''Y'',''checked'')) manual_in, ' ||
'apex_item.checkbox(3, c.option_2, decode(c.option_2,NULL,''disabled'',''Y'',''checked'')) auto_out, ' ||
'apex_item.checkbox(4, c.option_4, decode(c.option_4,NULL,''disabled'',''Y'',''checked'')) manual_out, ' ||
'DECODE(c.code, ''AAA'', NULL,''Options by AAA'') link_change, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(11,c.code) code ' ||
'from ' ||
'tbl1 c ' ||
'where 1 = 1 ' ||
'and c.type = ''TYPE1'' ' ||
'and c.active = ''Y'' ' ||
'order by c.sorting ';
END IF;
RETURN v_SQL;
END;
If i put just this
DECLARE
v_new VARCHAR2(10);
v_SQL varchar2(32000);
BEGIN
v_new := :P102_HDN_NEW;
htp.p(v_new);
v_SQL := 'select ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(10,c.sdescr) descr, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(12,DECODE(ld.level,''All'', ''All Categories'',ld.level)) level, ' ||
'apex_item.checkbox(1, ld.opt_in_auto_flag, decode(ld.opt_in_auto_flag,NULL,''disabled'',''Y'',''checked'')) auto_in, ' ||
'apex_item.checkbox(2, ld.opt_in_manual_flag, decode(ld.opt_in_manual_flag,NULL,''disabled'',''Y'',''checked'')) manual_in, ' ||
'apex_item.checkbox(3, ld.opt_out_auto_flag, decode(ld.opt_out_auto_flag,NULL,''disabled'',''Y'',''checked'')) auto_out, ' ||
'apex_item.checkbox(4, ld.opt_out_manual_flag, decode(ld.opt_out_manual_flag,NULL,''disabled'',''Y'',''checked'')) manual_out, ' ||
'DECODE(c.code, ''NMBR'', NULL,''Change to '' || DECODE(ld.level,''All'',''Categories'',''All Categories'')) link_change, ' ||
'APEX_ITEM.DISPLAY_AND_SAVE(11,c.code) code ' ||
'from ' ||
'tbl1 c, ' ||
'tbl2 ld ' ||
'where c.code = ld.code ' ||
'and c.type = ''TYPE1'' ' ||
'and c.active = ''Y'' ' ||
'order by c.sorting ';
RETURN v_SQL;
END;
it works fune... -
Error while creating query in Adhoc report
Hi Experts,
when i am creating query using tables bseg,bkpf and kna1(logical database BRF) and vbrk,i am getting error as "query Specifications cannot be used to generate list" in SQ01.I linked BRF logical database with vbrk by using condition vbrk-vbeln = bkpf-awkey.
is my condition is wrong in linking VBRK to BRF logical database.please guide me how to solve this.
If my joining is wrong means why i didnt get error in SQ02.??
Required fields are:Invoice number(vbrk),invoice category(vbrk),invoice date(vbrk),account document number(bkpf),company code(bkpf),G/L account(bseg),currency(bseg),state(kna1),invoice amount(vbrk).
Do i picked fields from wrong tables?/
Thanks&Regards,
narasimha.can somebody help on this
Regards,
narasimha -
InfoSet Query: Syntax Error while generating the program.
Dear All,
I have a Query in CRM system which contains an Infoset based on LDB.
The InfoSet Query throws up a Syntax error while generating the program.
So, we are not able to change the Infoset using the Infoset Query through SQ01.
The error is as follows:-
Syntax error in program "AQZZ==/SAPQUERY/CRM_ACTMON1 ".
Error in the ABAP Application Program
The current ABAP program "CL_QUERY_OUTPUT_DEFINITION====CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "AQZZ==/SAPQUERY/CRM_ACTMON1 "
in include "AQZZ==/SAPQUERY/CRM_ACTMON1 " in
line 28:
""CRMT_REPORT_LOCATORLIST" must be a flat structure. You cannot use int"
"ernal tables, strings, references, or structures as components. -"
Please help me arrive at an solution, so that we are able to change the Infoset through the InfoSet Query.
Awaiting your reply as soon as possible.
Thanks and Regards,
Pankaj.There is an error in your query, specifically in the definition of CRMT_REPORT_LOCATORLIST. In the short dump (transaction ST22) you will see more details and the exact location of an error if you just scroll down.
I can't tell more because this problem is specific to your system, to which I have no access. Read the whole dump and look at all the objects mentioned there. -
How to calculate the area of a large number of polygons in a single query
Hi forum
Is it possible to calculate the area of a large number of polygons in a single query using a combination of SDO_AGGR_UNION and SDO_AREA? So far, I have tried doing something similar to this:
select sdo_geom.sdo_area((
select sdo_aggr_union ( sdoaggrtype(mg.geoloc, 0.005))
from mapv_gravsted_00182 mg
where mg.dblink = 521 or mg.dblink = 94 or mg.dblink = 38 <many many more....>),
0.0005) calc_area from dualThe table MAPV_GRAVSTED_00182 contains 2 fields - geoloc (SDO_GEOMETRY) and dblink (Id field) needed for querying specific polygons.
As far as I can see, I need to first somehow get a single SDO_GEOMETRY object and use this as input for the SDO_AREA function. But I'm not 100% sure, that I'm doing this the right way. This query is very inefficient, and sometimes fails with strange errors like "No more data to read from socket" when executed from SQL Developer. I even tried with the latest JDBC driver from Oracle without much difference.
Would a better approach be to write some kind of stored procedure, that adds up all the single geometries by adding each call to SDO_AREA on each single geometry object - or what is the best approach?
Any advice would be appreciated.
Thanks in advance,
JacobHi
I am now trying to update all my spatial table with SRID's. To do this, I try to drop the spatial index first to recreate it after the update. But for a lot of tables I can't drop the spatial index. Whenever I try to DROP INDEX <spatial index name>, I get this error - anyone know what this means?
Thanks,
Jacob
Error starting at line 2 in command:
drop index BSSYS.STIER_00182_SX
Error report:
SQL Error: ORA-29856: error occurred in the execution of ODCIINDEXDROP routine
ORA-13249: Error in Spatial index: cannot drop sequence BSSYS.MDRS_1424B$
ORA-13249: Stmt-Execute Failure: DROP SEQUENCE BSSYS.MDRS_1424B$
ORA-29400: data cartridge error
ORA-02289: sequence does not exist
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 27
29856. 00000 - "error occurred in the execution of ODCIINDEXDROP routine"
*Cause: Failed to successfully execute the ODCIIndexDrop routine.
*Action: Check to see if the routine has been coded correctly.
Edit - just found the answer for this in MetaLink note 241003.1. Apparently there is some internal problem when dropping spatial indexes, some objects gets dropped that shouldn't be. Solution is to manually create the sequence it complains it can't drop, then it works... Weird error. -
Hi guys,
I'm trying to logical database MSM to report on material master but for some reason the following message appears:
The query specifications cannot be used to generate a list,
i.e. the query will probably not return the list you desire.
If you still want to execute the query, please use the
"Generate" function.
Errors are like this :
Fields from parallel tables within a line
Line: 01
Field: Post to Inspection Stock
(MARCV-INSMK, table MARCV)
Field: Item category group from material master
(MVKE-MTPOS, table MVKE)
Any idea what is the reason why this happens?
Thanks and regards
Stefan
Edited by: Stefan Tzandev on Sep 15, 2008 1:44 PMHey Stefan,
I know this is a long shot, but were you able to figure it out. I am having the same problem as we speak. I tried rearanging the fields according to the heirchy, it now works, but has a really bad output. Hope to hear from you.
Best Regards,
Matthew Ong
Maybe you are looking for
-
About Bleed and Save to .pdf
I am having a go at a business card and a letterhead which is a spin off from designing a logo for a web site. I felt sorry for the web site owner and just said, "I'll do that." Having never produced stuff for print before I have read a bit about it
-
.Max Files in After Effects
We are trying to create a movie with a roving drone. The movie is being created in FCP; and edited in after effects. Beacause we are only doing this for a school project we do not want to pay for any models. My question: Are we able to import .MAX, .
-
Our cell phones causes Firefox not to load on my laptop.
When my friend came in with his cell phone, Firefox could not load any other page. The internet was working. Some type of file must have been sent to the cell phones to cause this. My phone creates the same problem. I remove the battery from the phon
-
Since I upgraded to OS X 10.8 my Canon MP480 printer scanner prints OK but the Solutions Menu icon for scanning is crashing every time I try to scan. Any solutions?
-
KT3 Ultra 2 with Inno3d NVIDIA Geforce2 mx400 problems
Having multiple problems playing games. Get this in event viewer (below) or the application will crash or get DSOD. STOP 0x0A, 0x01E, and 0x50 Errors. (IRQ_NOT_LESS_OR_EQUAL) Event Type: Error Event Source: nv Event Category: None Event ID: 8