‎2007 Jun 11 3:30 PM
Hi All,
I need to Declare 2 parameters for Presentation server File Path & Application server file path.
Where if i want file to be taken from Desktop i will browse through Presentation server field & when i want file to be taken from Application Server[AL11] i will browse through Application server path and take the file into selection-screen.
1. In selection screen how do i need to declare above 2 fields!
2. How to validate both these paths.
Note: I need to browse and select the file from Desktop/AL11.
Thanks in advance.
Thanks,
Deep.
‎2007 Jun 11 3:40 PM
check this FM <b>F4_DXFILENAME_4_DYNP</b>, it may help to provide F4 help for both App.server and persentation server files.
Message was edited by:
Rajesh
‎2007 Jun 11 3:40 PM
check this FM <b>F4_DXFILENAME_4_DYNP</b>, it may help to provide F4 help for both App.server and persentation server files.
Message was edited by:
Rajesh
‎2007 Jun 11 3:50 PM
Use /SAPDMC/LSM_F4_SERVER_FILE function module for Application server Help
‎2007 Jun 11 3:45 PM
Hi,
Please try this FM DX_FILE_EXISTENCE_CHECK to validate both files (PC and Server).
Regards,
Ferry Lianto
‎2007 Jun 11 3:50 PM
Hi Deep,
Why don't you try to do it yourself and then if you get stuck ask a more specific question.
‎2007 Jun 11 3:51 PM
Hi ,
To browse a file from presentation server
selection-screen: begin of block blk with frame title text-001.
selection-screen : skip 1.
parameters : p_file like rlgrap-filename.
selection-screen : skip 1.
selection-screen : end of block blk.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
field_name = 'P_FILE'
importing
file_name = p_file.
TO PICK FILE FROM APPLICATION LAYER
HERE YOU HAVE TO MANUALLY ENTER THE FILE NAME . HERE YOU DON't have an option of browising the file .
let me know if you find a way to do that
parameters: dataset(132) lower case obligatory.
start-of-selection.
message s002(YY) with 'Opening' dataset.
open dataset dataset in text mode message sysmsg.
if sy-subrc <> 0.
message e001(YY) with sysmsg.
stop.
endif.
‎2007 Jun 11 3:52 PM
‎2007 Jun 11 3:54 PM
hi,
<b>follow this logic for presentation server.</b>
<b>parameters: file like rlgrap-filename.
data: file1 type file.
at selection-screen on help-request for file.
call function 'f4_filename'
exporting
program_name =
dynpro_number =
field =
importing
filename = file.
move file to file1.</b>
or
use any one of the below FM .............
<b>kd_get_file_name_on_f4.</b>
<b>ws_filename_get.</b>
<b>follow this link for brief information.</b>
http://www.erpgenie.com/abap/functions.htm
regards,
Ashokreddy.
Message was edited by:
Ashok Reddy