Problem with a SAP Query
Hello all,
I am working on an sap query and i am running the query for a date intreval say for the current month. But the query is picking the date from the infotype begindate and not the interval with which i am running.
What might be the possible cause for this.
Thanks,
Krishna
Hello Krishnakumar,
U have selected the fields in query from the infoset and u r entering the value in the same now as the query the program should use the values entered in the fields selected from query unless u have create local fields which are not connected the the database.
What is the data selection?
Similar Messages
-
Problems with Input Ready Query
Hello All,
I'm facing problems with input ready query for BI IP.
I've created the input query on aggregation level and maintianed all the planning settings. It is not allowing me to edit, when i'm attaching in the web template.
I also attached a button copy function, and i'm able to execute it and save it, but it not allowing me to change manually.
I also enabled the 3rd option for keyfigures...data can be changed with planning functions and user input.
Please help me in this regard.
We have just started the development of BI-IP, please suggest me if there are any notes to be applied.
Regards
KumarHello Johannes,
Yes I've set to the finest granularity...even if it is Only one characteristic and one key figure without any restrictions...
I've checked even planning tab page under properties...it is also fine..
But still it is not allaowing me to go to edit mode...this is a fresh instalation and the query i'm working is the first one...
Please suggest me if there are any notes to be applied, we are on Support Pack 10.
Regards
Jeevan Kumar -
Problems with the sap* password
Hi,
i have a problem with the sap* password.
I tried my masterpassword but it did not work.
So i tired the following from the Tread: Password problem with user DDIC
resetting password for sap*
sqlplus "/as sysdba"
sql> update sapsr3.usr02 set bname='SAP1' where bname='SAP' and MANDT=000;
sql> commit;
Bud it did not work. After i tried to delete the sap*1 from the table sapsr3.usr02 but it did not work.
sql>delete from sapsr3.usr02 where mandt='000' and bname = 'SAP*1';
I also restarted the instance after the commands. But i can not logon with 'sap*' and the password 'pass' .
Mybe someone can help me?
Regards
MikeStarting with release 7.00 based system you have to set
login/no_automatic_user_sapstart=0
in your instance profile and restart the instance.
Markus -
Hallo Experts,
We encounter a problem with unit in our Query.
Szenario:
We use the Unit like PC, SET in Query.
In Table T006 those Units have value 0 in the field ANDEC, so they will be rounded up and rounded down in Query.
Our Problem is some Queries need the rounding up and down but others don't need this function.
Where and how should we change to solve the problem.
thanks & Best regardshi,
if you want to control the rounding off while unit conversion you can do it from SPRO
In the BW system, goto SPRO -> SAP NetWeaver -> General Settings -> Check Units of Measurement -> Units of Measurement -> Choose the unit corresponding to 'KM' -> Click on 'Details' button in the toolbar.
Look the field 'Decimal Pl rounding'. Change this to 3 or whatever value you choose and see if it works.
in above link i have taken example of KM, you need need to select the required unit.
let us know if this is solves your problem. I am not sure if this can be done for individual queries but this is controlled by UOM wise as mentioned above.
Regards,
Rk. -
Problem with a Bex Query Report with Web Intelligence
Hello!
I have a Bex query (with query Bex version 7.0) I'm connecting with Web Intelligence (4.0) but one of the attributes instead of displaying the description shows only the key, and it is strange because other cubes if given by the conversion.
I wonder if there is a solution for this or if it is a problem of version 4.0 of Web Intelligence.
I await your response,
Greetings!Hi,
Whereabouts in the application are you seing this problem? (in the query panel conditions, in the prompt list of values, or in the table block? )
also, what do you mean by "and it is strange because other cubes if given by the conversion" ?
it's worth noting that the "key and text display properties" in the Bex Query Designer do not influence webi. WebI consumes the global infoobject property from BW RSH1.
Regards,
H
p.s. if you need to understand which features are or are not supported with BI 4.0 tools, please look here: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5 -
Problem with timestamp in query
I have problem with timestamp in JPA query.
I wonna select all data from database where difference between two timestamps is more than 3 month.
Database:
ID timestamp1 timestamp2
1 20008-11-19 15:02000 20008-08-19 15:02000
2 20008-11-19 15:02000 20008-11-14 15:02000
@Column(name = "timestamp1", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
public Date timestamp1;
@Column(name = "timestamp2", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
public Date timestamp2;
sql query works:
select id from table where
MONTH( DATE(timestamp1) - DATE(timestamp2) ) > 3
but how I can write in Java?
I't doesnt wrk:
Query query = em.createQuery("SELECT f.id FROM Foo f WHERE MONTH( DATE(f.timestamp1) - DATE(f.timestamp2) ) > 3 ")
error:
ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method .
Exception data: <openjpa-1.0.2-r420667:627158 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter 'SELECT f.id FROM Foo f WHERE MONTH( DATE(f.timestamp1) - DATE(f.timestamp2) ) > 3'.
Error message: <openjpa-1.0.2-r420667:627158 nonfatal user error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "MONTH (" at character 438, but expected: ["(", "+", "-", ".", ":", "", "=", "?", "ABS", "ALL", "AND", "ANY", "AS", "ASC", "AVG", "BETWEEN", "BOTH", "BY", "CONCAT", "COUNT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DELETE", "DESC", "DISTINCT", "EMPTY", "ESCAPE", "EXISTS", "FETCH", "FROM", "GROUP", "HAVING", "IN", "INNER", "IS", "JOIN", "LEADING", "LEFT", "LENGTH", "LIKE", "LOCATE", "LOWER", "MAX", "MEMBER", "MIN", "MOD", "NEW", "NOT", "NULL", "OBJECT", "OF", "OR", "ORDER", "OUTER", "SELECT", "SET", "SIZE", "SOME", "SQRT", "SUBSTRING", "SUM", "TRAILING", "TRIM", "UPDATE", "UPPER", "WHERE", <BOOLEAN_LITERAL>, <DECIMAL_LITERAL>, <IDENTIFIER>, <INTEGER_LITERAL>, <STRING_LITERAL>].
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.parse(JPQLExpressionBuilder.java:1665)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.<init>(JPQLExpressionBuilder.java:1645)The error is indocating improper formatting of your JPQL string. MONTH is not understood. I would recommend using your SQL string in a createNativeQuery(...) call instead.
Doug -
Space problems with the SAP Database MS SQL 2000
Hi,
Actually, I have a size problem with the database, I have MS SQL Server 2000 with Service Pack4 on a Windows 2003 Server environment that is my DataBase Server of my ERP ECC 6.0. On the other hand I have a storage where I have 229 Gb of free space used only for the database files of the SAP data and the SAP log file.
But when I check the DB space allocation on trx. DB02 I saw this:
3 Database files and 1 transaction log:
The 3 database files are: PRDDATA1 (size 15,313 MB used 15016 MB) , PRDDATA2 (size 14106 MB used 13984 MB), PRDDATA3 (size 14472 MB used 14352 MB) and the log file is PRDLOG1 ( size 1000 MB) all of them with no limit option and growth by 10%.
So I went to the SQL Enterprise Manager and I saw that my Database PRD properties and I got this information:
My database size is 44892.48 Mb size with only 1330.36 Mb of free space and that is alarming.
So the question here is how ,if I have a storage where the sap data is storing with 229 Gb of free space, can I make the database files grow up in order to use all the available space of my storage.
Can you help me please because it is critical being my productive system?
Best Regards
Erik EspinosaI resolved this issue myself. Thanks for all your help.
Best Regards,
Erik Espinosa -
Problem with REGEXP_SUBSTR related query.
I am having a problem with this query:
SELECT *
FROM ( SELECT REGEXP_SUBSTR ('{SUMMER}|{POINT OF SALE}',
'({)([A-Z]+ *[A-Z]*)(})',
1,
LEVEL,
'i',
2)
val
FROM DUAL
CONNECT BY LEVEL <=
REGEXP_COUNT ('{SUMMER}|{POINT OF SALE}', '|') + 1)
WHERE val IS NOT NULL
I need the output in 2 rows in this format:
VAL
====
SUMMER
POINT OF SALE
But I am not able to get 'POINT OF SALE' in the output because of the blank space, or maybe some other reason. Can anyone correct my query?So you want something like this?
SQL> ed
Wrote file afiedt.buf
1 SELECT *
2 FROM ( SELECT REGEXP_SUBSTR ('{SUMMER}|{POINT OF SALE}', '[^{|}]+', 1, LEVEL, 'i') val
3 FROM DUAL
4 CONNECT BY LEVEL <=
5 REGEXP_COUNT ('{SUMMER}|{POINT OF SALE}', '[^|]+'))
6* WHERE val IS NOT NULL
SQL> /
VAL
SUMMER
POINT OF SALE
SQL> -
Problem with a SAP BW Query and Webi
Hi all,
Does anybody knows the reason why when using webi to access a SAP BW query that prompts the user for
a date, it gives an error on the format? It seems the lov is not being populated correctly. If I write
manually the value the prompt expects, it works, but if you select one of the values of the list it doesn't.
The version is XIR2 and if you create a simple query everything seems to work fine.
Any idea?
I don't know if there is something to do with language parameters or something like that.
Thank youHi Mike,
thanks for your answer.
I will try to send you a screenshot, but I cannot do it at the moment because I am not at the customer site.
I'll try to explain what we get when we running the webi report.
The lov to select from retrievs data like "K41002008" that is supposed to be a date, but if you select this value the report fails. Instead of
selecting the value, if I manually write for instance "01/01/2008", the report works fine.
I don't know if this is useful.
Once I have more info to send, I'll do it right away.
Thanks again for your time
Regards -
Hi Experts,
There is a problem in my query output.
I have a CKF for sales documents number created with replacement path which gives the correct count of number of Sales documents.
But the req here is to create two more counters which will be counting the passed and failed count with reference to other KF1 (the value of this KF can be 0 or 1).
i.e. If the KF1 value is then failed count would be 1 .
else passed count would be 1.
I have used the Replcement path variable created for Sales Document count.
For failed count the CKF formula which I have created is: (Sales Order Count ) * (KF1<>1)
Which gives the right result but as soon as I remove the drill down , instead of aggrading the total results, failed counter still shows 1 which is incorrect.
Could any one please help me out.
Regards,
BW Userhello,
try using exception aggregation as total and reference char as the one which u have reomved from drilldown.
Regds,
Shashank -
How can i use index in select query.. facing problem with the select query.
Hi Friends,
I am facing a serious problem in one of the select query. It is taking a lot of time to fetch data in Production Scenario.
Here is the query:
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelat LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelatrprctr
WHERE rldnr = c_telstra_accounting
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
And rzzlstar in r_lstar
AND rpmax = c_max_period.
There are 5 indices present for Table ZTFTELAT.
Indices of ZTFTELAT:
Name Description
0 Primary key( RCLNT,RLDNR,RRCTY,RVERS,RYEAR,ROBJNR,SOBJNR,RTCUR,RUNIT,DRCRK,RPMAX)
005 Profit (RCLNT,RPRCTR)
1 Ledger, company code, account (RLDNR,RBUKRS, RACCT)
2 Ledger, company code, cost center (RLDNR, RBUKRS,RCNTR)
3 Account, cost center (RACCT,RCNTR)
4 RCLNT/RLDNR/RRCTY/RVERS/RYEAR/RZZAUFNR
Z01 Activity Type, Account (RZZLSTAR,RACCT)
Z02 RYEAR-RBUKRS- RZZZBER-RLDNR
Can anyone help me out why it is taking so much time and how we can reduce it ? and also tell me if I want to use index number 1 then how can I use?
Thanks in advance.Hi Shiva,
I am using two more select queries with the same manner ....
here are the other two select query :
***************1************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelpt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelptrprctr
WHERE rldnr = c_telstra_projects
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
and the second one is
*************************2************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelnt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelntrprctr
WHERE rldnr = c_telstra_networks
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables. if i will not use it will delete all the data fetched earlier.
Thanks on advanced......
Sourabh -
Problems with consuming SAP BW WSDL in Crystal Reports 2008
Hello,
I am trying to use the WSDL generated from the SAP BW in Crystal Reports 2008 using the XML and Web Services driver, but when I input the WSDL url Crystal does not interpret the url passed in as a WSDL url and the Services, Port and Method drop downs are blank.
If I manually input the values I get the error below from Crystal
"Logon failed.
Details: Web Service Location is invalid
WSDL Exception (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL:Encountered unexpected element
'Policy'."
I know this is a valid WSDL as I have tested it with Xcelsius 2008 and I am able to get data back in Xcelsius. I found SAP note 1485601 that talks about Crystal Reports not being able to reading a WSDL generated by a SAP system.
https://websmp230.sap-ag.de/sap/support/notes/1485601
Based on the error message from Crystal above I feel that Crystal is unable to read the WSDL URL, has anyone else encountered this issue, if so is there a possible work around.
We are running Crystal Reports 2008 V1 SP3 FP 3 and the SAP Integration Kit is also on the same service pack and patch level.
Any help or insight into the issue will be very helpful.
Thanks,
KumarIngo,
I am using the "XML and Web Services" connection option in Crystal Reports, and using a HTTP WSDL.Here is a sample of how WSDL url generated by SAP BW.
http://servername:8000/sap/bc/srt/wsdl/bndg_DF6E553E117931F19C6B001560A1B616/wsdl11/allinone/ws_policy/document?sap-client=100
We have a two structure BW query (one for keyfigures and one as characteristic structure ), I know that this will cause the structure for the characteristics to show up as a single field and each element of the structure will result in a row of data, but we need the individual elements on the structure and we were hoping to get around the MDX driver limitation by using the web service connection.
The data in the Crystal Reports 2008 needs to be in a crosstab layout as shown below, but if we use the Crosstab expert the key figures are stacked one under the other and also we cannot get the labels from the KPI structure to show up on the Crystal Reports.
Characteristic Structure
Column1 Column2 Column3
Label 1 KeyFigure 1 KeyFigure 2 KeyFigure 3
Label 2 KeyFigure 1 KeyFigure 2 KeyFigure 3
Label 3 KeyFigure 1 KeyFigure 2 KeyFigure 3
This layout is already built in a Web Template and therefore we were planning on using the WSDL to get the layout directly into Crystal report, but I keep running into the WSDL error when I try to consume the WSDL in Crystal.
Thanks,
Kumar -
Problem with Variable in Query Designer.
hi all,
we have a variable ZAMREG on characteristic AM Region, where AM region is attribute for two different master data objects mastobj1 and mastobj2, we have different infosets build on these two master data objects along with some other ODS.
now this variable ZAMREG is visible in one of the infosets only in query designer, whereas it is not visible in the other infoset.
what could be the problem??
thanks,
RkHi,
Please check if that variable is created locally or globally. If it is a local variable in any query, it will not appear in any other query.
In anyways, you can always create one more variable if the older one is not available. This will not make much of difference. I would suggest go ahead with creating a new variable.
Regards,
Yogesh -
Mapping Problem with Native SQL query
My application uses a native SQL query to locate certain entities. It looks like this:
SELECT UPLOADATTEMPTREF, STUDENTNUMBER, USERID, WORKITEMCODE, WORKITEMINSTURN, WORKITEMTITLE, MODULERUNCODE, STUDENTNAME, SUBMISSIONDEADLINE, UPLOADATTEMPTSERVERDATE, FILENAME, UPLOADCOMPLETESERVERDATE, NEWFILENAME, FILESIZE, FILEPATH, DOWNLOADSERVERDATE, MODULECODE, MODULETITLE
FROM Submission_Attempt WHERE UPLOADATTEMPTREF IN (
SELECT uploadAttemptRef FROM (" +<br /><br /> "SELECT MAX(uploadAttemptRef) AS uploadAttemptRef, UserID, workItemInstUrn, " +<br /><br /> "workItemCode FROM Submission_Attempt where workiteminsturn = ?1 " +<br /><br /> "GROUP BY UserID, workItemInstUrn, workItemCode) Table1 ) " +<br /><br /> "and uploadCompleteServerDate is not null;"<br />
My expectation was that EclipseLink would be able to handle the mapping of the results to the entity quite happily. However, I get a NonSynchronizedVector of Objects - each Object representing one field of data.
I need help with either:
Converting the above SQL into JPQL so that I (hopefully) don't have to worry about the SQL or
Understanding why this isn't working properly...
Anyone able to help?
Edited by: phunnimonkey on Nov 6, 2008 3:33 AMNever mind - the problem was to do with not specifying a class when creating the native query.
-
Problem with expired SAP licenses
Greetings,
I have a fresh installation of a SAP 620 on NT with Oracle Database (clustered environment). I successfully did a client copy from the old system to the new system but on the new system I get the following errors:
1. Logon refused (LICENSES has EXPIRED)
2. When attempting to install new licenses, I get this message:
Error: Connect to database failed
Details: SBSlConnect failed with return code 99
SQL-ERROR: 1017
The Oracle database seems to be Ok. DB is up and running.
Has anyone had this problem? If so, please help...
Louiedid you figure out the issue. We get the same error when testing our license. The database is up and running. we know the temp license expired and we are trying to install the real license.... It will not let us extend the temp license again.
thanks,
Maybe you are looking for
-
I cannot download apps or apply updates on my ipod touch 4G.
I have an Ipod touch that I haven't tried to update in a while. When I try to access the apps store or apply the updates that are listed...it says that it cannot connect to the store and to check my date and time. This happens after I enter my id a
-
Help, I crashed my macbook pro!
I was attempting to restore my picture library after I attempted to copy it to my new mba and didnt transfer correctly and so my mbp version of iPhoto no longers reads my photo library. I attempted to restore my library off of my back up disc per adv
-
DC to DC converter basics using Labview on FPGA Control with VHDL
DC to DC converter basics using Labview I am fairly a novice, that is why simplifications required, before I begin thanks in advancefor them who will response I am designing a DC to DC (Intermediate Bus Converter, a step down BUCK converter, of 24
-
Why does the Video looks Pixelated after Burning DVD
In IDVD when I preview the video it looks great, when I burn the DVD it comes out very very pixelated. I've changed the preferences from Best Performance to Best Quality, and the project properties as well I've done the same. Does anyone know why thi
-
Mac Pro (v1.1) won't login after installing new video card
Hello, I have a Mac Pro from 2006 and after my NVidia 7300GT burned, I bought a Geforce 8800GT to replace my old card. After I installed it to the motherboard following the user manual, I turn on my mac and I get the white screen with the apple logo