cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use this RFC function

Former Member
0 Kudos

I just wanna create a monitor as same as TCODE ST06

so

I Added a TextBox, a Button and a DataGrid. and then everything has finished.as same as following step for "RFC_CUSTOMER_GET" from SAP connector 2.0 help

but how can I use the function? (VB.net 2003) I debugged the function in SE37 the function only need 1 parameters

so,I scratched some statments... but it is still not correct

Dim num1 As Integer

Dim dst As CPUSAPUSAGE.CPU_SINGLETable

Me.SapProxy11.Get_Cpu_Single("local", "", num1, num1, num1, num1, "", num1, num1, num1, num1, dst)

please tell me details steps

Thank in advance.

Yi

Create a “Windows Forms” application.

Add an empty SAP Connection class with the ABAP functions

RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.

Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the “Proxy field” icon to the designer.

Rename the new “Field1” to “Tab”. Change the “Type” property to BRFCKNA1Table. To do this, use the drop down icon.

Note that the ReadOnly property automatically changes to ”true” and the default value changes to “new BRFCKNA1Table()”.

Add a second Proxy Field with the name “Filter”, the type “String” and the default value “A*”.

Select the “Rfc_Customer_Get” function and click on the “…” button of the “Parameters” property.

Set the default values of the three parameters with the drop-down icon as follows:

Name1: Filter

Kunnr: “” Customer_T: _Tab

Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.

Add an instance of your SAP proxy to your Windows form, add a “Destination” and set the “Connection” property as described in “A4”.

Set the DataSource property of the datagrid to “sapProxy11”. Set the DataMember property of the datagrid to “Tab”. Alternatively you can set the DataSource to “sapProxy11.Tab” and leave the DataMember empty.

For “textBox1” use the DataBinding feature to bind the “Text property” of the textbox to “sapProxy11.Filter”.

Double-click the button to create an event handler and add a single line:

“this.sapProxy11.Rfc_Customer_Get_();”

You are using “sapProxy11” as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks,but problem still has not resolved, the data grid always show <b>All fields Zero</b>

reiner_hille-doering
Active Contributor
0 Kudos
Dim dst As New CPUSAPUSAGE.CPU_SINGLETable
Former Member
0 Kudos

I resolved it

datagrid1.datasource = dst