Logical File creation in Logical path

Hi all,
I am after an info, how to create different logical file name in the same physical path.
Suppose I have physical path: X/claims/interface/outbound which is assigned to logical path LP
Now under this path I want to store some logical file say 1, 2, and 3
What would be the naming convention? & how to do it?
Any help would be highly appreciated.
Regards,
Kironmoy Banerjee.

Hi,
Use FM u2018FILE_GET_NAMEu2019 to assign the physical file name using a logical file name.
Remember you need to create u2018logical file nameu2019 using transaction u2013 FILE.
R/3 applications run on various platforms with various file systems. Hence we use platform-independent logical file names in our application programs.
Function module u2018FILE_GET_NAMEu2019 converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
Example
logical file name: MONTHLY_SALES_FILE
physical file name: VALUES<PARAM_1>
logical path: SALES_DATA_PATH
physical path (UNIX): /usr/<SYSID>/<FILENAME>
physical path (Windows): C:\SALES\<FILENAME>.
Santosh
Edited by: Santhosh Nagaraj on Sep 30, 2009 2:45 PM

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

  • Logical file creation for physical inventory

    Hi,
    How to use MI31/MI34/MI37 t.codes for Physical inventory.
    What is mean by logical file.
    Regards,
    Prabu

    Hi
    I didnt work on MI34. But SAP help gives below reference: Check with an ABAPer
    Short text
    Batch input: Enter count with reference to document
    Description
    This report generates a batch input session (BI session) which, when processed, enters the inventory count results with reference to a physical inventory document.
    Before you start the report, make sure that the file entered on the selection screen is stored in the specified directory at operating system level.
    The data for the batch input session is imported from an external dataset as a sequential file. The structure of the sequential file is preallocted by the table BISEG. You can display and print this structure via the information system in the data dictionary. Note that the object class Fields is chosen on the request screen of the information system.
    Requirements
    Entering counting results via a batch input session requires that the corresponding physical inventory document has been created in the system. If you try to enter a counting result for which no physical inventory document exists, an error will occur during the BI session, which will interrupt processing.
    Any errors are recorded in the log file for the corresponding BI session.
    Before the sequential file is read, you should perform a test run. For this purpose, you have to maintain the corresponding test data in table T159I. For the sequential file data to be read and and for test data in table T159I, please note the following:
    The name of the report has to be specified only in table T159I. The name to be specified is RM07II34.
    The name of the BI session is optional.
    The name of the transaction Enter inventory count to be specified is MI04.
    The following data must be entered into the system:
    Count date
    Fiscal year
    Number of physical inventory document
    Item in physical inventory document
    Quantity of stock counted
    Output
    The system generates a batch input session which you can process via options System -> Services -> Batch input -> Sessions.
    When processing the batch input session for testing purposes, you should set the Display errors only indicator.
    When importing the actual productive data, you should always use the Background indicator.
    If data expected by the system (required-entry fields) does not exist, an error will occur during the batch input session which will interrupt processing.
    An error will also occur during the batch input session if you try to maintain data not expected by the system (fields not ready for input). However, processing will not be interrupted. The system writes a comment in the session log.
    Thanks

  • Logical File creation

    Hi Experts,
    I need to craete a Logical file for BOM conversion.
    Could someone help me what it is with necessary steps exactly?
    Your help Appreciated with points
    Thanks
    Dan

    Hi Dan,
    Please check this links.
    <b>Using Logical Files in ABAP Programs</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    <b>Creating and Defining Logical Filenames</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/content.htm
    Hope this will help.
    Regards,
    Ferry Lianto

  • How can I give logic files to another logic user?

    I want to give this person all of the tracks to a song. I took the icon that looks like  a mini arrange window from the logic or song folder and put it on a zip drive and was able to drag it into their arrange window and all the tracks that were software tracks showed up, but the live audio or guitar track didn't show up. Is there another way I should be making this transfer?
    This person needs to work on the tune just the way I would work on it in my computer, but only do the work in theirs. Sorry for my lack of technical terms.
    Thanks

    Hey Bob,
    Might be best to just copy your entire project folder onto the zip disc.  The project folder usually contains all the audio files used in the song. 

  • Assigning physical file to logical file.

    How to configure application server file with logical file.( I don't have full idea about this .  what I know is using /nfile tcode we assign logical file name to application server path and
    using 'FILE_GET_NAME' function module, by supplying logical file we get the path of our application server
    My lead doesn't have idea about this.  How to convey him about logical file using which assiging physical file path.  Can you explain clearly, so that I will work with my lead and get work done.
    Your help will be appreciated highly

    FILE Transaction Code
    FILE transaction - How to use.
    FILE transaction

  • 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

  • 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

  • LSMW - Logical File Path not pointing to Physical Path

    Hi All,
    I'm trying to upload some MIGO goods movement transactions through LSMW.  I'm to step 7, specifying files, and am getting the error "No logical file path has been specified.  I saw another thread which helped me, but I am still stuck after reading it. 
    Re: Error in Creation of Purchase Requisition through LSMW
    I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says.  I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory.  I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
    Does anyone know why it is not recognizing the physical path maintained in the logical path?
    Thanks,
    J

    Thanks for both replies,
    I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue.  I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each.  Here is how the config is currently:
    Logical File Path Definition:  MM_GOODS_MOVEMENT
    Syntax Group: WINDOWS NT
    Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
    or,
    Logical File Path Definition:  LOCAL_TEMPORARY_FILES
    Syntax Group: WINDOWS NT
    Physical path: C:\temp\<FILENAME>
    Logical File Name Definition: MM_GOODS_MOVEMENT
    Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
    Data format: ASC
    Applicat.area: MM
    Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
    Do you see any error with this Brajvir?  Thanks!

  • Logical file path problem in lsmw

    Hi folks,
    I created logical file  path in FILE tcode. its created and assigned physical file path to logical file path.
    then i am assigning that logical file path into lsmw step (specify file step).
    under specify file i am assigning into import data and convert data.
    once read data step completed read data must be save under this physical file but data is not saving under this path.
    can any one help me out this..
    1.can any one help how to create physical file in file tcode
    2.how to assigne that physical file to lsmw step specify file

    Hi Srikanth,
    There is no need to create the logical file path using the FILE transaction.
    Under Specify file step, you need to give your local file path in LEGACY DATA Section.
    Please check the below link in using the LSMW step by step.
    http://wiki.sdn.sap.com/wiki/display/ABAP/LSMWStepsin+Detail
    Hope this helps.
    Regards,
    Satish Kanteti

  • In LSMW while executing the specify file step logical file name and path.

    Hi ,
    In LSMW , while executing the specify file step, logical file name and path is mandatory field to entry, but in some of other LSMW objects, these fields are not mandatory one, i want to know is it possible for me to do hide the logical file name and path field in specify file step.
    thanks
    Md nisar

    Hi,
    For some Transactions while executing the Specify file step Logical File and Logical Path are mandatory.
    In this case Converted file will be stored in the application server. According to the specified Logical File and Logical path.
    Hope this will help you....
    Regards,
    Tirumala Reddy

  • Create logical file path and read it in main program

    Hello Experts,
    My requirement is, I have to read files from application server.
    File path/ Directory is different in different system (systid). i have to read all files starting with (xyz*) from mentioned directory.
    This path i must define in logical path.
    Following are the steps i followed.
    1)   In FILE (TCODE) i have created a logical path and assigned a physical path to it.
    2)   I have created logical file ( I am not sure about this, as i dont have to create logical file, i just need to read file from above path starting with xyz*,  but FM FILE_GET_NAME requires logical file name so i have created it).
    3) I will pass logical file name to FM FILE_GET_NAME and recieve physical file path(with file name which i can ignore).
    these all steps i found on SDN. but its not working.
    FM FILE_GET_NAME is always returning same file path ( Not even close to what i have defined ).
    I can not read data from Table path as it will return physical path as it is, but i need it replaced with system id.
    Any suggestion will be really helpful.
    Thanks in Advance.
    Regards,
    Amar

    Hi Amar,
    one difficulty defining physical path name is to know the right Syntax group.
    For example if you habe OS Linux, you need Syntax Group UNIX here. In Table OPSYSTEM you can see, which OS (OPSYS) needs which FILESYS (Syntax Group).
    If you always get a wrong physical path, this may be caused ba a wrong choice of the Syntax Group. Only the correct one will lead to the correct path.
    Regards,
    Klaus

  • 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.

  • Function module for logical file path and name

    Hello all,
    I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
    Regards,
    Anyi

    Please check the FM FILE_NAME_GET.
          CALL FUNCTION <b>'FILE_GET_NAME'</b>
             EXPORTING
               logical_filename = 'ZDELCHKREP'
               parameter_1 = it_cntry-cntry
             IMPORTING
               file_name        = l_file
             EXCEPTIONS
               file_not_found   = 08.
        CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b>       EXPORTING
             logical_path = 'ZDELCHKREP'
             file_name = l_file
           IMPORTING
             file_name_with_path = l_file.
    Message was edited by: Anurag Bankley
    Message was edited by: Anurag Bankley

  • LOGICAL FILE PATH AND LIGICAL FILE NAME

    1 I have one file(saritha.txt) on
         Presentation sever and I want to create logical file and logical file path to application server?
    please explain with example.

    Hi,
    u can create with the following one
    CONCATENATE '/' sysid 'abap/if/monthly/fi/' INTO directory.
    file name as combination of sys-uzeit and sy-udate.

