How to get long text in ABAP/4

When you want to retrieve the data that record in long text on selected document for show in ABAP report, you can apply function module "READ_TEXT".

Example


DATA: I_LINE  LIKE TLINE OCCURS 0 WITH HEADER LINE.
     CALL FUNCTION ’READ_TEXT’
          EXPORTING
               ID                   = ’Z002’
               LANGUAGE             = SY-LANGU
               NAME                 = LV_NAME
               OBJECT               = ’VBBK’
          TABLES
               LINES                = I_LINE "Long text
          EXCEPTIONS
               ID                   = 1
               LANGUAGE             = 2
               NAME                 = 3
               NOT_FOUND            = 4
               OBJECT               = 5
               REFERENCE_CHECK      = 6
               WRONG_ACCESS_TO_ARCHIVE = 7
               OTHERS               = 8.

Post new comment