Execute an pc file from SAP

Using the following program one can open a word document file.

Using the following program one can open a word document file .
REPORT ZVIBE .
DATA : RBUFF .
CALL FUNCTION 'WS_EXECUTE'
    EXPORTING
*         DOCUMENT           = ' '
*         CD                 = ' '
*         COMMANDLINE        = ' '
*         INFORM             = ' '
         PROGRAM            = 'C:Program FilesMicrosoft OfficeOffice
                               WINWORD.EXE'
*         STAT               = ' '
*         WINID              = ' '
*         OSMAC_SCRIPT       = ' '
*         OSMAC_CREATOR      = ' '
*         WIN16_EXT          = ' '
*         EXEC_RC            = ' '
    IMPORTING
         RBUFF              = RBUFF
     EXCEPTIONS
          FRONTEND_ERROR     = 1
          NO_BATCH           = 2
          PROG_NOT_FOUND     = 3
          ILLEGAL_OPTION     = 4
          GUI_REFUSE_EXECUTE = 5
          OTHERS             = 6.
		
		
This was first published in October 2001

Dig deeper on SAP Basis administration and NetWeaver administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close