CREATE VIEW "SBODEMODE"."B1_AllDocumentsView_VAWG" ( "ObjType", "DocDate", "DocNum", "DocEntry", "UseEffDate", "isCrin", "DiscPrcnt" ) AS (((((((((((((((((((((((((((SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OINV" T0) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ORIN" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ODLN" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ORDN" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OPCH" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ORPC" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OPDN" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ORPD" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ODPI" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ODPO" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OCSI" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OCPI" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OCSV" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OCPV" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."ORDR" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OIGN" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OIGE" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 1 AS "UseEffDate", 'N' AS "isCrin", 0 AS "DiscPrcnt" FROM  "SBODEMODE"."OIPF" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", 'N' AS "isCrin", 0 AS "DiscPrcnt" FROM  "SBODEMODE"."OIQI" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", 'N' AS "isCrin", 0 AS "DiscPrcnt" FROM  "SBODEMODE"."OIQR" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", 'N' AS "isCrin", 0 AS "DiscPrcnt" FROM  "SBODEMODE"."OMRV" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OPOR" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OPQT" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OQUT" T0)) UNION ALL (SELECT 202 AS "ObjType", T0."PostDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", 'N' AS "isCrin", 0 AS "DiscPrcnt" FROM  "SBODEMODE"."OWOR" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OWTQ" T0)) UNION ALL (SELECT T0."ObjType", T0."DocDate", T0."DocNum", T0."DocEntry", 0 AS "UseEffDate", T0."isCrin", T0."DiscPrcnt" FROM  "SBODEMODE"."OWTR" T0)) WITH READ ONLY