Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RFC READ of large tables

Former Member
0 Kudos

Hi,

I'm trying to read table contents with the function TABLE_ENTRIES_GET_VIA_RFC.

The function module works fine as long as the table is small but with large tables I'm getting an returncode 5. Is there any possibility to get tables that are wider than 2048 bytes?

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

If you are changing RFC_READ_TABLE, please change this also. this is not in the above said NOTE.


old code:-->

   data: begin of work, buffer(30000), end of work.
   field-symbols: <wa> type any, <comp> type any.
   assign work to <wa> casting type (query_table).
   if rowcount > 0.
     rowcount = rowcount + rowskips.
   endif.

New Code :-->
  data: dref type ref to data.           
  field-symbols: <wa> type any, <comp> type any.
  create data dref type (query_table).  
  assign dref->* to <wa>.                

aRs

8 REPLIES 8

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM RFC_READ_TABLE perhaps it may help.

Regards,

Ferry Lianto

0 Kudos

As far as I know the RFC_READ_TABLE supports even less width (only 512 bytes?).

former_member194669
Active Contributor
0 Kudos

Hi,

Check this OSS Note 382318 - RFC_READ_TABLE

aRs

0 Kudos

Hi !

Try RFC_GET_TABLE_ENTRIES , it has option to read max entries u want to read

Thanks,

Harkamal

0 Kudos

The RFC_GET_TABLE_ENTRIES has also TAB512 as associated type and won't work for my purpose.

It seems that the only possibility is to copy one of these function modules and do some adjustments.

former_member194669
Active Contributor
0 Kudos

Hi,

If you are changing RFC_READ_TABLE, please change this also. this is not in the above said NOTE.


old code:-->

   data: begin of work, buffer(30000), end of work.
   field-symbols: <wa> type any, <comp> type any.
   assign work to <wa> casting type (query_table).
   if rowcount > 0.
     rowcount = rowcount + rowskips.
   endif.

New Code :-->
  data: dref type ref to data.           
  field-symbols: <wa> type any, <comp> type any.
  create data dref type (query_table).  
  assign dref->* to <wa>.                

aRs

Former Member
0 Kudos

According to note 881127, TABLE_ENTRIES_GET_VIA_RFC is only intended for internal use. They suggest using a different FM.

Rob

Former Member
0 Kudos