Llamar aplicación externa de SAP

WS_EXECUTE permite ejecutar el programa externo de SAP, permite pasar parámetros.

CALL FUNCTION ‘WS_EXECUTE’
EXPORTING
* DOCUMENT = ‘ ‘
* CD = ‘ ‘
COMMANDLINE = ‘ -min -a c:destino.zip c:1.txt c:2.txt’
* INFORM = ‘ ‘
PROGRAM = ‘winzip32.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
.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

One Response to “Llamar aplicación externa de SAP”

  1. alasbarricadas.org Says:

    Hello, i feel that i saw you visited my blog so i came to return the choose?

    .I’m attempting to in finding issues to enhance my site!I guess its good enough to use some of your ideas!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: