‎2006 Mar 16 8:01 PM
Guy's
i am using Tcode:File to create Logical file
description are as follows
Logical file:ZTEST1
Physical file:TSPAR_<YEAR><MONTH><DAY>.TXT
Logical path:ZTEST
Physical path:/usr/sap/<SYSID>/SYS/global/<FILENAME>.TXT
i am using function module <b>FILE_GET_NAME</b>,by passing
Logical file name ,that is ztest1. to get physcial FILE_NAME:
but it's comimng as
ctrides.caritor.com\sapmnt\IDS\SYS\global\<b>TSPAR_20</b>
what happen to TSPAR_20 ,actually it should come as
TSPAR_20060317.TXT
‎2006 Mar 16 8:04 PM
Hi Sanju,
Check the length of the field physical file.i guess it should be more.
‎2006 Mar 16 8:12 PM
‎2006 Mar 16 8:13 PM
if u observe ur physical path
Physical path:/usr/sap/<SYSID>/SYS/global/<FILENAME>.TXT
usr -->user
sap
sysid-->system id...
hence these things r coming in ur output...
in ur physical path give
C:\tmp\<FILENAME>
Hope it helps,
Regards,
Bikash
Message was edited by: Bikash Agarwal
‎2006 Mar 16 8:22 PM
after changing path what u said c:\tmp\<FILENAME>
still that old path is repeating ,i don't know why
‎2006 Mar 16 8:58 PM
Make sure that you don't have more than one logical filepaths with the same name ZTEST but having different syntax groups(operating system)
‎2006 Mar 16 9:17 PM
there is only one logical path with name ztest,
guy's it's working fine for existing logical path,
it's creating problem for my path,one more thing
when i debug function module i found that actaullay
it reading full file name ,but truncating at one place
to 8 character,why it happpen only in my case ,i don't know,but something i am missing while creating logical
path,pls help me ,as this is urgent issue,and need to
be sort out immediately,pls provide me step
of how u guy's a creating it
‎2006 Mar 16 9:38 PM
In your physical filename, you already used '.TXT'.
Why did you use that again in your physical path after <FILENAME>?
If I look at your example FILE_GET_NAME should have given you '/usr/sap/<SYSID>/SYS/global/TSPAR_20060316.TXT'. But you said you are getting '
ctrides.caritor.com\.....'. So your path and file name both are wrong. Isn't that true?
Srinivas