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.