Error in Query display
Hi All
I am using 0Instl_dur for calculating installation duration. Its flaoting point number tyoe infoobject. However when I display this in query in BEx. the Duration is shown with suffix ERR. e.g. duration 5,0000000000000000E+00 ( 5days) is being shown as 5.0 ERR.
Can I anyone explain me what needs to be done to get rid of unnecessary charecters 'ERR'?
Cheers
PB
Hi PB,
to come around the 'ERR' you can do 3 things. First one is already suggested by Michael. Just create a new formula or a calculated keyfigure to get your keyfigure without a unit --> nodim(keyfigure)
Second is: put the unit infoobject into the rows of your query.
Third is: Reload your cube completely and make sure the unit is populated correctly.
regards
Siggi
Message was edited by: Siegfried Szameitat
Similar Messages
-
<p>Apologies for posting this again but I've made a little progressand wanted to be clear in what I was asking...</p><p> </p><p>I have two seemingly identical .bqy files, FileA and FileB.FileA was inherited from a colleague while FileB has been createdby myself.<br>Both contain identical master datamodels, displaying 5 connectedtabels from a single database.<br>Both use the same OCE file (not copies of the same one; the actualsame one). This OCE file fetches Metadata on the same connection onwhich the application data is retrieved.<br><br>All data is held in a SQL Server 2000 database, configured in theOCE as ODBC/MS SQL Server. The metadata type field is a direct liftfrom syscolumns.xtype.<br><br>Each contains a query that selects and displays all columns androws from a single table. In both cases the query is linked to themaster data model.<br><br>The results of both queries appear to retrieve the same number ofrows (i.e. text at the bottom of the results say 48129 of 48129rows in both cases).<br><br>FileA - the inherited bqy - retrieves and displays the resultscorrectly.<br>FileB - the one I created - does not. varchar and bigint fields aredisplaying as blank (all other fields appear to display correctly:int, text, float, datetime etc). However, if I apply any relevantfunction to the varchar or bigint fields then they will display(for example, if I retrieve a varchar Addr1 field it displays asblank; if I apply lower() to the field it displays, albeit in lowercase).<br><br>Also, in FileA if I right-click on the topic/table in the masterdatamodel and choose Detail View, 10 sample rows of data aredisplayed as expected. If I do the same in FileB, I get a dataformat error and the display does not change.<br><br>Lastly, if I create a new query in FileA but don't link it to themaster data model, then make it identical to the query that works -it exhibits the same behaviour as that shown in FileB.<br><br>One thing that I have noticed is in the dbgprint from therespective queries: it is identical except for a single line. WhenI run the query that works, all that is displayed (of interest) isthe SQL being sent to the server (essentially a single selectstatement with no joins). When I run the query that doesn't work,the exact same select statement is there with the addition of thefollowing line:<br><br>ODBC Information: SQLFetch: rc = 1, SQLSTATE: 01004, Error Msg:[Microsoft][ODBC SQL Server Driver]String data, righttruncation<br><br>In all other respects the dbgprint is identical. And, as statedabove, the queries all use the exact same OCE file.<br><br>I'm stumped. Can anyone help?</p>
<p>Folks,</p><p> </p><p>somone on a different site answered this for me and I wanted topass on the solution in case anyone googles this in the future.</p><p> </p><p>I was using syscolumns.xtype for my metadata column type - thiswas incorrect. I should have been using syscolumns.type. I madethat one change and all the problems I've described so fardisappeared.</p><p> </p><p>Keith.</p>
-
Error in query when using offset in variable
Hi,
I have a query in which I use av variable (0CWEEK) for the current week. The query works fine with this varable. But when I use an offset of for example minus 1, the query displays an error:
(A299(BRAIN)) Terminate: System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01
We use offset of 0CALWEEK in other info cubes, and there are no problems with that.
In this case we have implemented 0CALWEEK in a DSO. Perhaps this somehow causes the problem? On the other hand the variable works fine in the DSO, as long as we don't use offset.
So - why is there a error, and how to solve it?
BR,
NiclasManaged to solve the problem. The reason was that there was no column (or row) with the variable without offset. I.e. there needs to be a column for the actual week in the query as well, not only week with offset. In this case I didn't want the actual week, only an offset to it. So I just hid the column with the actual week from presentation.
/Niclas -
An error occurred querying a data source - with REST services
Hi,
I have a SharePoint 2013 form library library with an info-path form. I need to get the logged in user's 'Display Name' on my form load automatically.
I used REST service to fetch the current user details. In the preview mode of the form, its showing the right name. But when I publish this form to library I am getting the following error.
REST Service --> http://site url/_api/SP.UserProfiles.PeopleManager/GetMyProperties
Please help me to resolve this issue.
Thanks in advance for your time and reply :)Hi,
According to your post, my understanding is that an error occurred querying a data source with REST services.
It is defiantly permission issue with GetUserProfileByName service
and could be many reasons of this problem. You first try with UDCX file and make sure that UPS is running.
Here are some similar threads for your reference:
http://social.technet.microsoft.com/Forums/en-US/b8c668ea-7511-4657-a1a8-08fb4a6bd53d/info-path-an-error-occurred-querying-a-data-source?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/46866ac2-da09-4340-a86a-af72cbb2c8d7/info-path-an-error-occurred-querying-a-data-source-?forum=sharepointcustomization
http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
5200:Error executing query: null
I am getting the error message 5200:Error executing query: null when trying to run a report that was perfectly fine a week ago. I searched on the internet and running the utility DeletePOV.cmd seems to resolve this issue for a lot of people. My issue is, I'm not sure what I need to modify in this file in order for it to work for me. I have tried just double clicking on this cmd file and nothing happens.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SETLOCAL
@ECHO OFF
TITLE HR Delete User POV Utility
if "%1" == "" goto Usage
if "%2" == "" goto Usage
if "%3" == "" goto Usage
if "%4" == "" goto Usage
SET CLASSPATH=F:/Hyperion/HyperionReports/lib;F:/Hyperion/HyperionReports/lib/HAB.jar;F:/Hyperion/HyperionReports/lib/HReports.jar;F:/Hyperion/HyperionReports/lib/HyperionADMWidgets.jar;F:/Hyperion/HyperionReports/lib/activation.jar;F:/Hyperion/HyperionReports/lib/jakarta-regexp-1.2.jar;F:/Hyperion/HyperionReports/lib/mail.jar;F:/Hyperion/HyperionReports/lib/swingall.jar;F:/Hyperion/common/ADM/7.0.1/lib;F:/Hyperion/common/ADM/7.0.1/lib/adm.jar;F:/Hyperion/common/ADM/7.0.1/lib/ap.jar;F:/Hyperion/common/CSS/2.5.3/lib/css-2_5_3.jar;F:/Hyperion/common/loggers/Log4j/1.2.8/lib/log4j-1.2.8.jar;F:/Hyperion/common/XML/JAXP/1.2.2/dom.jar;F:/Hyperion/common/XML/JAXP/1.2.2/jaxp-api.jar;F:/Hyperion/common/XML/JAXP/1.2.2/sax.jar;F:/Hyperion/common/XML/JAXP/1.2.2/xalan.jar;F:/Hyperion/common/XML/JAXP/1.2.2/xercesImpl.jar;F:/Hyperion/common/XML/JAXP/1.2.2/xsltc.jar;F:/Hyperion/HyperionReports/JRE/Sun/1.4.1_03/lib/i18n.jar;F:/Hyperion/HyperionReports/JRE/Sun/1.4.1_03/lib/charsets.jar;F:/Hyperion/common/XML/JDOM/0.8.0/jdom.jar;F:/Hyperion/common/JCE/1.2.2/US_export_policy.jar;F:/Hyperion/common/JCE/1.2.2/jce1_2_2.jar;F:/Hyperion/common/JCE/1.2.2/local_policy.jar;F:/Hyperion/common/JCE/1.2.2/sunjce_provider.jar;F:/Hyperion/HyperionReports/lib/planning/ext/servlet.jar
"F:\Hyperion\HyperionReports\JRE\Sun\1.4.1_03\bin\java" com.hyperion.reporting.reportstore.DeleteUserPov %1 %2 %3 %4 %5
goto End
:Usage
ECHO Usage: DeleteUserPov <ReportsAdminUserName> <AdminPassword> <ReportServerName> <DataSourceUserName>__<DataSourceServerName>__<AppName>__<DbName>__<DataSourceType> [ShowOnly]
ECHO The 4th argument can use Regular Expressions. A link which describes in detail what a regular expression is "http://jakarta.apache.org/regexp/apidocs/"
ECHO We can pass an optional 5th argument ShowOnly at the end to display a list of UserPov's which satisfy the search criterea.
ECHO
ECHO An example for Essbase datasource would be DeletePov hyperion reports localhost hyp__localhost__Sample__Basic__Essbase
ECHO An example for HFM datasource would be DeletePov hyperion reports localhost hyp__localhost__Hfm__Hfm__FinancialManagement
ECHO An example for Planning datasource would be DeletePov hyperion reports localhost hyp__localhost__Plan1__Plan1__Planning
:End
ENDLOCALYou will have to run the utility in the command prompt of the server. Within the command prompt, Navigate to the location where the utility is present and run the below command:
DeleteUserPov <ReportsAdminUserName> <AdminPassword> <ReportServerName> <DataSourceUserName>__<DataSourceServerName>__<AppName>__<DbName>__<DataSourceType>
An example for Essbase datasource would be DeletePov hyperion reports localhost hyp__localhost__Sample__Basic__Essbase
An example for HFM datasource would be DeletePov hyperion reports localhost hyp__localhost__Hfm__Hfm__FinancialManagement
An example for Planning datasource would be DeletePov hyperion reports localhost hyp__localhost__Plan1__Plan1__Planning
HTH-
Jasmine. -
Immediately after supplying userid/password/database parameters when launching the Oracle Query Builder, the following error message is displayed:
OBE-15952: User privilege table not loaded
OBE-15950: No Query Builder tables--Database open/save is disabled
ORA-00942: table or view does not exist
What needs to be done to eliminate the messages?hello,
query builder is no longer a supported product. however, you might want to try adding verbose=no to the commandline.
thanks,
ph. -
hi guys,
can u list out some common errors in
queries from enduser point of view.
thanks
due point will be assignedhi Vijay,
some .....
- query execution terminated
-> program error,
need to apply bw support package or front end sp level.
you may search oss note
-> performance problem,
RSRT check read mode, cache etc
review modeling, query design etc
- query displays the unit "ERR" or the currency "ERROR"
Check the units or currencies and correct the
corresponding data records in the InfoProvider.
- query displays some formulat/ckf as 'X',
check if no values exist for basic kf, different
unit/curency in calculation
hope this helps. -
5200:Error Executing Query
Hi,
I am getting below error while running a report in FR.
5200:Error Executing Query:
Could you please let me know what is the problem and how to resolve it.
Thanks,Hi,
This might be due to corrupt POV this can be resolved by just deleting POV for the use and again setting it up.
Regards,
Gyan -
When I connect my iTouch to my PC (windows 7) an error message is displayed reading "iTunes was unable to load dataclass information from sync services. Reconnect or try again later". I have completely uninstalled and then reinstalled iTunes. I have also completely reset my iTouch to factory defaults. I have even followed all the advice provided previously to other forum member with the same problem. Nothing seems to work. Please help me someone.
I'm getting the same problem with both my IPad 4 and iPhone 5
Just started a few weeks back, Since then I have had two Itunes updates.
Is this something Apple is aware of and trying to fix? -
No error message is displayed while deleting an attendee from a course.
Hi Experts,
Mu customer is facing problem while trying to delete an attendee from a course under Training and event management. The path he is following is right:
1) In PSV1(Dynamic Attendance Menu)the employee is seen firmly booked in
a course.
2)Right-click on his name and select cancel
3)Click the dustbin to remove
But nothing is happening, neither the employee is getting moved from the course nor any error message is displaying giving us any indication of what can go wrong. Can you please suggest what can be the possible problem?
Strangest thing is, this problem is occuring only for one employee.
Thanks and Regards,
ToaHi Manoj,
Thanks for your reply.
That is the problem, no error message is showing. When the delete button is pressed, neither the attendee is getting deleted nor any error message is displaying as of why the deletion is not occuring.
FYI: The employee is not locked.
Thanks,
Toa -
Error in Query Execution : SQL Error: 1110
Dear Experts,
We did the system copy from production to Sandbox system. Executing one query got terminated with the following error.
Error SQL Error: 1110
Abort System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-
I copy this query to the new one and remove all the filter. It works!!!
Any suggestion on this issue?
RegardsHi,
check these threads
BEx query error
BEx Query Error
Regards
harikrishna N -
Hi all,
I am getting the following error when accessing HR payroll quires
"Formal error in query definition ( DIM <-> from[NAV]) ?
Can any body help me ?
KKI am getting the same error. Could you pls post the solution. I am on the following level (from the error message.
BI Java Release: 7 - Patch level: 0000000011 - Description: BI Web Applications Java - Additional info: - Production mode: true
BI ABAP Release: 700 - Patch level: 0012 - Description: SAP NetWeaver BI 7.0 (SAP_BW) - Additional info: - Production mode: true
Java Virtual Machine IBM J9 VM - IBM Corporation - 2.3
Operating System AIX - ppc64 - 5.3
I searched the OSS and found a note 1001621 which said apply support package: SAP_BW_VIRTUAL_COMP - Rel 700 - Pkg name SAPK70012NVCBWTECH
But, our basis guys came back with the reply that the solution suggested in OSS note is for SAPKW70011, but our system is already on SAPKW70012. So, this note cannot be applied.
Any help would be appreciated. -
Hi All
below query giving me error in query generator but working well in Sql server.
error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to select from. '' (SWEI)
Select
T1.U_grp01 As 'BA',T3.DocDate As 'Posting Date',Month(T3.DocDate) As 'PostMonth',Year(T3.DocDate) As 'PostYear',
'AR Invoice' As 'Type',T3.DocNum As 'Doc No',T3.CardCode As 'Cust. Code',T3.CardName As 'Cust. Name',T5.SlpName As 'Sale Emp. Name',
T4.IndustryC As 'Channel Type',T6.CityB As 'BillToCity',T7.Name As 'BillToState',T6.CityS As 'ShipToCity',T8.Name As 'ShipToState',
T4.U_Une_Zone As 'Zone',
T2.ItmsGrpNam As 'L1',T0.LineNum As 'Row No',T0.ItemCode As 'ItemCode',T0.Dscription As 'Item Name',t0.whscode,
T0.Quantity As 'Quantity',T0.StockPrice As 'COGS Price',IsNull(Sum(T0.Quantity * T0.StockPrice),0) As 'COGS Value',T0.VatSum As 'Tax Amount',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.PriceBefDi Else (T0.PriceBefDi * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.INMPrice Else (T0.INMPrice * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then Sum(T0.Quantity * T0.INMPrice) Else Sum(T0.Quantity * T0.INMPrice * T0.Rate) End) Else T0.LineTotal End) ,0) As 'Sales Value',t9.linetotal as 'Freight',
T3.DocType As 'DocType',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -90
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'BED',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -60
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'Cess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 9
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'HeCess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE (INV4.StaType = 1 or inv4.staType = 8)
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'VAT',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 8
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'CST'
From INV1 T0
Left Join OITM T1 On T1.ItemCode=T0.ItemCode
Left Join OITB T2 On T2.ItmsGrpCod=T1.ItmsGrpCod
Left Join OINV T3 On T3.DocEntry=T0.DocEntry
Left Join OCRD T4 On T4.CardCode=T3.CardCode
Left Join OSLP T5 On T5.SlpCode=T4.SlpCode
Left Join INV12 T6 On T6.DocEntry=T0.DocEntry
Left Join OCST T7 On T7.Code=T6.StateB and T7.Country='IN'
Left Join OCST T8 On T8.Code=T6.StateS and T8.Country='IN'
left join inv3 t9 on t9.docentry = t3.docentry
WHERE T3.[DocDate] >= [%0] and T3.[DocDate] <= [%1] and t3.U_UNE_GCAT = '2'
Group By T1.U_grp01,T3.DocEntry,T3.DocNum,T3.DocDate,T0.LineNum,T3.CardCode,T3.CardName,T5.SlpName,T4.IndustryC,T4.U_Une_Zone,
T6.CityB,T7.Name,T6.CityS,T8.Name,T0.VatSum,T0.Currency,T0.Rate,T3.DocType,T0.Price,T0.LineTotal,
T2.ItmsGrpNam,T0.ItemCode,T0.Dscription,T0.StockPrice,T0.INMPrice,T0.PriceBefDi,T0.Quantity,t9.linetotal,t0.WhsCode
Union All
Select
T1.U_grp01 As 'BA',T3.DocDate As 'Posting Date',Month(T3.DocDate) As 'PostMonth',Year(T3.DocDate) As 'PostYear',
'AR Invoice' As 'Type',T3.DocNum As 'Doc No',T3.CardCode As 'Cust. Code',T3.CardName As 'Cust. Name',T5.SlpName As 'Sale Emp. Name',
T4.IndustryC As 'Channel Type',T6.CityB As 'BillToCity',T7.Name As 'BillToState',T6.CityS As 'ShipToCity',T8.Name As 'ShipToState',
T4.U_Une_Zone As 'Zone',
T2.ItmsGrpNam As 'L1',T0.LineNum As 'Row No',T0.ItemCode As 'ItemCode',T0.Dscription As 'Item Name',t0.whscode,
T0.Quantity As 'Quantity',T0.StockPrice As 'COGS Price',IsNull(Sum(T0.Quantity * T0.StockPrice),0) As 'COGS Value',T0.VatSum As 'Tax Amount',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.PriceBefDi Else (T0.PriceBefDi * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.INMPrice Else (T0.INMPrice * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then Sum(T0.Quantity * T0.INMPrice) Else Sum(T0.Quantity * T0.INMPrice * T0.Rate) End) Else T0.LineTotal End) ,0) As 'Sales Value',t9.linetotal as 'Freight',
T3.DocType As 'DocType',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = -90
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'BED',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = -60
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'Cess',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = 9
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'HeCess',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE (rin4.StaType = 1 or rin4.staType = 8)
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'VAT',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = 8
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'CST'
From rin1 T0
Left Join OITM T1 On T1.ItemCode=T0.ItemCode
Left Join OITB T2 On T2.ItmsGrpCod=T1.ItmsGrpCod
Left Join Orin T3 On T3.DocEntry=T0.DocEntry
Left Join OCRD T4 On T4.CardCode=T3.CardCode
Left Join OSLP T5 On T5.SlpCode=T4.SlpCode
Left Join rin12 T6 On T6.DocEntry=T0.DocEntry
Left Join OCST T7 On T7.Code=T6.StateB and T7.Country='IN'
Left Join OCST T8 On T8.Code=T6.StateS and T8.Country='IN'
left join rin3 t9 on t9.docentry = t3.docentry
WHERE T3.[DocDate] >= [%0] and T3.[DocDate] <= [%1] and t3.U_UNE_GCAT = '2'
Group By T1.U_grp01,T3.DocEntry,T3.DocNum,T3.DocDate,T0.LineNum,T3.CardCode,T3.CardName,T5.SlpName,T4.IndustryC,T4.U_Une_Zone,
T6.CityB,T7.Name,T6.CityS,T8.Name,T0.VatSum,T0.Currency,T0.Rate,T3.DocType,T0.Price,T0.LineTotal,
T2.ItmsGrpNam,T0.ItemCode,T0.Dscription,T0.StockPrice,T0.INMPrice,T0.PriceBefDi,T0.Quantity,t9.linetotal,t0.WhsCode
Thanks in AdvanceHi deepak..
try this
/* SELECT FROM OSRT P1 */
DECLARE @FROM AS DATE
/* WHERE */
SET @FROM = /* P1.FromDate */ '[%1]'
/* SELECT FROM OSRT P2 */
DECLARE @TO AS DATE
/* WHERE */
SET @TO = /* P2.ToDate */ '[%2]';
SELECT T1.U_grp01 AS 'BA',
T3.DocDate AS 'Posting Date',
MONTH(T3.DocDate) AS 'PostMonth',
YEAR(T3.DocDate) AS 'PostYear',
'AR Invoice' AS 'Type',
T3.DocNum AS 'Doc No',
T3.CardCode AS 'Cust. Code',
T3.CardName AS 'Cust. Name',
T5.SlpName AS 'Sale Emp. Name',
T4.IndustryC AS 'Channel Type',
T6.CityB AS 'BillToCity',
T7.Name AS 'BillToState',
T6.CityS AS 'ShipToCity',
T8.Name AS 'ShipToState',
T4.U_Une_Zone AS 'Zone',
T2.ItmsGrpNam AS 'L1',
T0.LineNum AS 'Row No',
T0.ItemCode AS 'ItemCode',
T0.Dscription AS 'Item Name',
t0.whscode,
T0.Quantity AS 'Quantity',
T0.StockPrice AS 'COGS Price',
ISNULL(SUM(T0.Quantity * T0.StockPrice), 0) AS 'COGS Value',
T0.VatSum AS 'Tax Amount',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.PriceBefDi
ELSE (T0.PriceBefDi * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.INMPrice
ELSE (T0.INMPrice * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN SUM(T0.Quantity * T0.INMPrice)
ELSE SUM(T0.Quantity * T0.INMPrice * T0.Rate)
END
ELSE T0.LineTotal
END
0
) AS 'Sales Value',
t9.linetotal AS 'Freight',
T3.DocType AS 'DocType',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = -90
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'BED',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = -60
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'Cess',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = 9
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'HeCess',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE (INV4.StaType = 1 OR inv4.staType = 8)
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'VAT',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = 8
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'CST'
FROM INV1 T0
LEFT JOIN OITM T1
ON T1.ItemCode = T0.ItemCode
LEFT JOIN OITB T2
ON T2.ItmsGrpCod = T1.ItmsGrpCod
LEFT JOIN OINV T3
ON T3.DocEntry = T0.DocEntry
LEFT JOIN OCRD T4
ON T4.CardCode = T3.CardCode
LEFT JOIN OSLP T5
ON T5.SlpCode = T4.SlpCode
LEFT JOIN INV12 T6
ON T6.DocEntry = T0.DocEntry
LEFT JOIN OCST T7
ON T7.Code = T6.StateB
AND T7.Country = 'IN'
LEFT JOIN OCST T8
ON T8.Code = T6.StateS
AND T8.Country = 'IN'
LEFT JOIN inv3 t9
ON t9.docentry = t3.docentry
WHERE T3.[DocDate] >= @FROM
AND T3.[DocDate] <= @TO
AND t3.U_UNE_GCAT = '2'
GROUP BY
T1.U_grp01,
T3.DocEntry,
T3.DocNum,
T3.DocDate,
T0.LineNum,
T3.CardCode,
T3.CardName,
T5.SlpName,
T4.IndustryC,
T4.U_Une_Zone,
T6.CityB,
T7.Name,
T6.CityS,
T8.Name,
T0.VatSum,
T0.Currency,
T0.Rate,
T3.DocType,
T0.Price,
T0.LineTotal,
T2.ItmsGrpNam,
T0.ItemCode,
T0.Dscription,
T0.StockPrice,
T0.INMPrice,
T0.PriceBefDi,
T0.Quantity,
t9.linetotal,
t0.WhsCode
UNION ALL
SELECT T1.U_grp01 AS 'BA',
T3.DocDate AS 'Posting Date',
MONTH(T3.DocDate) AS 'PostMonth',
YEAR(T3.DocDate) AS 'PostYear',
'AR Invoice' AS 'Type',
T3.DocNum AS 'Doc No',
T3.CardCode AS 'Cust. Code',
T3.CardName AS 'Cust. Name',
T5.SlpName AS 'Sale Emp. Name',
T4.IndustryC AS 'Channel Type',
T6.CityB AS 'BillToCity',
T7.Name AS 'BillToState',
T6.CityS AS 'ShipToCity',
T8.Name AS 'ShipToState',
T4.U_Une_Zone AS 'Zone',
T2.ItmsGrpNam AS 'L1',
T0.LineNum AS 'Row No',
T0.ItemCode AS 'ItemCode',
T0.Dscription AS 'Item Name',
t0.whscode,
T0.Quantity AS 'Quantity',
T0.StockPrice AS 'COGS Price',
ISNULL(SUM(T0.Quantity * T0.StockPrice), 0) AS 'COGS Value',
T0.VatSum AS 'Tax Amount',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.PriceBefDi
ELSE (T0.PriceBefDi * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.INMPrice
ELSE (T0.INMPrice * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN SUM(T0.Quantity * T0.INMPrice)
ELSE SUM(T0.Quantity * T0.INMPrice * T0.Rate)
END
ELSE T0.LineTotal
END
0
) AS 'Sales Value',
t9.linetotal AS 'Freight',
T3.DocType AS 'DocType',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = -90
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'BED',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = -60
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'Cess',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = 9
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'HeCess',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE (rin4.StaType = 1 OR rin4.staType = 8)
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'VAT',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = 8
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'CST'
FROM rin1 T0
LEFT JOIN OITM T1
ON T1.ItemCode = T0.ItemCode
LEFT JOIN OITB T2
ON T2.ItmsGrpCod = T1.ItmsGrpCod
LEFT JOIN [dbo].[Orin] T3
ON T3.DocEntry = T0.DocEntry
LEFT JOIN OCRD T4
ON T4.CardCode = T3.CardCode
LEFT JOIN OSLP T5
ON T5.SlpCode = T4.SlpCode
LEFT JOIN rin12 T6
ON T6.DocEntry = T0.DocEntry
LEFT JOIN OCST T7
ON T7.Code = T6.StateB
AND T7.Country = 'IN'
LEFT JOIN OCST T8
ON T8.Code = T6.StateS
AND T8.Country = 'IN'
LEFT JOIN rin3 t9
ON t9.docentry = t3.docentry
WHERE T3.[DocDate] >= @FROM
AND T3.[DocDate] <= @TO
AND t3.U_UNE_GCAT = '2'
GROUP BY
T1.U_grp01,
T3.DocEntry,
T3.DocNum,
T3.DocDate,
T0.LineNum,
T3.CardCode,
T3.CardName,
T5.SlpName,
T4.IndustryC,
T4.U_Une_Zone,
T6.CityB,
T7.Name,
T6.CityS,
T8.Name,
T0.VatSum,
T0.Currency,
T0.Rate,
T3.DocType,
T0.Price,
T0.LineTotal,
T2.ItmsGrpNam,
T0.ItemCode,
T0.Dscription,
T0.StockPrice,
T0.INMPrice,
T0.PriceBefDi,
T0.Quantity,
t9.linetotal,
t0.WhsCode
rgds
Kennedy -
Error in Query (EXCEPT)
Dear Experts,
I Have Error in query
My Query Such as:
Select TransNum from Oinm where transType=310000001
Except
Select Docnum from [dbo].[Opn_Stock] where U_ TransTypeStk=310000001
Show Error: Browse mode is invalid for statements containing a UNION, INTERSECT and EXCEPT operator.
Note: This query smoothly run in Sql 2005 but throw Error in SAP while execute in sap query generator.
Regards,
Sumeet VaityThe SBO generally inserts a for browse line at the end of the query. But not allways! E.g. probably your query would work if you refrase it in such a way:
Select TransNum from Oinm where transType=310000001
Except --union
Select Docnum from dbo.Opn_Stock where U_ TransTypeStk=310000001
That is it does not insert this line in case of a union, even in the comment part! -
Error occurred querying a data source in office 365.
I have created a simple infopath form and in one of my dropdown box i am receiving the REST services.
when i run the infopath form 2013 in preview it was running good but when i upload it on to office 365 cloud it's showing me error. i had converted the services into UDL and save it on Data connection Library and it's approved.
Warning
Click OK to resume filling out the form. You may want to check your form data for errors.
The entry has been added to the Windows event log of the server.
log ID:5566
Correlation ID:feb08a9c-9d47-30f5-5d89-60340242d6d1.Hi,
According to your post, my understanding is that you got error when querying a data source in office 365.
Per my knowleadge, we cannot connect to SharePoint Web Services from InfoPath Forms within SharePoint Online.
Loopback protection is enabled on the SharePoint Online environment and will block calls to SOAP and REST from InfoPath Form Services.
For more information, you can refer to:
Error message when you connect an InfoPath form to a SharePoint Online web service: "An error occurred while connecting to a Web Service"
As a workaround, to look up data for some dropdowns from several external REST Web Services, we need to have a Data Connection library in your Site Collection in which to store the UDCX files.
The steps seem to be:
Create a Data Connection Library in your Site Collection
In the InfoPath ribbon, go to Data, then Data Connections. Your existing data connections should be listed.
Choose the data connection which is hosted on a different domain.
Clink the
Convert to Connection File… button
In the location selector, specify the path to the Data Connection Library you created above.
Leave the
Relative to site collection (recommended) radio button selected.
Click OK
Here is a great blog for your reference:
InfoPath 2013 Forms on Office365 with External REST DataSources
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
How to fix objects below repeating frame?
hello all! I wonder how to fix the last elements such as signature area of a sale order report to the bottom of the last page? i find the area always appear closely after the detail lines...i don't want this Thanks for any help!
-
Getting filename of an image thats produced with JPEGImageEncoder?
I have something like: response.setContentType("image/jpeg"); OutputStream output = response.getOutputStream(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(output); encoder.encode(bi); output.close(); The result when executed in a bro
-
Reprocessing of Production order/Process order
Hi friends, Can anybody explain me what is reprocessing of production order. Plz explain me in a step by step manner. Thanks very much. Kind Regards
-
Shipment cost doc calulation problem
Dear All, I am facing problem while creating shipment cost document, its not calculating at all. what I observed is the subitem is not getting created and its is throughing V0104 error message: Requested function B_P is not available here. can you pl
-
Hello,I was here yesterday,asking about removing white background.Thanks for answer.You said to unsubscribe when replying,but my english is not good enough to understand what you mean.Moreover I am very new to the computer and your my first forum,so