Skip to Content
0
Former Member
Dec 19, 2011 at 10:11 PM

Problem whith RFC_READ_TABLE SAP.NET connector

86 Views

i'm using SAP .NET Connector 3 whith visual studio 2005

the connection whith the SAP Server is OK

i'm trying to get a table values (Rows) by using the BAPI *RFC_READ_TABLE *

i don't know how to pass parameter to this BAPI

this is my code

RfcRepository repo = prd.Repository;

IRfcTable table = null ;

IRfcFunction myFunction =

repo.CreateFunction

("RFC_READ_TABLE");

myFunction.SetValue("QUERY_TABLE", "ZIPAB_HEADER");

myFunction.SetValue("DATA", table );

myFunction.SetValue("FIELDS", ??);

myFunction.SetValue("OPTIONS", ??);

I have 3 fiilds to display from my table ZIPAB_HEADER

SCENARIO type Char 30

TICKET_PESAGE type char 40

DATE_E type DATS

Thanks