Sunday, December 26, 2010
REPORT ztest_notepad. DATA:g_server TYPE c. PARAMETERS:p_server AS CHECKBOX USER-COMMAND uc1. PARAMETERS:p_path TYPE dxfields-longpath. PARAMETERS:p_file TYPE dxfields-longpath. AT SELECTION-SCREEN OUTPUT. CASE p_server. WHEN 'X'. CLEAR p_file. g_server = 'A'. p_path = '\usr\sap\tmp'. WHEN space. CLEAR p_file. g_server = 'P'. p_path = 'C:\'. ENDCASE. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file. CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION' EXPORTING i_location_flag = g_server i_server = ' ' i_path = p_path filemask = ' ' fileoperation = 'R' IMPORTING o_path = p_path. p_file = p_path. START-OF-SELECTION. WRITE p_file.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.