Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Presentation server and Application server path validations

Former Member
0 Likes
1,551

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
981

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

7 REPLIES 7
Read only

Former Member
0 Likes
982

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

Read only

0 Likes
981

Use /SAPDMC/LSM_F4_SERVER_FILE function module for Application server Help

Read only

ferry_lianto
Active Contributor
0 Likes
981

Hi,

Please try this FM DX_FILE_EXISTENCE_CHECK to validate both files (PC and Server).

Regards,

Ferry Lianto

Read only

che_eky
Active Contributor
0 Likes
981

Hi Deep,

Why don't you try to do it yourself and then if you get stuck ask a more specific question.

Read only

Former Member
0 Likes
981

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.

Read only

Former Member
0 Likes
981

Hi

USE /SAPDMC/LSM_F4_SERVER_FILE FM

Regards

Ravi

Read only

Former Member
0 Likes
981

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