Skip to Content
0
Former Member
Oct 12, 2006 at 02:38 PM

TABLE_ENTRIES_GET_VIA_RFC

504 Views

I am using this function to read DD02L in R/3 from BW. The table layout is returned in <b>nametab</b>. However, all the byte counts are doubled. For instance, TABNAME is the usual CHAR 30, but it is 60 bytes in nametab. And so it goes for each field. I am able to deal with it, of course, by dividing by 2 before I parse the returned data.

But does anyone know why things are doubled?

Both BW and R/3 are UNICODE and 2004S.

  CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC' DESTINATION 'R3CLNT100'
    EXPORTING
      langu               = sy-langu
      only                = ' '
      tabname             = 'DD02L'
    IMPORTING
      rc                  = l_subrc
    TABLES
      sel_tab             = l_t_sel_tab
      nametab             = l_t_nametab
      tabentry            = l_t_tabentry
    EXCEPTIONS
      internal_error      = 1
      table_has_no_fields = 2
      table_not_activ     = 3
      not_authorized      = 4
      OTHERS              = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.