Skip to Content
author's profile photo
Former Member

Questions "SAP .NET Connector"

I tired to make use BAPI in VS.net with SAP .NET Connector 2.0

but when I created table class ,how can I insert value to that table.

Dim proxy As New SAPProxy1(cs)

' create a sap table variable

Dim tblCust As New BAPICUSTOMER_ADDRESSDATATable

Dim tblcust1 As New BAPICUSTOMER_SPECIALDATATable

Dim return1 As New BAPIRETURN1

Dim irange As New BAPICUSTOMER_IDRANGETable

' call the RFM method on the proxy

' If I want to insert some values to tblCust,How can I do?

proxy.Bapi_Customer_Getlist("1", 10, return1, tblCust, irange, tblcust1)

If I want to do the same in C#,how can I do?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 05, 2005 at 07:47 AM

    E.g.:

    Dim entry as New BAPICUSTOMER_IDRANGE()

    ' Assign fields.

    entry.<Propery> = <Value>

    irange.Add(entry)

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 05:03 AM

    Sorry(embarrassing...),could you give full sample code for "Bapi_Customer_Getlist",I still have some errors...

    boring..... in VB or C#

    Add comment
    10|10000 characters needed characters exceeded