KONP
Documentação:
Descrição da tabela:
Tabela dimensão de cadastro de preços
Tabelas utilizadas:
SAP.KONP
SAP.A922
SAP.A900
SAP.A918
SAP.A857
SAP.A858
SAP.A859
SAP.A860
SAP.A861
SAP.A862
SAP.A803
SAP.A809
SAP.A804
SAP.A805
SAP.A890
SAP.A806
SAP.A812
SAP.A807
SAP.A888
SAP.A887
Montagem:
1 - Select tabela KONP trazendo os seguintes campos:
KSCHL
KBETR
KONWA
KPEIN
KMEIN
KNUMH
2 - Select na tabela A922 e KONP trazendo os seguintes campos:
a.KAPPL, a.VKORG , a.VTWEG , a.KDKGR , a.KUNNR ,'null' PLTYP , 'null' SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' LLAND , a.MATNR , 'null' KUNWE ,'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
3 - Select na tabela A900 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , a.VTWEG , a.KDKGR , 'null' KUNNR , a.PLTYP , 'null' SPART ,'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' LLAND , a.MATNR, 'null' KUNWE ,'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST ,a.DATBI , a.DATAB , a.KBSTAT
4 - Select na tabela A918 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , a.VTWEG , a.KDKGR ,'null' KUNNR ,'null' PLTYP ,'null' SPART ,'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' LLAND , a.MATNR, 'null' KUNWE ,'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
5 - Select na tabela A857 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , a.REGIO ,'null' KONDA , 'null' HIENR , 'null' LLAND , a.MATNR , 'null' KUNWE ,'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
6 - Select na tabela A858 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , a.PLTYP , a.SPART , 'null' REGIO , a.KONDA , 'null' HIENR , 'null' LLAND , a.MATNR, 'null' KUNWE ,'null' ZZ1_BZIRK_PCH, 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
7 - Select na tabela A859 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , a.PLTYP , a.SPART , 'null' REGIO , a.KONDA, 'null' HIENR, 'null' LLAND , a.MATNR , 'null' KUNWE , a.ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 , 'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
8 - Select na tabela A860 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , a.PLTYP , a.SPART , a.REGIO , a.KONDA , 'null' HIENR , 'null' LLAND , a.MATNR, 'null' KUNWE ,'null' ZZ1_BZIRK_PCH, 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
9 - Select na tabela A861 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , a.KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , a.HIENR , 'null' LLAND , a.MATNR , 'null' KUNWE ,'null' ZZ1_BZIRK_PCH, 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
10 - Select na tabela A862 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR, 'null' PLTYP, a.SPART , a.REGIO , a.KONDA, 'null' HIENR, 'null' LLAND , a.MATNR, 'null' KUNWE , 'null' ZZ1_BZIRK_PCH , a.ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
11 - Select na tabela A803 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , a.KUNNR , 'null' PLTYP , a.SPART, 'null' REGIO , 'null' KONDA, 'null' HIENR ,'null' KUNWE , 'null' LLAND , a.MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
12 - Select na tabela A809 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG, 'null' VTWEG , 'null' KDKGR , a.KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , a.KUNWE , 'null' LLAND , a.MATNR, 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 ,'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
13 - Select na tabela A804 e KONP trazendo os seguintes campos:
a.KAPPL ,a.VKORG , 'null' VTWEG , 'null' KDKGR , a.KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND , 'null' MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , a.MVGR4 , a.KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
14 - Select na tabela A805 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , a.KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND , 'null' MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , a.MVGR4 , 'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
15 - Select na tabela A890 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , a.PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND , a.MATNR, 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 , 'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
16 - Select na tabela A806 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , a.KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND , a.MATNR, 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 , 'null' KONDM , a.KFRST ,a.DATBI ,a.DATAB ,a.KBSTAT
17 - Select na tabela A812 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , a.KONDA , 'null' HIENR , a.KUNWE , 'null' LLAND , 'null' MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , a.MVGR4 , a.KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
18 - Select na tabela A807 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , a.KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND ,'null' MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , a.MVGR4 , a.KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
19 - Select na tabela A888 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' KUNWE , a.LLAND , a.MATNR , 'null' ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 , 'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
20 - Select na tabela A887 e KONP trazendo os seguintes campos:
a.KAPPL , a.VKORG , 'null' VTWEG , 'null' KDKGR , 'null' KUNNR , 'null' PLTYP , a.SPART , 'null' REGIO , 'null' KONDA , 'null' HIENR , 'null' KUNWE , 'null' LLAND , a.MATNR , a.ZZ1_BZIRK_PCH , 'null' ZZ1_KVGR5_PCH , 'null' MVGR4 , 'null' KONDM , a.KFRST , a.DATBI , a.DATAB , a.KBSTAT
21 - Faz um union entre todas as tabelas selecionadas acima para saida da tabela final
Databricks:
camada_semantica.konp
Documentação de desenvolvimento - Basseto
1 -Data-types 2 - Regra de desenvolvimento