Skip to Content
0
Former Member
Nov 01, 2005 at 08:57 AM

RFC function is called with null paremeters on SAP side

76 Views

I used the new version of .Net Connector 2.0.1.

I created a simple client called RFC function with one table parameter and simple RFC function inserts record to simple table on SAP side.

If I call this RFC function from SAP side the record is inserted to my table with correct value.

If I call this RFC function from NET side the record is inserted with null value.

What's wrong ?

Could anybody help me ?

Code :

SAP side

FUNCTION ZRVFRFCNV.

*" TABLES

*" ITDATA STRUCTURE ZRVNAMEVALUE

insert into ZRVNAMEVALUE values ITDATA.

ENDFUNCTION.

Net side

ZRVNAMEVALUE nam_val2 = new ZRVNAMEVALUE();

nam_val2.Name = "100";

nam_val2.Value = "NORD";

ZRVNAMEVALUETable tblTest = new ZRVNAMEVALUETable();

tblTest.Add(nam_val2);

// for testing : dataGrid show correct values

dataGrid1.SetDataBinding(tblTest, "");

this.sapProxy11.Zrvfrfcnv(ref tblTest);