2006 Feb 09 5:15 AM
Could any one tell the FM for F4 help to select the file from application server.
2006 Feb 09 5:19 AM
Hi sri,
1. F4_DXFILENAME_TOPRECURSION
This is the FM.
regards,
amit m.
Could any one tell the FM for F4 help to select the file from application server.
2006 Feb 09 5:19 AM
Hi sri,
1. F4_DXFILENAME_TOPRECURSION
This is the FM.
regards,
amit m.
2006 Feb 09 5:24 AM
2006 Feb 09 5:33 AM
2006 Feb 09 5:26 AM
RZL_READ_DIR_LOCAL this is to read a directory from
application server.
F4_DXFILENAME_TOPRECURSION - popup to select one file from the given application server directory (pattern allowed)
2006 Feb 09 5:27 AM
Hi,
I think this FM WORKS..
F4_DXFILENAME_TOPRECURSION
but this returns only a single file path from the Application Server
regards
satesh
2006 Feb 09 5:29 AM
Hi Sri Kanth,
in ur selection screen, define it this way..
PARAMETERS:
p_logfil TYPE filename-fileintern.
You will get the F4 automatically.
This is for a logical file.
p_file TYPE filename-fileextern.
Rgds,
Prabhu.
2006 Feb 09 5:35 AM
Hi Prabhu,
This is not selecting anything , I am just getting the F4 option, but it is not displaying any thing?
2006 Feb 09 5:39 AM
Hi,
Try this one..
REPORT ZTESTAPPL.
data: t_filetab type table of SALFLDIR with header line,
t_spopli type table of spopli with header line.
parameters p_dir like SALFILE-LONGNAME default 'D:\SAPWORKING'.
call function 'RZL_READ_DIR_LOCAL'
exporting
name = p_dir
tables
file_tbl = t_filetab
EXCEPTIONS
ARGUMENT_ERROR = 1
NOT_FOUND = 2
OTHERS = 3
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at t_filetab.
if t_filetab-size ne space.
t_spopli-varoption = t_filetab-name.
append t_spopli.
clear t_spopli.
endif.
endloop.
call function 'POPUP_TO_DECIDE_LIST'
exporting
CURSORLINE = 1
MARK_FLAG = 'X'
MARK_MAX = 25
START_COL = 0
START_ROW = 0
textline1 = 'Choose Files'
TEXTLINE2 = ' '
TEXTLINE3 = ' '
titel = 'File Selection'
DISPLAY_ONLY = ' '
IMPORTING
ANSWER =
tables
t_spopli = t_spopli
EXCEPTIONS
NOT_ENOUGH_ANSWERS = 1
TOO_MUCH_ANSWERS = 2
TOO_MUCH_MARKS = 3
OTHERS = 4
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at t_spopli.
if t_spopli-selflag ne ' '.
write 😕 'Selected File: ' , t_spopli-varoption.
endif.
reward points if helpful
2006 Feb 09 5:41 AM
Fileintern will work ONLY if there are any logical filenames defined already.
To configure a logical filename, goto transaction 'FILE'.
Search the forum for posts on how to configure in FILE transaction.
2006 Feb 09 5:51 AM
Hi,
Use the following function module
F4_FILENAME
Description for this is:F4 for filename / Filemanager support to locate file in a directory .Uses current dynpro value, calls WS_FILENAME_GET
May b this will help u.
Regards,
Sira
2006 Feb 09 6:00 AM
2006 Feb 09 5:33 AM
Here is one that I used and works charmingly.
/SAPDMC/LSM_F4_SERVER_FILE.
This is used by LSMW for browsing application server files.