Standard Query Issue.
Hi All,
In Query Definition, for a query "Browse Product Category Tree view", when im trying to duplicate the query and save it then its throwing an error as :
"The Java execution type is not allowed in a custom query."
But we have a requirement to edit this query and on execution show the results directly instead of clicking on show button as the original query shows.
in help.sap documentation they say "Query Executor Class" field in query is available for standard queries only.
Can anyone throw some light on how to proceed for the requirement.
Any help would be appreciated.!
Thanks!
Hi Vikram,
We have a similar requirement now, where the query "Scorecard Report" is a java query, but we want to make changes in this query. We want to add new fields and remove few existing fields from it.
Can u pls help us with this?.
Thanks,
Shikha
Similar Messages
-
"Expiring Agreements" Standard Query Issue
Hi All,
I m getting an issue regarding "Expiring Agreements" Standard Query.
It should show all the master agreements and contracts.But if I have attached a subagreement to the masteragreement, then I m getting the following issue:
1. Master agreement link is deactivated and subagreement link is activated.
2. If subagreement link is not attached, then Master Agreement link is activated.
Can any one help me in solving this issue.
Any help will be appreciated.
Thanks & Regards,
VigneshHi Vignesh,
The behavior you explained is the standard behavior for all out of the box MA related queries. If you would like to alter the behavior of the standard query, create a custom query by duplicating the standard one and modify the SQL.
Regards,
Vikram -
HI Anyone can help me to have the correct ANSI Standard Query for the following
SELECT * FROM AFFILIATED_PERSON ap WHERE EXISTS (
SELECT 'x' FROM VB_HOUSEHOLD_MEMBERSHIP VBHM, VE_HOUSEHOLD_ORG_AFFIL VEHOAF
WHERE VEHOAF.family_household_id = vbhm.family_household_id
AND vehoaf.primary_type= 'ASGNLOCCAR'
AND vbhm.affiliated_person_id = ap.AFFILIATED_PERSON_ID )
AND EXISTS (
SELECT 'x' FROM VB_PERSON_ORG_ASSIGNMENT vbpoas, VB_PERSON_ORG_AFFILIATION vbpoaf
WHERE vbpoas.person_org_affil_id = vbpoaf.person_org_affil_id
AND vbpoaf.affiliated_person_id = ap.AFFILIATED_PERSON_ID)
ORDER BY ap.AFFILIATED_PERSON_ID
Thanks in advance
nattuhey,
a. to me it seeems o.k.
b. trust no one :)
c. you can use: (from 10g sql reference)
FLAGGER
Syntax:
FLAGGER = { ENTRY | INTERMEDIATE | FULL | OFF }
The FLAGGER parameter specifies FIPS flagging, which causes an error message to be
generated when a SQL statement issued is an extension of ANSI SQL92. FLAGGER is a
session parameter only, not an initialization parameter.
In Oracle Database, there is currently no difference between entry, intermediate, or full
level flagging. After flagging is set in a session, a subsequent ALTER SESSION SET
FLAGGER statement will work, but generates the message, ORA-00097. This allows
FIPS flagging to be altered without disconnecting the session. OFF turns off flagging.
e.g.
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> alter session set flagger=full;
Session altered.
SQL> select * from dual where dummy ='X';
select * from dual where dummy ='X'
ERROR at line 1:
ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
ORA-06550: line 2, column 32:
PLS-01454: No operator may be used with values of data type CHAR
SQL> alter session set flagger=off;
ERROR:
ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
Session altered.
SQL> select * from dual where dummy ='X';
D
X
SQL>
Amiel Davis
Message was edited by:
Amiel D. -
How to change the standard query "Create a Master Agreement" by a custom one
Hello Sourcing CLM experts,
I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
Create a new query as a copy of exsiting query FCI-ContractTypes
Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
Following you can see the change done into the query group FCI-ContractTypesBP:
However, standard query has not been replaced and same set of MA Types are listed.
Therefore, I would like to ask you:
Is it possible to do this kind of modifications? If so, which query group need to be modified?
If it is not possible, is there any other way to achieve that requirement?
Thanks in advance for your time and support!
Best regards,
IsaacHello again experts,
If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
Any ideas?
Thanks again and best regards,
Isaac -
Dataset query issues twice if the dataset is connected to matrix and used in multilookup function
hello everybody.
could not find any information if this is an intended behavior:
dataset query issues twice if the dataset is connected to matrix and used in multilookup function
parameters in both queries are the same
ssrs: 2008 r2, sharepoint 2010 integrated
sharepoint 2010: september 2014 cu
thanks in advance
Sergey VdovinHello, Wendy.
I prepared a very empty sample report for you to demonstrate the problem - with this report, i hope, there is no place to discuss the shrinking of time data retrieval.
There is one dataset, one parameter and one lookup function. The query is executed twice.
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="DataSource1">
<DataSourceReference>http://t005/ProjectBICenter/DocLib/IntegrationDBVdovin.rsds</DataSourceReference>
<rd:SecurityType>None</rd:SecurityType>
<rd:DataSourceID>7e554344-d6c2-48a5-a7f4-1d24608cb4b5</rd:DataSourceID>
</DataSource>
</DataSources>
<DataSets>
<DataSet Name="DataSet1">
<Query>
<DataSourceName>DataSource1</DataSourceName>
<CommandText>select 1 as temp, '$' as tempname</CommandText>
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
</Query>
<Fields>
<Field Name="temp">
<DataField>temp</DataField>
<rd:TypeName>System.Int32</rd:TypeName>
</Field>
<Field Name="tempname">
<DataField>tempname</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
</DataSet>
</DataSets>
<ReportSections>
<ReportSection>
<Body>
<ReportItems>
<Textbox Name="ReportTitle">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Lookup(1,Fields!temp.Value,Fields!tempname.Value,"DataSet1")</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>20pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
<rd:DefaultName>ReportTitle</rd:DefaultName>
<Top>0mm</Top>
<Height>10.16mm</Height>
<Width>139.7mm</Width>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</ReportItems>
<Height>57.15mm</Height>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Body>
<Width>152.4mm</Width>
<Page>
<PageFooter>
<Height>11.43mm</Height>
<PrintOnFirstPage>true</PrintOnFirstPage>
<PrintOnLastPage>true</PrintOnLastPage>
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</PageFooter>
<PageHeight>29.7cm</PageHeight>
<PageWidth>21cm</PageWidth>
<LeftMargin>2cm</LeftMargin>
<RightMargin>2cm</RightMargin>
<TopMargin>2cm</TopMargin>
<BottomMargin>2cm</BottomMargin>
<ColumnSpacing>0.13cm</ColumnSpacing>
<Style />
</Page>
</ReportSection>
</ReportSections>
<ReportParameters>
<ReportParameter Name="ReportParameter1">
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>1</Value>
</Values>
</DefaultValue>
<Prompt>ReportParameter1</Prompt>
<ValidValues>
<DataSetReference>
<DataSetName>DataSet1</DataSetName>
<ValueField>temp</ValueField>
<LabelField>tempname</LabelField>
</DataSetReference>
</ValidValues>
</ReportParameter>
</ReportParameters>
<rd:ReportUnitType>Mm</rd:ReportUnitType>
<rd:ReportServerUrl>http://t005/ProjectBICenter</rd:ReportServerUrl>
<rd:ReportID>cd1262ef-eca7-4739-a2ce-d3ca832d5cd6</rd:ReportID>
</Report>
Sergey Vdovin -
Hi All,
I have created a web query and assigned it to a role. I have moved the role, web templete and the query from dev to QA was able run the query fine without issues.
The problem I am having is when I make changes to the query and transport it to QA...when I run the query from the role menu it still shows the old query instead of the changed query.
Can someone please explain what are the steps I need to take when I make changes to exsisting web query in dev and move to QA and be able to see the changes. What are all the objects I need to collect. Also would like to know if there are any settings on the role menu or web templete that need to be changed and also any buffers that I need to cleared??
Any help is appriciated and will give max points.
ThanksBWdesi,
please avoid reposts - it could be that due to network issues the post got posted twice... close one of them as answered and then proceed with the other one...
Web Query issues
Arun -
I had query issue on planning layout
Sold mat price qty amount
100 3 5 5 25 layout 1
100 4 10 5 50 layout2
when I should removed material cal has to come like this
100 15 10 75
but I getting value like
100 15 10 150
can u plz tell me how to slove this
regards
rajuDear Raju,
In the query, for the Calculated Key Figure (Amount)
Select properties, enhanced and change to:
"BEFORE AGGREGATION"
It seems to be doing after aggregation, which is default.
it is aggregating:
price = 5+10 = 15
qty = 5+5 = 10
Amount = 15 * 10 = 150
Good luck, BB -
Can we duplicate standard query Search Master Agreements and Agreements.
Hi Experts,
I have a requirement to hide Agreement Manager and Business Unit & Region result fields in standard Search Master Agreements and Agreements query.
I have duplicated this standard query and deleted Agreement Manager and Business Unit & Region result fields. Try to run this query but it is giving error.
Execution Type is Java.
Query Executor Class: com.sap.eso.contracts.query.SearchAllMAandAgreements
Error: SQL Exception: Fail to convert to internal representation, ANSI-92 SQL State: 99999, Vendor Error Code: 17059. Fail to convert to internal
representation.
Does anyone have idea about this functionality or how this standard query can be modified.
Thanks,
LavaHi Lava,
There is the Standard Query ODP-ESO-MasterAgreementList
Duplicate the query and remove the fields from the Result fields whcih you dont want. I think you will get the result required.
Thanks
Kushagra A -
For Container Freight payment can be downloaded through a standard query.
for Container Freight payment can be downloaded through a standard query.
Regards
Maheshhello, friend.
are you using LE-Transportation? if yes, there are some helpful t-codes such as VI11 and VI12. you may also use t-code SQVI for queries, but you would have to know what tables to look for.
hope this helped even if a bit. reward, even a little if yes.
thanks and regards.
jty -
Physical query issued by Obiee when cache is on is different and slow
When the same report runs in OBIEE 10g and cache is OFF it takes less then 1min to get results. If cache is turned ON physical query issued by Obiee is totally different and it takes 2h to get results. Has anyone experienced this with having cache on that some queries are performing poorly.
Thanks,
TatjanaWe are using BI Apps Order Management and Fulfillment Analytics and all tables are cached anyway. Dimensions used are not that huge up to 40K rows. What should I check when it comes to DB query? As I said is different than one generated when cache is disabled although both have the almost the explain plan.
-
Af:query issues within a taskflow
JDev: 11.1.2.1
I've created a simple fusion app, using the HR countries and department tables. The ViewController contains a home page and a taskflow.
The taskflow accepts a 'SearchBy' parameter, and I have a router (default) which then redirects the user to one of two pages, based on that parameter.
<case id="__1">
<expression>#{pageFlowScope.SearchBy eq 'countries'}</expression>
<outcome>countries</outcome>
</case>
<case id="__2">
<expression>#{pageFlowScope.SearchBy eq 'depts'}</expression>
<outcome>depts</outcome>
</case>
The two pages "CountriesQueryPage" and "DeptsQueryPage" contain nothing more than a standard af:query (with table) based on the named criteria "All Queriable Attributes" for respective views.
The Home page contains the taskflow above as a region, and a couple of links, which set a #{requestScope.SearchBy} parameter. The taskflow binding was changed to Refresh 'ifNeeded'.
<af:panelHeader text="panelHeader 1" id="ph1">
<f:facet name="context"/>
<f:facet name="menuBar"/>
<f:facet name="toolbar">
<af:group id="g1">
<af:commandLink text="Countries" id="cl1" partialSubmit="true">
<af:setPropertyListener from="#{'countries'}" to="#{requestScope.SearchBy}"
type="action"/>
</af:commandLink>
<af:spacer width="10" height="10" id="s1"/>
<af:commandLink text="Depts" id="cl2" partialSubmit="true">
<af:setPropertyListener from="#{'depts'}" to="#{requestScope.SearchBy}"
type="action"/>
</af:commandLink>
</af:group>
</f:facet>
<f:facet name="legend"/>
<f:facet name="info"/>
<af:region value="#{bindings.tf11.regionModel}" id="r1" partialTriggers="::cl1 ::cl2"/>
</af:panelHeader>
When I run this, the default "countries" page is displayed in the region. The af:query functions perfectly. When I click the link to the Depts page, the region refreshes as expected, but when the query table is rendered an error is thrown "Content failed to load.... data transmission was interrupted. Checking the log, I'm getting....
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.lang.IllegalStateException: Could not find component to stream
<FaceletViewHandlingStrategy> <handleRenderException> Error Rendering View[Home]
java.lang.IllegalStateException: Could not find component to stream
Couldn't find much online about this error message.
The only way I've been able to stop the issue is to remove the af:table on the depts query page.
I also tried using a dynamic region to get the above functionality (dividing each query page into it's own taskflow and removing the router) and got exactly the same issue.
Any ideas?
Thanks
Edited by: drb on Nov 24, 2011 6:31 PMJust in case anyone else has this issue -:
It turns out that the fault was using RequestScope parameters within the af:setPropertyListener. Once I changed this to a longer scope, pageFlowScope for example, the issue was resolved. -
Adhoc Query Issue - How to restrict /SAPQUERY/H2 access
Hi Experts,
I have created two User Groups HR_1 (assigned to infosets for Time data) and HR_2 (assigned to Infosets for Payroll data). Also, I want to assign the HR_1 to a user Time_admin and HR_2 to Payroll_Admin, so that Payroll admin do not have access to Time data and vice versa.
Now I can restrict the access but when I execute the Adhoc query for the user, I can see the User group that I have assigned with a default user
group /SAPQUERY/H2, which has access to all data.
My question is, how can I restrict the access for the /SAPQUERY/H2 for the users so that the users have only access to their user groups i.e.,
Time_admin to HR_1 only and Payroll_admin to HR_2 only.
Regards
VikrantI was expecting some Answer but was unfortunate enough.
I have found a solution and will mention it for those who face this issue in future.
Configuration in “The Global Area (Cross Client)”, has some limitations
1) 1) Restricting the access via T-Code S_PH0_48000510 (Ad-hoc Query) is difficult as this t-code S_PH0_48000510 uses the user group /SAPQUERY/H2 to which an Infoset is assigned /SAPQUERY/HR_ADM. This infoset has access to all the master data and is standard one (default).
2) Also, this is available in “The Global Area (Cross Client)”, due to which there will be access to all HR master data.
Configuration in “Standard Area, i.e., Client Specific”
1) With this approach, we will do the same configurations in “Standard Area (Client Specific)” i.e.,
I. Create User groups (ZHR_1 and ZHR_2)
II. Create Infosets (X1 for time management Infotypes and X2 for PM and PA Infotypes)
III. Assign User Groups to Infosets (X1 to ZHR_1 and X2 to ZHR_2)
IV. Assign Users to User Groups (As per the requirement)
2) Additionally, Admin need to do two things
I. For the Users Set Parameters via SU3 as:
Parameters for Users for Time Data
Parameter ID
Parameter Value
Description
AQB
ZHR_1
ABAP Query: User group
AQS
X1
SAP Query: Infoset
AQW
Standard
ABAP Query: Query area
Parameters for Users for OM/PA data
Parameter ID
Parameter Value
Description
AQB
ZHR_2
ABAP Query: User group
AQS
X2
SAP Query: Infoset
AQW
Standard
ABAP Query: Query area
II. Provide access to T-Code S_PH0_48000513 (also calls Adhoc Query but this t-code will respect the parameters set by us in SU3).
III. As a result of this approach, the Users on executing the T-Code S_PH0_48000513 will be directly moved to the Adhoc query screen with their authorized access.
NOTE:
these changes cannot be transported via Transport.
Regards,
Vikrant -
I am attempting to connect to a Progress database using JDBC and am having a few issues with my SQL statement. The code concerned looks like this:
// Get a statement from the connection
Statement stmt = conn.createStatement() ;
// Execute the query
ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust" ) ;
// Loop through the result set
while( rs.next() )
System.out.println( rs.getString( "cust-code" ) ) ;
That works just fine. Prints out each of the cust-code values. My issue comes when I try to refine the query to be:
ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE cust.Cust-code='100001-0'" ) ;
or even
ResultSet rs = stmt.executeQuery( "SELECT Cust-code FROM pub.cust" ) ;
Both of these give me an error saying Column not found/specified.
if I wrap Cust-code in single quotes, the script prints Cust-code on each line, not the value for it. If I escape Cust-code like Cust\-code, I get an Illegal escape character. Any ideas?I have never used Progress, but maybe you have to fully qualify the field names like this:
ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE pub.cust.Cust-code='100001-0'" ) ;
ResultSet rs = stmt.executeQuery( "SELECT pub.cust.Cust-code FROM pub.cust" ) ;Just a thought. -
Help needed in resolving query issue
Hello all,
Would appreciate any help on the following issue.
Our process has a stored procedure, which used to take 6 mins to run.
We are not sure what changed at what level, but now the query goes on forever( till database shuts down or we kill it), and never returns any result. Also, this is not consistent at all times. Sometimes(!!), it brings back results in expected time.
Apparently nothing changed in the database.
We checked and the query where it gets stuck is as follows:
select a.x,
b.y,
c,z
from a,b,c where
b.header_id =a.header_id and c.property_id =a.property_id(+) and b.status_id in (1,0) and a.date(+)>c.date;
It does not give any error or any mesg, when it reaches this query, and just hangs in there( Mind this was a working query since last 2 months)
We are at a total loss at the inconsistent behaviour of this.
Any help or advise would be greatly appreciated
Thanks
AparajitaI recommend you to post this as well here:
Forums Home » Oracle Technology Network (OTN) » Products » Database » SQL and PL/SQL
Discussion of Oracle SQL and PL/SQL issues
PL/SQL
Joel Pérez -
Acrobat 9 Standard Image Issues using Word 2007
Hi,
I have just purchased and installed Acrobat 9 Standard on an XP Pro machine with Office 2007.
Using the Acrobat add in (PDFMaker?) I am having issues with images (specifically graphs), they are coming out with the text upside down and no graph data inside the axis.
I have tried using Distiller by saving to file as a PS and then opening and converting in Distiller which produces the graphs fine but doesnt add bookmarks - manually adding the bookmarks is not an option.
I would be happy with a solution using either of the adobe technologies.
Thanks,
AdrianUnfortunately that isn't really possible, the data is sensitive. I can try and explain it better though....
Here is an example of the kind of graph (chromatogram) that we might put in a Word doc:
http://www.wcaslab.com/gif/EPA556chromatogram.gif
When that is PDFd the graph content is gone:
http://www.business-analysis-made-easy.com/image-files/xy-axis.gif
and the individual axis numbers are upside down, but still in the right order. So if the Y-Axis reads:
1.0
0.8
0.6
0.4
then it would read:
upside down 1.0
upside down 0.8
upside down 0.6
etc etc
Hopefully that explains a little better.
Adrian
Maybe you are looking for
-
Ressource file LM00 99 does not exist
Hi all, I am getting an error while running LM00 in internet service in tcode se80. The error is : "Ressource file LM00 99 does not exist" I have done all the settings in SICF, as given in Raja's blog: Running your first ITS WebGUI application
-
In Bridge CS6 when I view a jpg thumbnail color loss
In Bridge CS6 when I view jpgs as a thumbnail and also when selected to single viewing, the colors wash out. They do not in raw or psd versions of the same photo. They look fine in windows picture viewer and I saved them to my website and they were
-
Running RoboHelp 10 and RoboHelp 11 on the same system
Background Windows 7, 64-bit operating system. Upgraded RoboHelp 10 to RoboHelp 11 this week. Upgraded my RH10 WebHelp Proj project (released with our 2.0 application) to start editing for release with 3.0 application next June . The upgrade did not
-
The download product account is not available
dear web master,i think the web account is not available,please give me feedback
-
Broadcast Bex queries in CSV format
Hi, Is there a way to broadcast Bex queries in "CSV" format? Please do not confuse this with the "Export to CSV" option. I need to be able to set up the job periodically to send the reports in CSV format. Any ideas... Thanks