Skip to Content
0
Former Member
Sep 03, 2008 at 08:02 AM

rename a parameter

25 Views

Hi

I have 2 parameters on a selection screen, p_dir and p_dir2.

from p_dir, we are retrieving the directory of a file.

p_dir2 will take the value of p_dir but with an extension.

like if p_dir = Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file.txt

p_dir2 is then Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file_new.txt

The problem is that I dont know how the name of the directory will be so that I can rename p_dir2, sometimes the directory doesnt even have the extension '.txt'

I dont know how to handle these cases

Is there any FM which can do this?