Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Webi erractic sql

$
0
0

Hi all,

 

 

Environment : 4.0 SP5

 

 

Webi SQL is behaving very differently after applying Section ( Dimension ) > Break (Dimension ) > Break (Dimension )> Sum ( Measure ) > Refresh report.

 

 

Below is the one I see initially :

 

SELECT  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTRUNDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZR,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ACCOUNTNO,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZRACCOUNT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAIDDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.DESCRIPTION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.FIRSTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.LASTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCEUCER,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.USERPAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLOSEDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.SPONNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRAIL12B1,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORDERTICKET,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENTTIN1,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.OVERRIDE,  RPT.GNTMTN_PRODUCEUCE_RGHT.INVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONCPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHGPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.BASECOMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALCTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.ADTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPECODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALDEFCOMP,  RPT.GNTMTN_PRODUCEUCE_RGHT.SHARECLASS,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPEDESC,  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTFOR,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCEDNAME
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )

 

 

 

 

 

Erratic behavior

 

 

after applying Section ( Dimension ) > Break (Dimension ) > Break (Dimension )> Sum ( Measure ) > Refresh report

 

SELECT  4 AS GID,  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTRUNDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZR,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ACCOUNTNO,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZRACCOUNT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAIDDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.DESCRIPTION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.FIRSTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.LASTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCEUCER,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.USERPAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLOSEDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.SPONNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRAIL12B1,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORDERTICKET,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENTTIN1,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.OVERRIDE,  RPT.GNTMTN_PRODUCEUCE_RGHT.INVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONCPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHGPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.BASECOMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALCTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.ADTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPECODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALDEFCOMP,  RPT.GNTMTN_PRODUCEUCE_RGHT.SHARECLASS,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPEDESC,  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTFOR,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCEDNAME
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )
UNION  
SELECT  0 AS GID,  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTRUNDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZR,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.ACCOUNTNO,  RPT.GNTMTN_PRODUCEUCE_RGHT.ZRACCOUNT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAIDDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYTENCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.DESCRIPTION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.FIRSTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.LASTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORIGTENCODE,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.PAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.USERPAYCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLOSEDATE,  RPT.GNTMTN_PRODUCEUCE_RGHT.SPONNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRAIL12B1,  RPT.GNTMTN_PRODUCEUCE_RGHT.ORDERTICKET,  RPT.GNTMTN_PRODUCEUCE_RGHT.CLIENTTIN1,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTIDT,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTNAME,  RPT.GNTMTN_PRODUCEUCE_RGHT.OVERRIDE,  RPT.GNTMTN_PRODUCEUCE_RGHT.INVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONCPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TICKETCHGPCT,  RPT.GNTMTN_PRODUCEUCE_RGHT.BASECOMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALCTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.COMMISSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYINVESTMENT,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYCONSSION,  RPT.GNTMTN_PRODUCEUCE_RGHT.DISPLAYTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.ADTYPE,  RPT.GNTMTN_PRODUCEUCE_RGHT.TENTICKETCHG,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPECODE,  RPT.GNTMTN_PRODUCEUCE_RGHT.CALDEFCOMP,  RPT.GNTMTN_PRODUCEUCE_RGHT.SHARECLASS,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCETYPEDESC,  RPT.GNTMTN_PRODUCEUCE_RGHT.RGHTFOR,  RPT.GNTMTN_PRODUCEUCE_RGHT.PRODUCEDNAME
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )
UNION  
SELECT  1 AS GID,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXTYPE,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )
UNION  
SELECT  2 AS GID,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.TRXTYPE,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.ADTYPE,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )
UNION  
SELECT  3 AS GID,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE,  NULL,  NULL,  NULL,  RPT.GNTMTN_PRODUCEUCE_RGHT.CONSSION,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL,  NULL
FROM  RPT.GNTMTN_PRODUCEUCE_RGHT
WHERE  (   RPT.GNTMTN_PRODUCEUCE_RGHT.ZR  =  'UNIONA'   AND   RPT.GNTMTN_PRODUCEUCE_RGHT.GRANTCODE  IN  ( '15806','90200','18600','96001','99146','99135','17382','81700'  )  )

 

 

 

It is basically coming from a single view. I don't understand why it is behaving. Please advise.


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>