Discussion Locked

Dcom into SAP

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We are currenly trying to communiate from a Com component into SAP. We have created a RFC within SAP with two parameters, a filename and table. When we call the RFC using VB via Dcom and we do not specify any paramters, it works and envokes to RFC component within SAP. However, when the VB program tries to call the RFC with parameters we get the error 'Invalid Number of arguments' at VB complile. The RFC within SAP has the parameters as required. Has anyone called an RFC within SAP and passed tables and fields?

1 reply

by amanabala

Craig,

I have worked with VB and SAP RFC earlier and did not have the problem you are mentioning in your post. In our application, we wrote a method called Execute in the class (COM object) that would take the RFC name, and any parameters that the RFC needs. Then we would export those parameters to the "IN_PARAMS" field. This was with SAP 4.5B and VB 6.0. If you would like, I can send you the code for our class. If that does not solve your problem, please let me know and I will try to help you out.

Good luck,

Ravi

This discussion is closed to new replies.