‎2007 Sep 11 12:58 PM
Hi all,
I have made one classical report in which i am taking output in text file.
Now for printing that text file i have made one BATCH File (Executable file of DOS).
So is there any command to execute that batch file directly from my report?
Thanks in Advance.
‎2007 Sep 11 1:00 PM
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = 'C:SAPtest.bat'
operation = 'OPEN'.
‎2007 Sep 11 1:00 PM
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = 'C:SAPtest.bat'
operation = 'OPEN'.
‎2007 Sep 11 1:01 PM
Hi,
Use FM 'GUI_RUN' or GUI_EXEC' to run ur batch file..
Cheers,
SImha.
‎2007 Sep 11 1:39 PM
Use FM - WS_EXECUTE. Pass the pathname in the PROGRAM - thats it.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING PROGRAM = 'D:/SKC.BAT'.Hope it solves ur problem.