Mapping physical file name to logical file name

Hi All,
Can anybody let me know wht is the procedure to map a logical file name to physical file name. wht is the use of logical file name when there exists physical file name?
Thanx in Advance

As far as creating the Logical path  it’s done through the transaction code ‘file’ by using options
Steps are:
1. Logical file path definition which is logical file path name.
2. Assignment of physical path to logical path - where we give the physical path to the logical path name defined in the last step.
After creating the Logical path the procedure to attach the file name to the Logical path is as follows:
Use the function Module C13Z_FRONT_END_TO_APPL to upload the file from the front end to the application server.
Source file on front end will be the CSV file path which is to be uploaded to the application server
Target file on application server will be the physical path of the file on the application server where the file is to be uploaded.
Attach the physical path of the file on the application server to the Logical file using transaction code ‘file’.
Logical File:   The Logical name of the file which will be used by the interfaces to upload the file
Physical file:  The name of the physical file on the application server
Logical path:  The path of the physical file on the application server where it is stored.
The possible reason for the use of Logical file name could be we can have directories within SAP in which we can have logical files stored. These files can be used by various interfaces. Different Logical paths can be used for different interfaces. the second reson can be to give more user friendly name to the file rather than a long physical name to the file.

Similar Messages

  • Logical file name or logical path name incorrectly defined

    Dear All,
    We are doing archival in our IDES for test purpose before we do it to our Production.
    Steps Performed
    Copied AM_ASSET archive object to ZAM_ASSET
    Logical Path
      Logical path    ZAM_ASSET
      Name            Asset
      Syntax group    UNIX       Unix compatible
      Physical path   /archive/test/<FILENAME>
    Logical File Name
       Logical file    ZAMASSET
       Name            Asset
       Physical file   FI_<MONTH>_<DAY>.txt
       Data format     ASC
       Applicat.area   AM
       Logical path    ZAM_ASSET
    But when we run the WRITE though SARA , in the job log we get the following
    Logical file name or logical path name incorrectly defined
    When generating a file name for an archive file that is to be created, the system determined that the logical file name FIAA_ARCHIVE_DATA_FILE or the logical path name ARCHIVE_GLOBAL_PATH  was defined incorrectly.
    But we have maintained a Logical name  ZAMASSET , so we are unable to change the location of archived file and as well as the format.
    So is there any setting we need to maintain apart from the logical file name and logical file path.
    Suggestions are highly appreciated.
    Thanks in anticipation

    hi,
    follow this steps :
    - transaction SARA
    - enter authorization objects, eg SD_VBAK
    - hit button CUSTOMIZING
    - Archiving Object-Specific Customizing: execute Technical Setting
    - field Logical File Name enter or select ARCHIVE_DATA_FILE
    - leave CONTENT REPOSITORY as blank if you are not using 3rd party for storing (eg. IBM Tivoli)
    - back to customizing
    - from Basis Customizing, execute : Cross-Client File Names/Paths
    - on Logical FIle Path Definition, highlight (select) ARCHIVE_GLOBAL_PATH on the right pane
    - double click on the Assignment of Physical Paths to Logical Path on the left pane
    - double click on OS used, eg. UNIX, define Physical Path where archive file (on WRITE process) will be stored
    - save changes made
    - double click Logical File Definition, Cross Client on the left pane
    - double click ARCHIVE_DATA_FILE on the right pane
    - make sure that logical path is already set to ARCHIVE_GLOBAL_PATH
    - save changes made
    this setting also can be done using transaction FILE
    we have experienced on this case using SAP standard archiving (SARA, SARI) and everything is fine with this setting above.
    hope it help you.
    rgds,
    Alfonsus Guritno

  • How to get physical file path from logical file path

    Hi
    there is a immediate requirement ,
    I have logical file path but I need to get physical file path from it.
    So is there any FM which providesthis functionality.
    Points will be rewarded.
    Thanks

    Can you please share the piece of code ?
    Which File APIs are you using ?
    For java file, you can get complete path by simple method call : getAbsolutePath() on file object.
    Regards,
    Ashwani Kr Sharma

  • Reg: Table name where logical system name will store in R/3 and CRM..

    Hi
    We are trying to replicate the sales order from CRM 5.0 to ECC 6.0. we mainatined publication, site, subscription and rfc connections. When the sales order is created in the CRM the BDOC is getting posted but it is picking up the wrong logical system which we were using earlier. Due to this wrong logical system, out-bound queue is getting generated in CRM but In-bound queue is not getting generated in the ECC.
    Can anybody tell me where (in which table) we need to modify the things for getting the correct logical system.
    Regards

    Hi,
    In CRM:  look for the table CRMMLSGUID. This should have the logical system name of the R/3 that it is connected to CRM and also the GUID. To check if the GUID is correct cross check with GUID from R/3 table CRMPRLS.
    In R/3: look for the table CRMRFCPAR. This will give you all the RFC connections that R3 is connected to. If you want to check whether the CRM RFC value is defined correctly compare it with RFC destination in the Administration Console (smoeac) from CRM.
    If the entries are matching then the systems are connected correctly if not you need to look at the RFC destinations from SM59 transaction.
    Hope this helps.
    Thanks,
    Karuna.

  • Get Logical file name from Physical file name

    Hi everybody,
    Please how can i get Logical file name from Physical file name ?
    Thanks & Regards
    Hassan

    Hi,
    What i want is to get Logical file name from Physical file name, and not the opposite (get Physical file name from Logical file name).
    Thanks & Regards,
    Hassan

  • Logical File Name/Path

    I have created Logical File Path/Name as -
    Logical file ZPATH_MAST
    Name file path for BOM upload
    Physical file MAST_01.txt
    Data format ASC
    Applicat.area MM
    Logical path ZPATH_MAST
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    Logical path ZPATH_MAST
    Name file path for BOM upload
    Syntax group WINDOWS NT Microsoft Windows NT
    Physical path O:\PHSS Project Olympic\Personal\HEDN\CV00102\<FILENAME>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please let me know what i should assign in "Specify File " step of LSMW .
    I'm using Batch input method to upload the BOM.
    Thanks
    Sonal

    Specify files
    In this step, we define how the layout of the input file is. The input file is a [Tab] delimited with the first row as field names. It is present on my PC (local drive) as C:\XD02.txt.
    Create an Excel file  with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it XD02.txt.

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • Why does Logical file name in sys.master_files does not match SSMS Properties

    SQL 2012 11.0.2100.60 (x64)
    I have a sproc that does an ALTER to change the logical file name of a DB. Getting this error at a customer site "5041 MODIFY FILE failed. File 'Template_201401_Log' does not exist.' When I query the sys.Master_files the log name is'Template_201401_Log'.
    but when i look in SSMS at the DBs -> properties -> files the logs logical file name is  Store01_log. There is only a single log file.
    Just found out that if I change the log file name in SSMS it then corrects it in the sys.Master_files. So it is now corrected. BUt what would cause it to be a mismatch between the sys.Master_files and the SSMS Properties?

    Hi,
    Can you show us the query. What is template file  ?
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Difference between logical file path and physical file path

    Hi,
    Can anyone tell me why logical file path is required and why physical file path is required? What exactly is the difference bet them?
    Thanks in advance.
    Regards,
    PS.

    Hi,
    The function module FILE_GET_NAME convert a logical path into its corresponding physical path.
    The advantage of using logical pathes within your applications is obivous:
    If you need to change the physical path you just adjust it within transaction FILE yet no changes are required to your application.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    The file names that you use in ABAP statements for processing files are physical names. This means that they must be syntactically correct filenames for the operating system under which your R/3 System is running. Once you have created a file from an ABAP program with a particular name and path, you can find the same file using the same name and path at operating system level.
    Since the naming conventions for files and paths differ from operating system to operating system, ABAP programs are only portable from one operating system to another if you use the tools described below.
    To make programs portable, the R/3 System has a concept of logical filenames and paths. These are linked to physical files and paths. The links are created in special tables, which you can maintain according to your own requirements. In an ABAP program, you can then use the function module FILE_GET_NAME to generate a physical filename from a logical one.
    Maintaining platform-independent filenames is part of Customizing. For a full description, choose Tools ® Business Engineer ® Customizing, followed by
    Implement. projects ® SAP Reference IMG. On the next screen, choose Basis Components System Administration ® Platform-independent File Names.
    For a more detailed description of the function module FILE_GET_NAME, enter its name on the initial screen of the Function Builder and choose Goto Documentation. On the next screen, choose Function module doc.
    Another way of maintaining platform-independent filenames is to use the Transaction FILE. The following sections provide an overview of the transaction.
    To create a logical filename, choose Logical filename definition, client-independent from the Navigation group box in Transaction FILE, then choose New entries. You define logical filenames
    You can either define a logical filename and link it to a logical path (as displayed here), or you can enter the full physical filename in the Physical file field. In the latter case, the logical filename is only valid for one operating system. The rules for entering the complete physical filename are the same as for the definition of the physical path for the logical file. To display further information and a list of reserved words, choose Help.
    If you link a logical path to a logical file, the logical file is valid for all syntax groups that have been maintained for that logical path. The filename specified under Physical file replaces the reserved word  in the physical paths that are assigned to the logical path. To make the name independent of the operating system, use names that begin with a letter, contain up to 8 letters, and do not contain special characters.
    Save your changes.
    regards,
    Omkar.

  • On Logical File Path

    Hi all,
       My program reads an input file given thru Logical File Path and the Physical File name .
    The program works perfectly in Dev system, but in Quality system,it returns a sy-subrc 8 while opening the file ( open dataset ...)
    I have assigned the logical path to physical Path correctly and have transported it .
    I can see the combination entry ( Logical path, physical path ) in table PATH in both the system implying that the logical path is transported correctly .
      I don't understand why then, open dataset stmt returns sy-subrc 8, while it is 0 in Dev system .
    I don't have access to Transaction FILE in Quality .
    Could it be any reason ?
    Thanks,

    i think u have to check the properties of the file.
    if it is read only then u cannot ascess the file so we get sy-subrc as 8.
    so u have to set the properties of the file to write also..
    i think this will help
    Bye

  • Logical File

    What is the difference between logical file name and Physical file name when we are writing interfaces we will use this.
    What is exact use of this ?
    Can I have some information regarding this ...
    Bye,
    Muttu.

    Hi Satya,
    Hi,
    As the name suggest, Logical file name is not the actual file name. It can be assiged dynamically (Transaction FILE).
    Physical File name is the name of actual file.
    To remove the hardcoding from the program, and also to achive functioanlities such as adding date and time stamp to the file name, Logical filenames are used.
    Reward points if useful.
    Thanks.

  • Business system and logical system names

    hello experts,
    Right now m creating scenarios of IDOCs, Files and RFCs. Just wanted to know that is it compulsory to give Business system name and Logical system names same?
    Does it make difference if i will give both names different?
    Regards,
    H.S.

    Hi,
    I guess i have not explained you proprely.
    Here logical system mean m asking abt the system name which we are using in RFC connections to make connection between two systems.
    does Business system name and Logical system name should be same?
    Actually right now we have done system copy of production system into our sandbox. So all the things are pointing to the production system.
    I was just wondering, if i will just change ip/ hostname into the Technical system (ip of sandbox system) and keep business system name as it is( which is right now of production system)... then for me no need to create all ID Objects again. Its just an idea. So just wanted to check is it ok... bcz in ID i have more than 60 objects which i need to create again. and i have very less time
    Or if anyone can tell me any good idea to do that.
    Thankx in advance.
    Regards,
    H.S.

  • Logical System name in Entitlement Systems

    Hi,
    In Authentication > SAP, I have given System and client names, but logical system name is not generated.
    Please let me know how to resolve this.
    Thanks in advance,
    Priya

    Hi John,
    Thanks for your response.
    FQDN and IP address are added in the host file.
    But still the logical system name is not displaying.
    Without logical system name, other details are filled for Application Host Logon as
    Application server name - Host name
    All the details are filled except the selection of logical system name.
    Then it is displaying the error - "Please specify complete credentials for either load balancing or direct application host logon"
    Please let me know how to resolve this.
    Thanks,
    Priya.

  • Logical file path creation

    Hi All,
    In our project we have a requirement to fetch data in to .csv file on application from a report through an APD.
    I have the complete step by step procedure to create logical file path and logical file name, but i have some doubts as follow
    1. what is the adventage of using Logical file path and name, cant we use RSCRM BAPI file method?
    2. What are the different types of Syntax group... and most of the time why we select UNIX as a syntax group while creating logical file path???
    This will be a very helpful information for me..
    Please help me..
    Thank you,
    Jaimin

    RSCRM_BAPI - directly dumps a query as a .CSV in the app server - for an APD to work - you cannot specify the filename but then by specifyinf a logical file name - it can be run multiple times without any changes...
    Arun

  • Creation of logical file path

    hi, i am very new to this field and i need this urgently.. please help..
    i am not able to create a physical file from a logical file say for eg "zlogic".. i have been given a certain "Pathintern" for the physical file.. e.g. Pathintern = zobj.. the syntax group is 'unix' but, what do i fill in the physical path..  and i also have used the function module file_get_name but i dont know the changes to be made in the function module.. please help..

    Sorsingh,
    try this search result (are you new to the search field?).
    [SAP: creation of logical file path|http://www.google.co.jp/search?hl=en&q=SAP%3Acreationoflogicalfile+path&btnG=Search&aq=f&oq=]
    Let us know which part of the online help you can not understand.
    Regards,
    Clemens

Maybe you are looking for

  • How can I install pc games on a mac

    I want to play Counter strike, gunbound, age of empires or battlefield 3, How can I play those games?

  • OIm11g event handler-Bulk Orchestration

    Hi All, Can anyone help me with a sample code of bulk orchestration. Can i just copy and paste my execute() code in bulkexecute? My requirement is that my event handler shd work for a single user event Thanks -Mukul

  • Custom field mappings in query

    Hello In our classes we use GregorianCalendar for date representation. Therefore I wrote a ColumnFieldMapping class for mapping of GregorianCalendar to SQL_DATE. (I used the SQLDateMapping class as example). The storing and retrieving works without p

  • Trouble synching contacts from old non BB phone

    Hi, I am trying to import contacts from a samsung brightside onto my new q10.  I got the contacts saved onto my computer (pc)  as separate vcards.  Then, I imported them into Windows' contacts folder.  Then, using BB Link, I configured the q10 to syn

  • Photoshop CC update fails

    Running win 8.1 on Dell I-7 16Gig mem. with nvidia 750M. I tried uninstalling and reinstalling got same issue gave error on install patch failed to upfate. Any ideas?