Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Thursday, February 21, 2008

Calling an external program using sap abap

You want to call a program on your PC from an ABAP program ? try this function :
     *This example calls the dos prompt DATA:
     i_returncode TYPE i.
         
CALL FUNCTION 'GUI_EXEC'
     EXPORTING
     command = 'CMD' <<==-- CMD calls the DOS prompt but you can put any program here
     * PARAMETER = 'test'
     IMPORTING
      returncode = i_returncode.
     there is a lot of other functions to communicate with the PC like:
     GUI_CREATE_DIRECTORY GUI_DELETE_FILE GUI_DOWNLOAD
     GUI_EXEC
     GUI_FILE_SAVE_DIALOG
     GUI_GET_DESKTOP_INFO
     GUI_GET_FILE_INFO
     etc...

You want to call a program on your PC from an ABAP program ? try this function :
     *This example calls the dos prompt DATA:
     i_returncode TYPE i.
      CALL FUNCTION 'GUI_EXEC'
        EXPORTING
       command = 'CMD' <<==-- CMD calls the DOS prompt but you can put any program here
       * PARAMETER = 'test'
        IMPORTING
           returncode = i_returncode.
     there is a lot of other functions to communicate with the PC like:
      GUI_CREATE_DIRECTORY GUI_DELETE_FILE GUI_DOWNLOAD
     GUI_EXEC
     GUI_FILE_SAVE_DIALOG
     GUI_GET_DESKTOP_INFO
     GUI_GET_FILE_INFO
     etc...

No comments:

Post a Comment

Content

Recent Topics