The document discusses various ABAP coding techniques including:
1. Using field symbols to read values from a table and check if a record exists.
2. Defining a range of values for use in selections.
3. Looping through a table and modifying the content of fields conditionally.
4. Creating ABAP classes with definitions, implementations, and objects to call methods.
The document discusses various ABAP coding techniques including:
1. Using field symbols to read values from a table and check if a record exists.
2. Defining a range of values for use in selections.
3. Looping through a table and modifying the content of fields conditionally.
4. Creating ABAP classes with definitions, implementations, and objects to call methods.
The document discusses various ABAP coding techniques including:
1. Using field symbols to read values from a table and check if a record exists.
2. Defining a range of values for use in selections.
3. Looping through a table and modifying the content of fields conditionally.
4. Creating ABAP classes with definitions, implementations, and objects to call methods.
12:32 READ FIELD-SYMBOL: <TABLE> ASSIGN TABLE[ CAMPO = VLR_COND ] T TABLE com TYPE LINE OF TABLE. O FIELD-SYMBOL(<STRUCT>). FIELD- READ TABLE TABLE ASSIGN SYMBOL <TABLE> WITH KEY FIELD = VLR_COND.
READ READ TABLE TABLE WITH KE IF line_exists( i_venda[ tpvenda =
TABLE Y FIELD = 'ZVLT' ] ). VLR_COND TRANSPORTING NO ... TRANSPOR FIELDS. ENDIF. TING NO IF sy-subrc = 0. FIELD ... ENDIF.
RANGE de SELECT 'I' AS sign,
Select 'EQ' AS option, CAMPO_LOW AS low, CAMPO_HIGH AS high "CAST( @space AS CHAR( 40 ) ) AS high FROM @IT as range INTO TABLE @DATA(LR_CAMPO).
Range com TYPES:
valores ty_field_r TYPE RANGE OF tab le-field. definidos
Modificar LOOP AT itab ASSIGNING METHOD conv_field_to_main.
conteudo FIELD-SYMBOL(<itab>). r_itab = VALUE #( IF <itab>-field1 NE LET i_itab = r_itab IN de N 10. FOR ls_itab IN lt_itab ( campos de <itab>-field1 = 10. field1 = COND #( WHEN ls_ita uma tabela, ENDIF. b-field1 NE 'A' com ENDLOOP. THEN 'A' condição ELSE ls_ita b-field1 ) ) ) . ENDMETHOD.
Criação de CLASS lcl_classe DEFINIT
Objeto ION. CLASS lcl_classe DEFINITION. ... ... ENDCLASS. ENDCLASS.
CLASS lcl_rclasse IMPLEM CLASS lcl_rclasse IMPLEMENTATION.
ENTATION. ... ... ENDCLASS. ENDCLASS.
DATA: lo_objeto TYPE REF TO DATA(lo_objeto) = NEW lcl_classe lcl_classe. ( ).