2010 Feb 13 1:39 AM
Hi, I am trying to display the subdirectory in application server underneath the current directory for 1 level only. I am using the function module /SAPDMC/LSM_F4_SERVER_FILE but it will display till the last level. Is there a way to only display the directory (not include file) underneath the current directory but not to go any further down? Or if there is a way to restrict the number of level for going downward, that will work too.
Thanks,
2010 Feb 13 12:29 PM
Hi,
Not sure to what extent this is correct. But seems to be working for me.
Pass the parameter FILEMASK as *.xxx (Usually we don't have the files with extension xxx. So it displays only till the directory level.
Hope this works for you.
Thanks,
Vinod.
Hi, I am trying to display the subdirectory in application server underneath the current directory for 1 level only. I am using the function module /SAPDMC/LSM_F4_SERVER_FILE but it will display till the last level. Is there a way to only display the directory (not include file) underneath the current directory but not to go any further down? Or if there is a way to restrict the number of level for going downward, that will work too.
Thanks,
2010 Feb 13 3:55 AM
Hi,
why don't you just copy code from that FM and modify according to your requirements. You just need to modify routine DIRECTORY_CONTENTS_GET from your FM.
Cheers
2010 Feb 13 12:29 PM
Hi,
Not sure to what extent this is correct. But seems to be working for me.
Pass the parameter FILEMASK as *.xxx (Usually we don't have the files with extension xxx. So it displays only till the directory level.
Hope this works for you.
Thanks,
Vinod.
2010 Feb 17 10:50 PM
Found the earlist way to list the sub-directory in the current directory for 1 level is to call a 'ls' command.
CALL 'SYSTEM' ID 'COMMAND' FIELD <ls dir>
ID 'TAB' FIELD itab-sys.
Problem solved.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |