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
RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Do you think that you could fire it with the following code.



  CALL METHOD CL_GUI_FRONTEND_SERVICES->EXECUTE
    EXPORTING
      DOCUMENT               = <file_path_of_dll>
      MAXIMIZED              = 'X'
      SYNCHRONOUS            = 'X'
    EXCEPTIONS
      CNTL_ERROR             = 1
      ERROR_NO_GUI           = 2
      BAD_PARAMETER          = 3
      FILE_NOT_FOUND         = 4
      PATH_NOT_FOUND         = 5
      FILE_EXTENSION_UNKNOWN = 6
      ERROR_EXECUTE_FAILED   = 7
      OTHERS                 = 8.

Regards,

Rich Heilman

Former Member
0 Kudos

Thanks, i´ll check it with the programmers