Posted: Tue Apr 08, 2008 10:30 am Post subject: Открытие заданной директории
Такое задание, на селекционном экране поле для ввода пути к файлу. Если пользователь ввел начальный путь или он задан из варианта, нужно, чтобы по нажатию F4 открылось заданная директория с заданным фильтром.
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\work\*.xls'.
Сейчас же открывается корень диска C: и доступны все файлы для выбора.
Age: 170 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Tue Apr 08, 2008 7:18 pm Post subject:
Code:
DATA: rc TYPE I,
user_action TYPE I,
filetable TYPE FILETABLE,
wa_filetable TYPE LINE OF FILETABLE,
result TYPE C,
s_path TYPE STRING,
l_drive TYPE PCFILE-DRIVE,
l_path TYPE PCFILE-PATH,
s_filter TYPE STRING.
PARAMETERS: p_path TYPE PCFILE-PATH LOWER CASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
CLEAR: rc.
REFRESH: filetable.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr.
DATA: dynpfields LIKE dynpread OCCURS 1 WITH HEADER LINE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.