ABAP-长文本处理

查看交货单长文本属性

 

 

 

 

 长文本读取

   CALL FUNCTION 'READ_TEXT'
     EXPORTING
       id                      = header-tdid
       language                = sy-langu
       name                    = header-tdname
       object                  = header-tdobject
     TABLES
       lines                   = lines
     EXCEPTIONS
       id                      = 1
       language                = 2
       name                    = 3
       not_found               = 4
       object                  = 5
       reference_check         = 6
       wrong_access_to_archive = 7
       OTHERS                  = 8.

长文本赋值

  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      client = sy-mandt
      header = ls_header
      savemode_direct = 'X'
    TABLES
      lines  = lt_lines.

STRING转换为TLINE

****STRING转换为tline
  CALL FUNCTION 'VB_CP_CONVERT_STRING_2_ITF'
    EXPORTING
      i_string    = iv_text
    TABLES
      et_table = lt_lines.

 

posted @ 2022-09-27 17:25  阿胖的阿多  阅读(339)  评论(0)    收藏  举报