Application Development 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: 

call .net dll in abap

Former Member
0 Kudos

hi expert.this is my scenario.

i have one dll file from c# language which contains so many methods.

i want to call in dll from abap and use this method.

how can i do this?

thanks

1 ACCEPTED SOLUTION

sai_krishna24
Active Participant
0 Kudos

This message was moderated.

12 REPLIES 12

Former Member
0 Kudos

hi maryam,

i dont think thats possible.

As far as i know you only can start full compiled windows-applications from abap (.exe etc).

Regards Nico

former_member339717
Active Participant
0 Kudos

This message was moderated.

former_member339717
Active Participant
0 Kudos

This message was moderated.

0 Kudos

hi thanks for your reply.but i don't understand what they say.

i want one sample that call dll and set parameters and get output.

thanks

sai_krishna24
Active Participant
0 Kudos

This message was moderated.

0 Kudos

i have dll file no exe file

0 Kudos

Hi Maryam,

Did you succeed calling the DLL from ABAP ?

Thanks.

Regards.

0 Kudos

HI.

YES I CAN DO THIS .

0 Kudos

I will be grateful if you can explain me how you did it.

My scenario is simple : I created a DLL using CSHARP.

How to use it from ABAP ?

Thanks is advance.

Regards

0 Kudos

HI SORRY FOR MY DELAY

I USE

CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE

  EXPORTING

    DOCUMENT               = DOCUMENT

*    APPLICATION            =

*    PARAMETER              =

*    DEFAULT_DIRECTORY      =

*    MAXIMIZED              =

*    MINIMIZED              =

*    SYNCHRONOUS            =

*    OPERATION              = 'OPEN'

*  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

*    SYNCHRONOUS_FAILED     = 8

*    NOT_SUPPORTED_BY_GUI   = 9

*    others                 = 10

        .

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

PLEASE ASK ME IF YOU HAVE ANY QUESTION.

0 Kudos

Thanks a lot!

Regards.

0 Kudos

you can use make use GUI_UPLOAD Function Module Also.