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

RFC_READ_TABLE for long structures?

Clemenss
Active Contributor
0 Likes
2,791

Hi folks,

I tried to read IDoc data thru RFC. FM RFC_READ_TABLE does not support records exceeding 512 chars, SDATA is 1000.

Is there any RFC-capable generic select function?

TIA,

Clemens

Hi folks,

I tried to read IDoc data thru RFC. FM RFC_READ_TABLE does not support records exceeding 512 chars, SDATA is 1000.

Is there any RFC-capable generic select function?

TIA,

Clemens

11 REPLIES 11
Read only

Former Member
0 Likes
1,901

Hi,

Try with RPY_TABLE_READ.

Reward if useful!

Read only

0 Likes
1,901

Hi Prasad Dixit,

I am sorry I can't reward this because it is far awy froim the answer to my question.

FIY: RPY_TABLE_READ can't read data.

Regards,

Clemens

P.S.: You hereby qualify for points deduction

Read only

Former Member
0 Likes
1,901

Hi,

If you fill QUERY_TABLE it will read data.

Reward <b>IF</b> useful!

Read only

0 Likes
1,901
function rpy_table_read.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       IMPORTING
*"             VALUE(ACTIVATION_TYPE_I) LIKE  DDREFSTRUC-STATE
*"                             DEFAULT 'M'
*"             VALUE(LANGUAGE) LIKE  SY-LANGU DEFAULT SY-LANGU
*"             VALUE(TABLE_NAME) LIKE  RPY_TABL-TABLNAME
*"             VALUE(WITH_DOCU) LIKE  RGLIF-WITH_DOCU DEFAULT ' '
*"             VALUE(DOCUTYPE) LIKE  RGLIF-DOCUTYPE DEFAULT 'U'
*"       EXPORTING
*"             VALUE(TABL_INF) LIKE  RPY_TABL STRUCTURE  RPY_TABL
*"             VALUE(TABL_TECHNICS) LIKE  RPY_TBTECH
*"                             STRUCTURE  RPY_TBTECH
*"             VALUE(ACTIVATION_TYPE_O) LIKE  DDREFSTRUC-STATE
*"       TABLES
*"              TABL_FIELDS STRUCTURE  RPY_FIEL
*"              DOCU_TABLE_USER STRUCTURE  RPY_OBJTAB OPTIONAL
*"              DOCU_TABLE_TECH STRUCTURE  TLINE OPTIONAL
*"       EXCEPTIONS
*"              CANCELLED
*"              NOT_FOUND
*"              PERMISSION_ERROR
*"              ILLEGAL_TYPE
*"----------------------------------------------------------------------

sorry, can't find QUERY_TABLE, [dummy!].

You may provide an example or aplogize.

Regards,

Clemens

Read only

former_member194669
Active Contributor
0 Likes
1,901

Hi,

Check this OSS Note 382318 - 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>.                

aRs

Read only

0 Likes
1,901

Hi a®s,

thanks a lot. When the time allows, I will apply the note. Maybe not your addition because I'm not sure this is unicode-compatible because query_table may contain non-char components casting alignment problems.

But the length restriction should be relaxed.

Regards,

Clemens

Read only

former_member194669
Active Contributor
0 Likes
1,901

In type casting i got error in unicode, thats why i changed the code

May be it will be useful to you.

aRs

Read only

0 Likes
1,901

Hi,

this code is resolve problem mentioned by the notes 382318.

A problem occurs in function module RFC_READ_TABLE.

Reason and Prerequisites

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

and any further modification we have to do.....

if any further modification means please let me know. it is very urgent.

poit will be awarded.

Thanks in advance.

Best Regds,

zubera

Read only

0 Likes
1,901

Hi,

Changes mentioned in the note, is enough for working with long structures.

Read only

Former Member
0 Likes
1,901

Hi aRs,

Thanks for your reply. so code mentioned above solve all the problem of notes 382318, or i have to add anything else.

Please reply. if it is enough i will reward point to you.

Thanks in advance.

Best Regds,

zubera

Read only

Clemenss
Active Contributor
0 Likes
1,901

OK, use of RFC_READ_TABLE remains restricted - for quality assurance reasons it is OK. Generic tools of this kind of scope may get adapted by the customer to actual needs.

Regards,

Clemens