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

Files

Former Member
0 Likes
507

Hi all,

What is 1. Logical file

2. Data file

3.Physical File...?

Thanks,

Krish...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
478

Hello,

Actually it the way you refer to a data file defines logical or data or physical file.

Logical filename : it's name which is stored in FILE transaction(logical path) for file access purpose.

data file : this is actual file that you refer for R/3 purpose.

Physical filename : filename which is placed (with physical path)on server/PC.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
479

Hello,

Actually it the way you refer to a data file defines logical or data or physical file.

Logical filename : it's name which is stored in FILE transaction(logical path) for file access purpose.

data file : this is actual file that you refer for R/3 purpose.

Physical filename : filename which is placed (with physical path)on server/PC.

Thanks.

Read only

Former Member
0 Likes
478

Hi Krish,

If you are referring to the defintions as used within the FILE transaction:

The Logical filename is what you pass to function FILE_GET_NAME to return the physical name of a Presentation Server (PC) file to open for uploading or downloading data.

I'm not sure what you mean by "Data File".

Within the abap you would open a dataset.

In FILE_GET_NAME, the <FILENAME> placeholder on the physical path is substituted by the contents of the "Physical File" field in the Logical Path definition.

This is all explained quite well in the help on Platform Independent Filenames - follow this link:

http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

Regards

Robin

Read only

Former Member
0 Likes
478

Hello Krish,

If u are refering to FILE trx then

Logical file can be some name u can assign to actual file. This basically helps u to change the name of the actual file without needing to change the file name in the program.

e.g Logical Physical

invoice c:\invoice.xls

u can go ahead and use the logical file name in the program and if the actual file changes tomorrow as d:\invoice1.xls u can simple go to FILE trx and change the file name and ur program still remains unchanged. Data file is the actual file.