2005 Nov 04 6:40 PM
Hello Everyone,
Can anyone tell me wheather if its possible, if so how to access windows DLL files through ABAP programming.
I have a tool which have to be integionrated into sap. Its API documentation says any language which can access tht tools API (like c++/VB/Power Builder, etc) can access that tools API.
If anyone can help me with this that will be grt help.
Regards
Rahul
Hello Everyone,
Can anyone tell me wheather if its possible, if so how to access windows DLL files through ABAP programming.
I have a tool which have to be integionrated into sap. Its API documentation says any language which can access tht tools API (like c++/VB/Power Builder, etc) can access that tools API.
If anyone can help me with this that will be grt help.
Regards
Rahul
2005 Nov 04 8:13 PM
You can make a c/c++ rfc program which is accessible by ABAP calling your DLL. The c/c++ program is then nothing else but a wrapper.
The rfc deveolpment kit (SDK) can be found on your harddrive where your SAPGUI ist stored.There are coding examples as well.
2005 Nov 06 7:34 AM
hi, kesi
so you want to consume the windows DLL in ABAP, right?
I think you can envelop your windows DLL into a Component. Expose the proper interface to outside world, and in the method of Component, only can the API of DLL according to the inputted parameter.
As the DLL will inside the Component, you can do a aggregation for this DLL in the compoment.
Dotnet or ATL/C++ can achieve what I say. I think you can understand what I mean.
And after that, you can creat object for the component you created in ABAP, just like other component ABAP use in SAP system. you can search some document on OLE programming in ABAP, that will be helpful to you.
And of course, you can achieve your target by other way, like create a simple C++ application as a 'exe', can excute file in ABAP, with some paramter. In the C++ app you can call the DLL.
But I think the Component solution is more professional.
Hope it will be helpful to you
thanks