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: 

Function Module with RFC for accessing tables

Former Member
0 Kudos

Hello All

I am programming using ABAP in Solution Manager system. I have to take data from tables(T001W and T001K) from a R/3 Server. Is there a function module which extracts data from tables via RFC ?

Thanks

Tharani.

4 REPLIES 4

Former Member
0 Kudos

Use RFC_READ_TABLE with whatever table name you want.

Regards,

Ravi

Note : Plase mark all the helpful answers

0 Kudos

use RFC_READ_TABLE and pass the table name to this RFC, this way you can get the data from the tables which you have.

0 Kudos

Could you explain me as ow to use this FM for my requirement?

I/P:

RFC - XXXXXX

Table - T001W

Table i.p Fields - Plant

To extract from the table - Sales org.

Thanks

Tharani

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check thes FM's:

RFC_GET_TABLE_ENTRIES

TABLE_ENTRIES_GET_VIA_RFC

GET_TABLE_RFC

or develop a RFC enabled FM to get the required data in R/3 and call it from your program

example :

data: wtab type BDSEL_STAT occurs 0 with header line.

data: tab type BDI_ENTRY occurs 0 with header line.

name = T001W.

CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'

destination dest

EXPORTING

LANGU = SY-LANGU

TABNAME = name

TABLES

SEL_TAB = wtab

  • NAMETAB =

TABENTRY = tab

EXCEPTIONS

INTERNAL_ERROR = 1

TABLE_HAS_NO_FIELDS = 2

TABLE_NOT_ACTIV = 3

NOT_AUTHORIZED = 4

OTHERS = 5 .

Regards

Laxman

Message was edited by: Laxmana Kumar