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

external call to DLL function

Former Member
0 Likes
404

Hi Experts,

can anyone tell me the best way to call a dll function from within ABAP?

Thanks,

Jennifer

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
332

Hi, I don't have any experience in calling DLLs, but you may want to give this a try.



report zrich_0001.

data: path type string.

path = 'C:WINDOWS<the_file_Name>.dll'.

call method cl_gui_frontend_services=>execute
   exporting
     application            = path
  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