Skip to Content
0
Former Member
Jul 29, 2008 at 10:51 PM

TABLE_ENTRIES_GET_VIA_RFC issue

1102 Views

Some tables work and some tables don't for this function module. The ones that don't work say there is a unicode conversion issue where they are not mutually convertible. This is an example of one of the tables that gives me an error:

comm_info is type LFA1 in the tables tab of my FM

Data: comm_info_output type table of bdi_entry.

CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
    EXPORTING
      tabname               = 'LFA1'
*      langu                 = 'EN'
*      only                  = 'X'
    TABLES
      tabentry              = comm_info_output
      nametab               = gt_output2
      sel_tab               = gt_output3
    EXCEPTIONS
      system_failure        = 1  MESSAGE l_mes
      communication_failure = 2
      OTHERS                = 3.
 
comm_info[] = comm_info_output[].

Before you point out that comm_info and comm_info_output are different types, I know that. I read that the reason some fail and some don't is because of the "DEC" data type in the table structure. How do I get around this issue? I can't make comm_info_output type LFA1 because the imported table has to be of type bdi_entry or else it will fail. Is there a different function module I can call or is there a different way of going about this using the same FM (TABLE_ENTRIES_GET_VIA_RFC)