‎2008 Jul 25 7:45 AM
Hi all,
i have a requirement like selection screen for F4 help where i need to pick the file from Application Server.
When i click on the field on selection screen it should display like same as the AL11
How can this posssible by calling any Function Module or Method ,Will anybody help me in displaying all the Directories with Paths.
Regards,
Madhavi
‎2008 Jul 25 8:14 AM
see below sample code:
PARAMETERS: p_file TYPE IBIPPARMS-PATH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME_SERVER'
EXPORTING
pfad = p_file
IMPORTING
FILE_NAME = p_file
EXCEPTIONS
NO_FILE_ON_SERVER = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2008 Jul 25 9:05 AM
Hi lakshmi,
what i need to mention in the p_file field.
will you explain wat it will display
‎2008 Jul 25 12:40 PM
Hi Madhavi,
check this code and for the field p_file no need to pass any thing. before that i have given some wrong code.
DATA: lv_hostname TYPE msxxlist-name.
DATA: lv_server TYPE bank_dte_jc_servername.
PARAMETERS: p_file TYPE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'
IMPORTING
e_server = lv_server.
lv_hostname = lv_server.
CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
EXPORTING
dynpfield_filename = 'P_FILE'
dyname = sy-cprog
dynumb = '1000'
filetype = 'P'
location = 'A'
server = lv_hostname.
just run this code separately in a SE38 prog. when ever u press F4 key on the field p_file, u can able to see like AL11 transaction.
‎2008 Jul 25 9:14 AM
Hi,
from this table ---> IBIPPARMS check once also do a where used list for the same.... will find where its been used.
Mohinder
‎2008 Jul 25 7:49 PM
Hi,
Try this FM '/SAPDMC/LSM_F4_SERVER_FILE'
Thanks,
Phani Diwakar.
‎2008 Jul 26 6:31 AM
Hi,
You have a function module that can be used for both the application as well as the presentation server.
F4_DXFILENAME_TOPRECURSION.
In I_LOCATION_FLAG parameter , put 'A' for application server and 'P' for presentation server.
Hope this is clear.
Thanks and regards
‎2008 Jul 26 11:51 AM
Check FM '/SAPDMC/LSM_F4_FRONTEND_FILE' and F4_dxfilename_toprecursion
‎2008 Oct 30 9:16 AM