/
KONP

KONP

Documentação:

Descrição da tabela:

Tabela dimensão de cadastro de preços

Tabelas utilizadas:

  1. SAP.KONP

  2. SAP.A922

  3. SAP.A900

  4. SAP.A918

  5. SAP.A857

  6. SAP.A858

  7. SAP.A859

  8. SAP.A860

  9. SAP.A861

  10. SAP.A862

  11. SAP.A803

  12. SAP.A809

  13. SAP.A804

  14. SAP.A805

  15. SAP.A890

  16. SAP.A806

  17. SAP.A812

  18. SAP.A807

  19. SAP.A888

  20. 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

 

Add label

Related content