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

Tcode:File

Former Member
0 Likes
1,846

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,038

Hi Sanju,

Check the length of the field physical file.i guess it should be more.

Read only

0 Likes
1,038

field length is 200

Read only

Former Member
0 Likes
1,038

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

Read only

0 Likes
1,038

after changing path what u said c:\tmp\<FILENAME>

still that old path is repeating ,i don't know why

Read only

Former Member
0 Likes
1,038

Make sure that you don't have more than one logical filepaths with the same name ZTEST but having different syntax groups(operating system)

Read only

0 Likes
1,038

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

Read only

Former Member
0 Likes
1,038

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