获取文件名称的两个函数
获取文件名称的两个函数
FORM f4_filename changing c_file.
ENDFORM.
" F4_FILENAME
或
*&---------------------------------------------------------------------*
*&
Form zfrom_get_filename
*&---------------------------------------------------------------------*
*
text 获取文件名称
*----------------------------------------------------------------------*
FORM zfrom_get_filename CHANGING
filename.
ENDFORM.
使用的时候用
at selection-screen on value-request for p_file.
at selection-screen on p_file.
或者
at selection-screen on value-request for p_file.
perform f4_filename changing p_file.
at selection-screen on p_file.
都行,也可以用F4直接打开,主要是用在
at selection-screen on value-request for p_file.
at selection-screen on p_file.
这个位置就行
另外下载的时候,也可以用这两个去确定地址
http://blog.sina.com.cn/sapliumeng