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: 

calling an application written in C/C++ from SAP

0 Kudos

Hi

I have a need to call an application written in C/C++ language in external system from RFC.Can anyone guide me how to do it.

2 REPLIES 2

Former Member
0 Kudos

Try something like this:

CALL FUNCTION 'WS_EXECUTE'

EXPORTING

  • DOCUMENT = ' '

cd = 'c:\temp '

  • COMMANDLINE = ' '

  • INFORM = ' '

program = 'c:\temp\YourProgHere.exe'

  • STAT = ' '

  • WINID = ' '

  • OSMAC_SCRIPT = ' '

  • OSMAC_CREATOR = ' '

  • WIN16_EXT = ' '

  • EXEC_RC = ' '

  • IMPORTING

  • RBUFF =

EXCEPTIONS

frontend_error = 1

no_batch = 2

prog_not_found = 3

illegal_option = 4

gui_refuse_execute = 5

OTHERS = 6

0 Kudos

Look at the RFC Library in SAP Service Marketplace.