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

Directory & file name

Former Member
0 Likes
659

Hi Friends,

I wanted to know the field description for directory & filename.

just like we are using for filename

parameters: s_file like rlgrap-filename.

What I have to define for directory??

i.e.

parameteres: s_dir like ?????????

Hi Friends,

I wanted to know the field description for directory & filename.

just like we are using for filename

parameters: s_file like rlgrap-filename.

What I have to define for directory??

i.e.

parameteres: s_dir like ?????????

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
618

hi,

just give like this.

lv_dir TYPE rsmrgstr-path
or
DATA: lcl_directory TYPE char128.

Rgds

anver

Read only

0 Likes
618

Hi,

You can give it as rlgrap-filename only as the field filename contains both the directory structure and the filename in the directory.

but i dont see any requirement for which you will have to provide only directory path for the user without the actual filename.

Read only

Former Member
0 Likes
618

Hi Salil,

For directory use:

Parameters: s_dir type char256.

Regards,

Chetan.

PS:Reward points if this helps.

Read only

Former Member
0 Likes
618

Please read my blog it has an example as well,

/people/kathirvel.balakrishnan2/blog/2006/06/05/sap-php-together-application-server-directory-file-browser

Regards

Kathirvel