[59356] in SAPr3-news
Re: Aus c# mit SAP sprechen, oder Wo finde ich die SAP .NET Connector
daemon@ATHENA.MIT.EDU (Chris P. Vigelius)
Tue May 15 15:52:17 2007
To: sapr3-news@mit.edu
Date: Tue, 15 May 2007 21:51:48 +0200
From: "Chris P. Vigelius" <cv@secept.com>
Message-ID: <f2d300$u1u$03$1@news.t-online.com>
hi,
I don't know whether this reply really helps because it is a little bit
late, but...
> I'm not sure whether I need those "proxies" or not ...
> Because at development time I don't know the SAP functions which will
> be called.
Then you can't use the proxies, because they are bound to the function
module which they were generated for.
> I need something more general, like SAPFunctionsOCX to create a
> wrapper and decide at
> runtime which SAP function to call ...
> I don't even know if this is possible with the .net Connector ...
This is indeed possible, but to my knowledge there are no examples for
doing so - you'll probably have to reverse-engineer the code for a
generated proxy.
> Perhaps the RFC connector would fit better?? ... But will it work
> with .net?
If you mean our product (see .sig): Yes, this works if you create an
interop assembly - it is a pure COM component. But if you were talking
about SAP's own RFCSDK from SAP, that is a C-only library, so you would
have to create a wrapper by yourself (which is not an easy task to do,
and requires more than a little knowledge of C (not C#, you've got to do
all your allocation/deallocation manually).
regards,
chris
--
http://rfcconnector.com - RFC made easy