Maybe you are looking for

  • Audio Tracks on my iPhone stopped working post upgraded to iOS 5.

    Audio Tracks on my iPhone stopped working post upgraded to iOS 5. Quiet a lot of my tracks do not play on my iPhone 4 after I upgraded to iOS 5. The the seeker bar does not progress and it looks stuck. Could someone please help. Regards, S!d

  • Standalone Logviewer does not display newly added subdirectories.

    We are running the logviewer daemon on our UNIX servers so the developers can monitor the logs.  We noticed that whenever a new subdirectory in our case a log4j log file subdirectory; the file does no show up in the logviewer until after you restart

  • HI,need some study material regarding reports

    Hi experts,                 Can any one send me study material on classical and interactive reports in PDF format. I also want details about the function modules which we use in while creating reports. I have material which is in saphelp. But it is v

  • DataGuard ? Standby (Logical/Physical) ? Need Information - Implementations

    Hi All I am trying to aquaint my self with the DataGuard concepts but I must admit I have limited knowledge/exposure into this side... when I have set-up the DR so as to ship archives from the primary to disaster recovery site geographically located

  • Project settings, Selected Libraries

    I'm new to JDeveloper and I think I just inadvertently deleted my default setting of the Selected Libraries. Can someone tell me what it was referencing? Also, if I define a new J2SE version, how do I un-define it later if choose not to use that vers