Uploaded by Marco Cristobal

debug query cds

advertisement
* Open SQL Statement Preview *
SELECT
A1~GJAHR AS K____20911
, A1~WWPRD_PA AS K____21237
, A1~TIPOVALOR AS K____22531
, A1~RKCUR AS K____20964
, COUNT( * ) AS Z____111_SUM
, SUM( A1~COSTO_SOC_2 ) AS Z____25592_SUM
, SUM( A1~COSTO_SOC ) AS Z____25616_SUM
, SUM( A1~VENTA_SOC ) AS Z____25621_SUM
FROM
ZBI_CDS_I_ACDOCA4( P_FECHA2 = '2020' , P_FECHA3 = '2021' , P_CATEGO = 'PPTO' ) AS A1
WHERE
( ( ( (
A1~FKART
IN (
'ZP94'
,'ZP95'
,'ZP96'
,'ZP98'
,'ZP9B'
,'ZP9C'
,'ZP9H'
,'ZP9X'
,'ZQ93'
,'ZQ94'
,'ZQ95'
,'ZR9!'
,'ZR90'
,'ZR91'
,'ZR92'
,'ZR93'
,'ZR94'
,'ZR95'
,'ZR96'
,'ZR97'
,'ZR98'
,'ZR99'
,'ZR9F'
,'ZR9J'
,'ZR9R'
,'ZRC4'
,'ZP92'
,'ZR9L'
,'ZR9M'
,'ZP93'
,''
,'ZR9S'
,'ZR9V'
,'ZR9X'
,'ZR9Y'
,'ZRC3'
,'ZS91'
,'ZS92'
,'ZS94'
,'ZS95'
,'ZS96'
,'ZS97'
,'ZS98'
,'ZS99'
,'ZS9D'
,'ZS9E'
,'ZS9F'
,'ZS9L'
,'ZSRV'
,'ZSRZ'
,'F2'
,'S1'
,'ZP9I'
,'ZR9N'
,'ZR9Q'
,'ZR9K'
,'S2'
,'ZP91'
,'ZS9M'
)
OR
A1~FKART
IS NULL
) ) AND ( (
A1~POPER
BETWEEN '001'
AND '012'
) ) AND ( (
A1~RACCT
IN (
'FCOR741221'
,'FCOR741220'
,'FCOR741210'
,'FCOR741200'
,'FCOR741121'
,'FCOR741120'
,'FCOR741110'
,'FCOR741100'
,'FCOR731200'
,'FCOR731100'
,'FCOR709210'
,'FCOR709120'
,'FCOR709110'
,'FCOR704210'
,'FCOR704200'
,'FCOR704110'
,'FCOR704100'
,'FCOR703122'
,'FCOR703121'
,'FCOR703112'
,'FCOR703111'
,'FCOR701122'
,'FCOR701121'
,'FCOR701120'
,'FCOR701112'
,'FCOR701111'
,'FCOR701110'
,'FCOR695913'
,'FCOR695912'
,'FCOR695911'
,'FCOR695600'
,'FCOR695400'
,'FCOR695120'
,'FCOR695110'
,'FCOR694210'
,'FCOR694110'
,'FCOR693122'
,'FCOR693121'
,'FCOR693113'
,'FCOR693112'
,'FCOR693111'
,'FCOR691120'
,'FCOR691110'
)
) ) AND ( (
A1~RBUKRS
= '2000'
) ) ) )
GROUP BY
A1~GJAHR
,A1~WWPRD_PA
,A1~TIPOVALOR
,A1~RKCUR
ORDER BY
K____20911
, K____21237
, K____22531
%_HINTS 'RESULT_LAG ('hana_long')'
Download