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 last published in October 2001

Dig Deeper on SAP Basis administration and NetWeaver administration

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close