Application Development 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: 

Validating file path of Application server

Former Member
0 Kudos

Hi,

Can somebody tell me how do i validate the filepath in the selection screen for application server.

neha

5 REPLIES 5

andreas_mann3
Active Contributor
0 Kudos

use fm EPS_GET_DIRECTORY_LISTING

A.

Former Member
0 Kudos

Neha,

CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'

EXPORTING

DIRECTORY = T_DIREC

TABLES

FILE_TABLE = FILE_TABLE

DIR_TABLE = DIR_TABLE .

IF DIR_TABLE[] IS INITIAL.

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

EXPORTING

TEXTLINE1 = 'Please Enter Valid Directory'

TEXTLINE2 = 'Ex: d:\temp'.

MESSAGE e013(zmamin) WITH ''.

V_FLAG = ''.

Pls. try with this.

Don't forget to reward if useful.

Former Member
0 Kudos

Hi Neha,

check this FM:

<b>RZL_READ_FILE</b>

Read a file from the presentation server if no server name is given, or read file from remote server. Very useful to avoid authority checks that occur doing an OPEN DATASET. This function using a SAP C program to read the data.

<b>RZL_READ_DIR</b>

If the server name is left blank, it reads a directory from local presentation server, otherwise it reads the directory of the remote server.

<b>

RZL_READ_DIR_LOCAL</b>

Read a directory on the Application Server

hope this solves your problem

regards,

Navneeth.K

Former Member
0 Kudos

HI,

U can use the Function Module "EPS_GET_DIRECTORY_LISTING".

Regards,

-->Suresh

Former Member
0 Kudos

Hi Neha

Please check following functions

PC_CHECK_FILENAME

PC_CHECK_FILENAME_WITH_EXT

Or directory

PC_CHECK_FILENAME

PC_CHECK_FILENAME_WITH_EXT