07-10-2007 4:55 PM
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?
07-10-2007 5:21 PM
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
07-10-2007 4:58 PM
Hi,
Please try this FM RFC_READ_TABLE perhaps it may help.
Regards,
Ferry Lianto
07-10-2007 5:04 PM
As far as I know the RFC_READ_TABLE supports even less width (only 512 bytes?).
07-10-2007 5:06 PM
07-10-2007 5:10 PM
Hi !
Try RFC_GET_TABLE_ENTRIES , it has option to read max entries u want to read
Thanks,
Harkamal
07-10-2007 5:16 PM
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.
07-10-2007 5:21 PM
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
07-10-2007 5:22 PM
According to note 881127, TABLE_ENTRIES_GET_VIA_RFC is only intended for internal use. They suggest using a different FM.
Rob
07-12-2007 4:50 PM