003 - Tabela Interna / Work Area

Description

Tabela Interna e Work Area
Alexandre Cheung
Mind Map by Alexandre Cheung, updated more than 1 year ago
Alexandre Cheung
Created by Alexandre Cheung over 8 years ago
12
0

Resource summary

003 - Tabela Interna / Work Area
  1. MEMÓRIA TEMPORÁRIA
    1. TABELAS INTERNAS

      Annotations:

      • DATA : <ITAB> TYPE TABLE OF <DBTABLE> .
      1. INTO

        Annotations:

        • INTO TABLE ITAB. INTO CORRESPONDING FIELDS OF TABLE ITAB.
        1. OPERAÇÕES
          1. INSERÇÃO
            1. APPEND / APPEND LINES OF

              Annotations:

              • APPEND <WA> TO <ITAB> APPEND LINES OF <ITAB1> FROM <index no> TO <index no2>
              1. INSERT / INSERT LINES

                Annotations:

                • INSERT <WA> INTO <ITAB> INDEX <index><index></index> INSERT LINES OF <ITAB1> FROM <index no> TO <index no2>
                1. MODIFY

                  Annotations:

                  • MODIFY <ITAB> FROM <WA> INDEX <INDEX NO> TRANSPORTING <FIELD1> <FIELD2> MODIFY <ITAB> FROM <WA> TRANSPORTING <FIELD1> <FIELD2> WHERE <CONDITION>
                2. MODIFICAR
                  1. MODIFY

                    Annotations:

                    • MODIFY <ITAB> FROM <WA> INDEX <INDEX NO> [TRANSPORTING <FIELD1> <FIELD2>] MODIFY FROM TRANSPORTING WHERE
                  2. ÚTEIS
                    1. SORT

                      Annotations:

                      • SORT <ITAB> BY <FIELD1> <FIELD2>...ASCENDING/DESCENDING
                      1. DESCRIBE TABLE

                        Annotations:

                        • DESCRIBE TABLE <ITAB> LINES <v_lines>
                        1. MOVE

                          Annotations:

                          • <ITAB2[]> = <ITAB1[]>
                          1. COLLECT

                            Annotations:

                            • COLLECT <WA> INTO <ITAB>
                            1. SY-TABIX

                              Annotations:

                              • Armazena o índice do registro atual
                            2. LEITURA
                              1. READ TABLE ... WITH KEY

                                Annotations:

                                • READ TABLE <ITAB> INTO <WA> WITH KEY <FIELD1> = <FIELD1 VALUE> <FIELD1> = <FIELD1 VALUE> BINARY SEARCH .
                                1. READ TABLE .. INDEX

                                  Annotations:

                                  • READ TABLE <ITAB> INTO <WA> INDEX <index_no>
                                2. PERCORRER
                                  1. LOOP...ENDLOOP

                                    Annotations:

                                    • LOOP AT <ITAB> INTO <WA> . ENDLOOP. LOOP AT <ITAB> INTO <WA> WHERE <FIELDS1> = <VALUE> . ENDLOOP. LOOP AT <ITAB> INTO <WA> FROM <INDEX1> TO <INDEX2>. ENDLOOP.
                                  2. DELETAR
                                    1. DELETE

                                      Annotations:

                                      • DELETE <ITAB> INDEX <INDEX NO>. DELETE <ITAB> WHERE <FIELD1> = <FIELD1 VALUE>  <FIELD2> = <FIELD2 VALUE>.
                                      1. DELETE ADJACENT DUPLICATES

                                        Annotations:

                                        • DELETE ADJACENT DUPLICATED FROM <ITAB> DELETE ADJACENT DUPLICATES FROM <ITAB> COMPARING <FIELD1> <FIELD2>
                                      2. LIMPAR
                                        1. CLEAR

                                          Annotations:

                                          • CLEAR <WA>
                                          1. REFRESH

                                            Annotations:

                                            • REFRESH <ITAB>
                                            1. FREE

                                              Annotations:

                                              • FREE <WA>
                                          2. TIPOS
                                            1. STANDARD

                                              Annotations:

                                              • Key / Index. Append / Insert Sort
                                              1. SORTED

                                                Annotations:

                                                • Key / Index. Insert
                                                1. HASHED
                                              2. WORK AREAS

                                                Annotations:

                                                • DATA : <WA> TYPE <DBTABLE> .
                                                1. INTO

                                                  Annotations:

                                                  • INTO WA INTO CORRESPONDING FIELDS OF WA
                                                2. ESTRUTURA
                                                  1. TYPES

                                                    Annotations:

                                                    • TYPES : BEGIN OF TY_TABLE, MATNR TYPE MARA-MATNR, MTART TYPE MARA-MTART, MEINS TYPE MARA-MEINS, END OF TY_TABLE.
                                                3. SELECT
                                                  1. REGISTRO ÚNICO
                                                    1. SELECT SINGLE

                                                      Annotations:

                                                      • SELECT SINGLE * FROM DATABASETABLE INTO WA WHERE ALL KEY FIELDS Obs: quando o campo não é chave, a tabela é ordenada pela "condição do where"
                                                      1. UP TO 1 ROWS

                                                        Annotations:

                                                        • SELECT * FROM DATABASETABLE INTO WA UP TO 1 ROWS WHERE ALL KEY FIELDS/SOME FIELDS. ENDSELECT. Obs1: quando o campo não é chave, a tabela é ordenada pela "condição do where" no [UP TO 1 ROWS] Obs2: quando o campo não é chave, a tabela captura os primeiros registros no [UP TO X ROWS]
                                                      2. INNER JOIN
                                                        1. TABELAS TRANSPARENTES
                                                          1. ~
                                                            1. ON
                                                            2. FAE

                                                              Annotations:

                                                              • Obs: os campos da tabela interna não pode ser considerada no select.
                                                              1. TABELA INTERNA
                                                                1. IS NOT INITIAL
                                                                  1. SEM REGISTROS DUPLICADOS
                                                                  2. TABELA TRANSPARENTE
                                                                    1. WHERE
                                                                  Show full summary Hide full summary

                                                                  Similar

                                                                  SAP Activate Project Manager - Associate
                                                                  Marcelo Terhoch
                                                                  Seriais Área Vermelha
                                                                  Robson Gonzaga
                                                                  SAP Simulado
                                                                  andersonsiuta
                                                                  Dr Jekyll and Mr Hyde
                                                                  Rosie:)
                                                                  Main People in Medicine Through Time
                                                                  Holly Bamford
                                                                  Mind Maps with GoConqr
                                                                  croconnor
                                                                  AQA GCSE Physics Unit 2
                                                                  Gabi Germain
                                                                  PMP Formulas
                                                                  Krunk!
                                                                  The structure of the heart
                                                                  rachel_w
                                                                  New PSBD Question
                                                                  gems rai
                                                                  PSBD/PSCOD/ASSD Question for Supervisor
                                                                  Yuvraj Sunar