nileshk271
Registered user
Global user
Registered: 02-2006
Posts: 1
Karma: 0 (+0/-0)
|
|
Reply | Quote
|
|
Is there any way to run window application through abap program.
I want to know that can we run windows application from sap program.
|
|
2/7/2006, 4:01 am
|
Send Email to nileshk271
Send PM to nileshk271
|
sapguest
Registered user
Global user
Registered: 02-2005
Posts: 6
Karma: 0 (+0/-0)
|
|
Reply | Quote
|
|
Re: Is there any way to run window application through abap program.
I know this is probably way too late to help you but this may make an interesting topic! did you get the answer to your question. What applications where you wanting to run?
Regards
|
|
9/1/2006, 5:28 pm
|
Send Email to sapguest
Send PM to sapguest
|
sathyakumar7
Registered user
Global user
Registered: 01-2007
Posts: 2
Karma: 0 (+0/-0)
|
|
Reply | Quote
|
|
Re: Is there any way to run window application through abap program.
hi,
hope this might help u.
********************************************************************************
*open word file and copy contens into ith file from an internal table
* and revert back changes into itab when file is closed
********************************************************************************
PARAMETERS: line(50).
DATA: start_time TYPE t, end_time TYPE t.
DATA: BEGIN OF itab OCCURS 3,
line(50),
END OF itab.
itab-line = line.
APPEND itab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = 'C:\TEMP\TEST.TXT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
program = 'C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE'
commandline = 'C:\TEMP\TEST.TXT'
inform = ''
EXCEPTIONS
prog_not_found.
GET TIME.
start_time = sy-uzeit.
end_time = sy-uzeit + 20.
DO.
GET TIME.
start_time = sy-uzeit.
IF start_time >= end_time.
EXIT.
ENDIF.
ENDDO.
CLEAR itab.
REFRESH itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\TEMP\TEST.TXT'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1.
IF sy-subrc = 0.
LOOP AT itab.
WRITE: / itab.
ENDLOOP.
ELSE.
WRITE: / 'File open error.'.
ENDIF.
|
|
1/8/2007, 9:14 am
|
Send Email to sathyakumar7
Send PM to sathyakumar7
|