SAP Query Genrator Error Again
Experts,
select T0.Father 'Parent Item',
T0.Code 'Children',
Case
When T1.ItemType = 'I' Then 'Item'
When T1.ItemType = 'L' Then 'Labour'
When T1.ItemType = 'T' Then 'Travel'
End 'Item Type',
Case
When T1.PrcrmntMtd = 'B' Then 'Buy'
When T1.PrcrmntMtd = 'M' Then 'Make'
End 'Procurement Method ',
T1.CardCode 'Preferrd Vendor',
ISNULL((select T2.Price from OSPP T2 where T2.CardCode = T1.CardCode and T2.ItemCode = T0.Code), 0)'Price of the Item in Special price list ',
Case
When T1.ItemType = 'L' Then T1.AvgPrice
Else 0
End 'Item Cost (If Labour)'
from ITT1 T0 inner join OITM T1 on T0.Code = T1.ItemCode
where T0.Father = '[%0]'
group By
T0.Father,
T0.Code,
T1.ItemType,
T1.PrcrmntMtd,
T1.CardCode,
T1.AvgPrice
This gives error i SAP Query genrator . Plz help
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to select from. 2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared.
For
select T0.Father 'Parent Item',
T0.Code 'Children',
Case
When T1.ItemType = 'I' Then 'Item'
When T1.ItemType = 'L' Then 'Labour'
When T1.ItemType = 'T' Then 'Travel'
End 'Item Type',
Case
When T1.PrcrmntMtd = 'B' Then 'Buy'
When T1.PrcrmntMtd = 'M' Then 'Make'
End 'Procurement Method ',
T1.CardCode 'Preferrd Vendor',
ISNULL((select T2.Price from OSPP T2 where T2.CardCode = T1.CardCode and T2.ItemCode = T0.Code), 0)
'Price of the Item in Special price list ',
Case
When T1.ItemType = 'L' Then T1.AvgPrice
Else 0
End 'Item Cost (If Labour)'
from ITT1 T0 inner join OITM T1 on T0.Code = T1.ItemCode
inner join OSPP t2 on t2.ItemCode = T1.itemcode
where T0.Father = '[%0]'
group By
T0.Father,
T0.Code,
T1.ItemType,
T1.PrcrmntMtd,
T1.CardCode,
T1.AvgPrice
Similar Messages
-
Hi there!
I have a sap query iview in the portal that should display a query in CRM (build with SQ01). The query in the backend is fine, but I get this error message in the portal.
"Error in Source. Message not available"
I have double-checked that the connection parameters of the sap query iview are OK, also I have run a DQE connection test on the system that was(see below) also OK.
Any thoughts on this?
Thanks in advance
-fab
p.s. I reward points generously
Test Connection through the DQE
Test Details:
The test consists of the following steps:
1. Checks the existence of a backend admin user ID/password in the system properties.
2. Checks the existence of a default alias for the system.
3. Checks the DQE connection.
Results
1. Backend admin user ID and password exist in the system properties.
2. Default alias of the system exists.
3. DQE connection successful. If you continue to experience problems, verify the DQE admin user ID and password properties for this system object.Thanks for the help Michael. Here is the xml file, I have also sent it to your email address.
Cheers,
faB
- <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
<Property name="parent1" value="pcd:portal_content/XXX/XXXXXX/IVIEWS" />
- <Context name="qtf" objectClass="com.sapportals.portal.iview" create_as="0" template="par:/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" parent="$">
- <Attributes>
- <Attribute name="com.sap.portal.private.iview.PropertiesUrl" type="string">
<AttributeValue value="pcd:com.sap.portal.system/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" />
</Attribute>
- <Attribute name="PDVParameterQUERY_WORKSPACE" type="string">
<AttributeValue value="G" />
</Attribute>
- <Attribute name="PDVParameterQUERY_VARIANT" type="string">
<AttributeValue value="TEST" />
- <Attribute name="personalization" type="string">
<AttributeValue value="NO_DIALOG" />
</Attribute>
</Attribute>
- <Attribute name="PDVParameterQUERY_NAME" type="string">
<AttributeValue value="ZQ_ECCSPO_01" />
</Attribute>
- <Attribute name="PDVParameterQUERY_USERGROUP" type="string">
<AttributeValue value="ECCSPO" />
</Attribute>
- <Attribute name="PDVParameterQUERY_CREATE_SELTAB_FM" type="string">
<AttributeValue value="" />
- <Attribute name="personalization" type="string">
<AttributeValue value="NO_DIALOG" />
</Attribute>
</Attribute>
- <Attribute name="com.sap.portal.iview.MainObject" type="string">
<AttributeValue value="" />
</Attribute>
- <Attribute name="SystemIdentifier" type="string">
<AttributeValue value="SAP_CRM" />
</Attribute>
</Attributes>
</Context>
</GenericCreator> -
SAP query transport error - need help
hello,
The system is throwing the following error when importing the query from development to QA client.
We already have the query imported the first time without errors. This is happening with subsequent transports if there is a change or any modification to the query.
Below is the error log from SAP regarding the failed transport :
R3TRAQQUFI was repaired in this system
Message no. TW104
Diagnosis
Object R3TRAQQUFI is in repair status. Therefore, it cannot be imported.
System Response
The object is not imported.
Procedure
If you still want to import the object, release the relevant repair and repeat the import.
Please help
Thanks in advance.Hi
Here I am sending the step by step procedure for the SAP Query. Hope this helps you, if so please issue points.
1. Go to SQ02 .
Select Environment -> Query Areas
Select Standard Area (Client specific) as show below
2. Select Environment -> Transports
Select Import radio button
Check Overwriting allowed (only with import/upload/copy)
Remove Check for Test Run
Select Transport InfoSets and queries radio button
Fill Infoset and Query with corresponding names
Fill Import option with transport request number.
3. Click on Execute button
With this it will be done.
Thanks for your patience -
Error 'Unable to open file' when downloading SAP Query to Excel
Hi all
I'm running a SAP Query which is set to download straight to a spreadsheet (Pivot Table / Microsoft Excel). Intermittently it does not work - apparently at random (at least, I've can't recreate the error at will).
It does one of the following:
- Works ok, and creates the pivot table
- Gives an Excel error message 'Unable to open file', then returns to the 'save the data in a spreadsheet' popup when enter is pressed on the error.
- Does not issue error message, just goes to the 'save the data in a spreadsheet' popup.
In the last two cases, the excel pivot table sheet is not created.
Has anyone seen anything similar, or have any idea as to what is causing the problem?
Any help gratefully received!
Not urgent as I've found a way round - further testing seems to show that I don't get the error is Excel is already open - but in the past I've run many SAP query downloads without needing to open Excel first. I suppose it's possible that this is just something to do with the Excel setup at the user site
Message was edited by:
E GregoryHi,
Ensure that file name with same name and in same path should not be open while saving the data.
Award if it helps.
Jogdand M B -
Error while creating report from BW SAP Query
Hi
While creating a report from BW SAP Query, I get the following error.
"An error occured while creating a report template.No error"
On opening the same query in BEx Analyser, i can see the fields and output.
Help me on this issue.
Thanks
Eswari.Hello Garett,
I've the same problem and have tried now to get the data with MDX-Query. The error message below appears:
'No RFC-authorization for function group /Crystal/MDX for User ...'
So it seems to be a authorization problem. Which special authorization must be assigned to Crystal users in SAP BI?
Thank you for your help.
best regards
Oliver -
SAP Query error for VBAK and KONV tables
Dear Experts,
Want to create SAP Query for below requirement but faced some error
Step1) Extract the data from VBAK table w.r.t. order type , Sale org and date range
and collected the Sales order numbers and doc. condition record (KNUMV)
Step 2)In table KONV (Transactional condition record data) in this table provided input as doc. condition record (KNUMV) with respect to condition type ABCD
Manually i extracted data, there is no problem .
But customer want to generate SAP Query for above requirement
I tried to create but in t.code SQ02 when i tried to join the table VBAK and KONV i faced the below error
Table KONV cannot be used in a join.
How can I create SAP query for above requirement ???
if its not possible then create Z report is the only solution ??????
Thanks in advanceHello
You can not create Query report with joining KONV. But there is one solution for your problem. You can create Query report by using Database VAV. In this logical database you will find all SD tables and also KONV. Use only those tables and fields which you want in your query report. I have checked this and its working
Please try this and update the forum accordingly.
Edited by: moazzamjii on Jun 30, 2011 12:13 PM -
Dear Experts ,
I have a query and executing using SQ01 . Here im getting warnings as
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 . -> 'Generate'
Here im not getitng the output i require . then the system says ** Fields from parallel tables within a line Line: 02
Field: Account number of supplier or vendor (LFB1-LIFNR, table LFB1) ;
Field: Account number of supplier or vendor (LFBK-LIFNR, table LFBK)
Same thing comes for Bank country key, bank key , bank account number .
Please heklp as to what is wrongHello,
I am gettig the Same Error in SAP Query, But i have generated My Infosets & cross checked the Fields with Query.
Plz let me know what could be the Error.
Thanks. -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
Why create BI SAP Query System in EP successful,but visual composer error?
hi,guy,
i create BI SAP Query System in EP test successful.
Test Connection with Connector
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection successful .
now,i use VC find data relational system error
error info:
Eroor-21003 cannot retrieve catalogs and schemas.
Failed to connect to backend system. Check your system definition and user privileges.
pls help me.thanks.The connection was previously working and then it stopped after I imported a large amount of data to the SQL db. So the permissions should be fine.
Any other ideas? -
Error when uploading SAP query in ECC6 from 4.5B system
Hi expert ,
I have down loaded SAP Query(infoset) from 4.5B server and now i want to upload this query to ECC6.0. when i upload this query(infoset) to ECC 6 as follows to download step like from SQ02 . but after executing i am getting error
" infoset ZTEST (import option REPLACE)"
" F | Error When generating Transport dataset
I am following all steps even created user group in sq03 which it is in my 4.5b system.
Thanks
ChandraHello,
It won't usually work when you try to download a infoset from a older release and try to upload in a newer version. However there is a workaround for this.
If you debug the program while uploading, you will notice that certain if conditions fail on a few fields in the file you are trying to upload are missing. What i would suggest you to do is, download any infoset from your ECC 6.0 version and keep it as a reference for filling these missing fields into the older version infoset you are trying to upload.
Vikranth -
Error in the SAP query for Assets?
Hi,
I am trying to make 2 queries related to the assets but it is not selecting the data may I know why and where I am doing wrong.
I have joined the tables ANLA, ANLC, ANLP and ANLB.
Fields that have been selected are as follows:
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Fiscal Year ANLC-GJAHR
Ordinary depreciation posted in the current year ANLC-NAFAG
Planned ordinary depreciation for the year ANLC-NAFAP
Accumulated ordinary depreciation ANLC-KNAFA
Cumulative acquisition and production costs ANLC-KANSW
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Fiscal Year ANLC-GJAHR
Ordinary depreciation posted in the current year ANLC-NAFAG
Planned ordinary depreciation for the year ANLC-NAFAP
Accumulated ordinary depreciation ANLC-KNAFA
Cumulative acquisition and production costs ANLC-KANSW
Transactions for the year affecting asset values ANLP-ANSWL
Planned ordinary depreciation for the year ANLP-NAFAP
Ordinary depreciation posted in the current year ANLP-NAFAG
Ordinary depreciation to be posted ANLP-NAFAZ
Asset acquisition year (currently not used) ANLP-ZUJHR
Depreciation calculation period ANLP-PERAF
Original useful life in years ANLB-NDURJ
Depreciation key ANLB-AFASL
Please tell me where SAP query is no working and what shall I do to make it work.
Thanks and regards
NitinThanks !!!!
-
BI SAP Query Connector Heatmap Error - Empty display in Visual composer
Hi,
I am trying to create an Heatmap iview in SAP Visual Composer using BI SAP Query Connector.
While using the Heatmap template, we are able to see the data but finally when we deploy and run the iview we see empty screen.
Any inputs is highly appreciated.
Regards,
SreeramHi,
thanks for your time and help. Its a relevant blog but unfortunately doesnot solve my problem.
I am using BI SAP Query Connector system instead of BI JDBC. While creating the Heatmap I am able to select the fields and see the output in table format, but finally the chart is not appearing. its blank.
IGS is configured correctly, able to reach backend to select tables, select fields. After deployment and when the ivew is run I dont even see any heatmap, but a blank container.
Please suggest if you have any clues regarding this.
Regards,
Sreeram -
Error in Excel while exporting from SAP query.
Hi Gurus,
While exporting one SAP query to excel the last row/line of information lost partially.
Means we get some information in the last line of excel but some information is not exported in that same line.
Can you throw some light on this please....Hi
Due to special Chracters in the Values sometimes this happens when exporting to excel.
Please download into Unconverted format selection & after downloading Open with excel & save it in excel
Thanks & Regards
Kishore -
SAP Query:Error 'List is wider than 255 characters '
Hi all,
i m new in SAP Query.
one query is already done.
one change is come out.
requirement is - Add one extra column
when i m going to add one extra coulumn and test it then message is come out.............
List is wider than 255 characters (generation not possible)
Message no. AQ255
Diagnosis
You attempted to define a query where the line width of the generated list is greater than 255 characters.
You define the line width on the Title, Format screen which permits a maximum width of 255 characters. However, when defining statistics and ranked lists, you can implicitly increase this value, since the lines cannot be broken up. This is the case here. An implicit increase in the width of the list would result in a list wider than 255 characters. For this reason, the query cannot be executed.
Procedure
Check which of the statistics or ranked lists is responsible and modify it so that the resulting list width is no greater than 255 characters.
plz help me and suggest me as soon as possiblehi Shafiq ,
i am aslo facing same problem of (List is wider than 255 characters )
There is limitation of 255 characters .. can we extend that .
When we check by editing program in sq01 it show only 255 character limitation .
Regards
Deepak. -
Sales Order Text Lines in SAP Query
I have a requirement to output several text lines into a SAP query based around sales orders.
I have included some code to read the details into my query and get no syntax errors, however the report gives a blank output for each of the text fields included, despite there definitely being some text with the specified attribute ID and text object in the table STXL.
Where am I going wrong?
Please find the coding below for one of the text field I'm trying to extract:
TABLES:STXL.
DATA:
VBELN LIKE VBAP-VBELN,
POSNR LIKE VBAP-POSNR,
TDNAME LIKE STXL-TDNAME,
MYLINE LIKE TLINE-TDLINE,
ZE18_LINE(1200) TYPE C.
DATA:BEGIN OF LINES OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA:END OF LINES.
DATA:BEGIN OF MYHEADER.
INCLUDE STRUCTURE THEAD.
DATA:END OF MYHEADER.
CLEAR TDNAME.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = VBAP-VBELN
IMPORTING
OUTPUT = VBELN.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = VBAP-POSNR
IMPORTING
OUTPUT = POSNR.
CONCATENATE VBELN POSNR INTO TDNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'ZAT2'
LANGUAGE = SY-LANGU
NAME = TDNAME
OBJECT = 'VBBP'
IMPORTING
HEADER = MYHEADER
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT FOUND = 4
OBJECT= 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF SY-SUBRC = 0.
LOOP AT LINES.
MOVE LINES-TDLINE TO TEXT.
ENDLOOP.
ENDIF.Hi -
Please check in debuging.
check the value of TDNAME correctly populated with sales order no and sales order item.
You can cross check with the table STXH with TDNAME and see if any entries is available for TDID 'ZAT2' as your case.
Here are sample code.
DATA : lv_tdname TYPE tdobname,
lw_line TYPE tline,
li_line TYPE STANDARD TABLE OF tline.
CLEAR : lv_tdname , li_line[],
cocatenate w_vbak-vbeln w_vbap-posnr into lv_tdname.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ZAT2'
language = 'E'
name = lv_tdname
object = 'VBBP'
TABLES
lines = li_line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
CLEAR lw_line.
loop at li_line INTO lw_line .
* Put your logic
endloop.
ENDIF.
Maybe you are looking for
-
Date format conversion in BEX query level
Hi , We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013. we are not having any conversion routines and the date fie
-
friends, after importing, we have to pay the vendor invoice, but we have exchange fluctuation also, how to clear the vendor invoice, including exchange fluctuations. regards,
-
Custom seach help for standard field in Web dynpro application
Hi All, I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help. As the SRM Sho
-
How do transfer my address book from my PC to my Mac desktop?
I was advised at the Apple shop to save my address book as a business card but this does not work for the whole address book. It only seems to work one address at the time. Am I doing something wrong?
-
Usage of Object Libraries in Forms9i
Whenever I am using an obj lib in subclassing form objects. On loading the form in the Form Builder i get the following message. "FRM-18108: Failed to load the following objects." The obj lib location and .fmb location are there in the FORMS90_PATH r