Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP & windows DLL

Former Member
0 Likes
831

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

2 REPLIES 2
Read only

rainer_hbenthal
Active Contributor
0 Likes
591

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.

Read only

Former Member
0 Likes
591

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