Code: Alles auswählen.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
Hey Unit,Unit605 hat geschrieben:Schnelle Antwort: <F1> auf -->Code: Alles auswählen.
CONCATENATE
Code: Alles auswählen.
FORM DATEIUMBENENNEN USING P_GV_CSV_PATH.
data: command type string.
concatenate 'mv' P_GV_CSV_PATH into command.
call 'SYSTEM' id 'COMMAND' field command
ENDFORM. " DATEIUMBENENNEN
Code: Alles auswählen.
FORM DATEIUMBENENNEN USING P_GV_CSV_PATH.
data: lv_name TYPE string.
gv_zaelher = gv_zaelher + 1.
lv_name = 'D:\Bapi Kundenauftrag\Bearbeitet:' ."+ gv_zaelher.
concatenate 'mv' P_GV_CSV_PATH into lv_name.
* call 'SYSTEM' id 'COMMAND' field command
ENDFORM. " DATEIUMBENENNEN
Unit605 hat geschrieben:Schnelle Antwort: <F1> auf -->Code: Alles auswählen.
CONCATENATE
Code: Alles auswählen.
SEPARATED BY SPACE.
Code: Alles auswählen.
*** Copy processed files from source to archiv path
cl_gui_frontend_services=>file_copy(
EXPORTING
source = lv_guisourcefile
destination = lv_guiarchivfile ).
....and delete source file
cl_gui_frontend_services=>file_delete(
EXPORTING
filename = lv_guisourcefile
CHANGING
rc = lv_subrc ).
Code: Alles auswählen.
DATA:
pathname TYPE string,
old_filename TYPE string,
new_filename TYPE string,
parameter TYPE string.
pathname = 'c:\temp\'.
old_filename = 'test.txt'.
new_filename = 'done_test.txt'.
CONCATENATE pathname old_filename INTO old_filename.
CONCATENATE '/c ren' old_filename new_filename
INTO parameter SEPARATED BY space.
WRITE: / 'Command: ', 'cmd ', parameter.
cl_gui_frontend_services=>execute(
application = 'cmd.exe'
parameter = parameter ).