"
Supported by

Best practices
Thou shalt use TRANSPORTING NO FIELDS

Many times we do READ TABLE itbl or LOOP AT itbl just to do a CHECK SY-SUBRC = 0. In these cases, the actual data read is not needed. For these cases always use TRANSPORTING NO FIELDS. This way is faster and avoids having to declare a target structure.

Um comentário a “Thou shalt use TRANSPORTING NO FIELDS”

  1. Custodio Diz:

    Isso no monotono mundo pre ABAP 740. No mundo modernno usaras line_exist

    IF line_exists( lt_vbak[ vbeln = ‘0002000001’ ] ).

    ENDIF.

    Abraco!

Deixe um comentário


About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).