‎2006 Jul 07 6:16 AM
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.
‎2006 Jul 07 6:17 AM
Use RFC_READ_TABLE with whatever table name you want.
Regards,
Ravi
Note : Plase mark all the helpful answers
‎2006 Jul 07 6:19 AM
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.
‎2006 Jul 07 6:24 AM
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
‎2006 Jul 07 6:23 AM
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