Application Development and Automation 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: 
Read only

Regarding Remote Function Module RFC_READ_TABLE

Former Member
0 Likes
2,254

Hi ,

This is urgent. point will be awarded.

I have following requirement in remote function module RFC_READ_TABLE

The scope of function module RFC_READ_TABLE is very restricted. E.g., due to the fixed maximum row size only smaller tables can be accessed. There are several data types that cannot be handled, and also there are doubts regarding the Unicode compatibility of the function module.

However, all this is quite immaterial, because the function is not meant to be publicly used anyway. It was only created to be used as a sample in various training courses, and is clearly flagged as "not released for customer".

Solution.

so please let me know how to overcome this problem in RFC_READ_TABLE.

Thanks in advance.

Best Regds,

zubera

3 REPLIES 3
Read only

Former Member
0 Likes
846

Try the following.

1) Refer SAP Note: 758278, 382318

2) Try to fill query_table in FM RFC_READ_TABLE.

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>.

Else, I guess the only option is to write your own RFC enabled FMs.

Hope it helps.

Lokesh

Message was edited by:

Lokesh Aggarwal

Read only

Former Member
0 Likes
846

hi lokesh,

the code u mentioned ( new code) what it will do?

Whether it will help in accessing larger table.

Please reply.

Thanks in advance.

Best regds,

zub

Read only

0 Likes
846

It helps to read long structures...

refer to this link

Please reward points if it helps.

Lokesh