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 Parameter FM

Former Member
0 Likes
1,042

In al11 there are two colums, one is 'NAME OF DIRECTORY PARAMETER' and other is' DIRECTORY'.

my requirment is i want pass a name of the parameter and get the directory.

For eg,

By passing 'DIR_SOURCE' in directory parameter, i will get ' D:\usr\sap\DEV\SYS\src'.

Is there any FM through which i can do this.?

5 REPLIES 5
Read only

Former Member
0 Likes
729

Use the following code



DATA: dirname     TYPE DIRNAME_AL11.

 CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SOURCE'
                    ID 'VALUE' FIELD dirname.

Read only

0 Likes
729

hi,

can you please tell me the complete procee as i am unaware of that.

Read only

0 Likes
729

Please try this abap code and then if something does not work as you want, explain what is the problem (or what you don't understand).

Read only

0 Likes
729

I'm getting sy-subrc = 4 even when the parameter name is correct. Any ideas?

Best regards.

Read only

Former Member
0 Likes
729

Hi,

EPS_GET_DIRECTORY_LISTING

Call this FM.Hope it will be helpful to u

Regards

Kiran