cancel
Showing results for 
Search instead for 
Did you mean: 

Empty table list with SAP Table Wizarrd in VB.Net 2003

Former Member
0 Kudos

I’ve a problem with the SAP Table Wizard in MS VB.NET 2003. After generating a SAP .NET Connector proxy class with Visual C# I want test it with a small windows forms application in VB.NET 2003. When I use the SAP Table Wizard I receive the following dialog box:

“Select SAP table type to add to your Component or Form. If the desired type does not appear in the list, make that the project has been compiled at least once”

The dialog contains an empty drop down field.

I’ve no idea how I can manage this problem. Any suggestions or hints?

(Sorry for my terrible English. )

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have still the same problem. The SAP Table Wizard shows no Table in the drop down list. And now I am sure I use a RFC function with a table.

When I create a Windows Form in the C# SAP proxy class project, the SAP Table Wizard provides me the expected table. When I do the same in VB.NET, I get nothing.

I have added my SAP proxy class as reference to my VB project.

reiner_hille-doering
Active Contributor
0 Kudos

Are both projects (the SAP Proxy DLL and the VB App) in the same solution? The Wizard only finds stuff from Source code. If you reference your proxy as DLL, the Tables are not found.

BTW: You can also add a SAPTable to your Windows form by hand - without the SAP Table Wizard:

- Open the VB file with the Windows Form in Source Mode.

- Expand the "Designer created" section.

- Look where the member variables are declared. Add a declaration of your table, e.g. "Private myTable As <Namespace>.BRFCKNA1Table"

- In the "InializeComponent" method, add an instanciation, e.g. "myTable = new Namespace>.BRFCKNA1Table". You can do it at any valid place.

- Turn back to design view - you should see "myTable" now.

Former Member
0 Kudos

I put both projects in the same solution and now it works. Thank you.

Former Member
0 Kudos

O no, you are right. That’s the reason. My RFC Functions returns no table. Embarrassing.

Thanks.

reiner_hille-doering
Active Contributor
0 Kudos

The SAP Table Wizard searches your project and other projects in your Solution for Types that inherit from SAPTable. Therefore you should first check if your project contains any proxies with tables. There are RFC functions that do not have any table type - thus you would not be able to add one.

If you are sure that you have tables in your project or solution, and your project is compiled successfully, there might be something corrupted with your Visual Studio or project.