cancel
Showing results for 
Search instead for 
Did you mean: 

Run DLL in Sap

Former Member
0 Kudos

Hi,

i´ve been requested by my manager to find out how to run a dll in sap. They want us to implement a button in a sap screen to attach documents, this pushbutton will call to the DLL and this DLL will launch the documentation portal. Navigate into the documentation, pick up a document and bring back this link to the sap screen.

i´d appreciate your help, guys.

Thanks

View Entire Topic
Former Member
0 Kudos

hi, where is your DLL in, client or server.

if server, you can use SXPG_COMMAND_EXECUTE,

if client, you can use WS_EXECUTE or CL_GUI_FRONTEND_SERVICES method: EXECUTE(rich mentioned)

But there is something additional of mine, as I know, the correct way to launch a DLL is like this:

  • you should type in console windows like

RUNDLL.EXE <dllname>,<entrypoint> <optional arguments>

  • <entrypoint> is the name of function in your DLL

so, when you call the FM of SAP, command name is rundll32, parameter is the name of your DLL.

Hope it will be helpful

thanks

D028348
Associate
Associate
0 Kudos

Hi there,

I have the same problems calling DLLs from SAP.

Could You please give some more details how to call a special function in a DLL? What about parameters?

Thanx

Jens