Get logical path

Hi,
I've defined a logical path with transction FILE. I want to use it without the file. I just want to get the path name. Is it possible ?
Thanks

Hi,
Check the FM
CH_SPLIT_FILENAME
J_8A3_L_MB_SPLIT_PATH_AND_FILE
CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
      window_title         = 'Open '                      "#EC NOTEXT
      default_extension    = 'XLS'
      default_file_name    = g_filename
    CHANGING
      filename             = l_filename
      path                 = l_path
      fullpath             = l_fullpath
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      OTHERS               = 4.
  IF sy-subrc EQ 0.
    p_fullpath = l_fullpath.
  ENDIF.
Edited by: Avinash Kodarapu on Jan 19, 2009 10:41 PM

Similar Messages

  • Get logical file name

    Hi Gurus,
    I know the physical path of a file. Can anyone tell me how do I view this file? I do not know the logical file name, hence cannot use AL11 to view the file.
    Regards,
    Rishi

    Hi,
    There are some function modules, Can you please check:
    FILE_GET_NAME_USING_PATH : Generate a complete file name with file name and logical path
    FILE_GET_NAME : Assign the Physical File Name Using a Logical File Name
    FILE_GET_NAME_AND_LOGICAL_PATH: Assign physical file names and get logical path
    Below link also helpfull.
    [http://help.sap.com/saphelp_nw04/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm]
    Regrads,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 20, 2010 12:53 PM

  • Logical path for getting a Flat file from application server

    Hi All,
    We have loaded some .csv files to application server, what is the logical path we have to mention in the infopackage scheduler screen? please guide me how to give the path for getting a flat file from application server.
    Thanks,
    Sairam.

    Hi Sairam,
    I hope you know which location you have saved in the Application server.
    Now if you go to the Infopackage and click on the "External Data" tab, there you will see Radio Buttons for
    1) Client Workstation
    2) Application Server
    Choose the second radio button, then in the Field "Name of the File" you will be able to use the F4 help and browse AL11 transaction through this option. You can then choose the File.
    Hope this helps
    Regards,
    Praveen.

  • Getting physical path from logical path

    Hi,
    I am using the FM FILE_GET_NAME  to get the physical path for a given logical path which I have specified within the FILE transaction.
    The code works fine when I run the program in foreground but it doesn't work when I run it in background.
    Can anyone advise on why this is and how I can get this to work correctly in background aswell as foregroud.
    The ultimate goal is to be able to poll a directory on the SAP server (which could be windows or unix) and to process the files in there.
    Thanks,
    Ruby

    Thank-you.
    I would prefer to to use a default path if possible. The reason I defined a logical path was so that this could be defined outside the program.
    Are you saying I cannot use this FM in background at all?
    Is there another FM which will do the same thing but will work in background?
    What I am trying to do is create a program which will run in the background polling a particular directory and then process the files in this directory if it finds any.
    Do you know how I could achieve this using logical paths rather than using hardcoded paths?

  • LSMW: Error concerning the logical path in Specify Files step

    Hi,
    I am trying on an ECC 6.0 EHP6 system to upload (open) POs from an existing SAP ERP system. Since I faced some complications in batch input recording method, I decided to go with the standard batch/direct input method.
    I selected object 0085 (Purchase Order) and method 0001 (Purchase Order). The program that is used is RM06EEI0. I followed all the usual steps, but in the "Specify Files" step I get the message:
    '****.lsmw.conv' does not exist; edit the logical path using transaction FILE
    Being aware of both the FILE and SF01 transactions, I created the logical path and file (through the FILE transaction). However, after the modification, I get the message:
    Logical file '****' is not assigned to physical file '****.lsmw.conv'
    There is also the related SAP Note 753511 (Logical and physical path and file name in transaction LSMW) that refers to this case.

    Hi,
    Click on specify file radio button>Legacy data-on the PC Front end
    where input file location like C:\mydocument\desktop\test.txt
    and give input in Name field: mydocument
    in delimiter section > select Tabular
    File structure section> tick on Field order matches source structure definition
    File type: Record end marker(Text file)
    then press enter key and other steps as same.
    Second thing you said that you have used Batch input recording
    after creation and recording finish , scroll the page below on recording and put a cursor unwanted field and remove unwanted input field.
    I hope your problem will resolve. you can find the steps pdf on Google search try now.
    Thanks
    Sanjeet Kumar

  • Logical Path and File Name

    Hi Everybody,
    How could I check the actual value of 2 variables which I defined with transaction \nFILE for the Logical Path and the logical file name?
    Background to this question is that I am experiencing problems in using them and want to check if the variables have correct values.....
    Thanks in advance
    FedeX.

    Hi FedeX,
    Did not get exactly what you wanted.
    May be you can try this: You can check the varibale values in the table V_PARAMVAL.
    Bye
    Dinesh

  • Unable to see the logical path and file created in FILE tcode from AL11 and unable to upload the file to this path from front end

    Hi Experts,
    I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
    I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
    custom path and file created from FILE tcode.
    Thanks & Regards,
    Anusha.

    Hi Anusha,
    Please give as below.
    I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
    Regards,
    Pavan

  • Logical path and syntax groups

    WE know that we may define ligical file & logical file path. It is said that if we link  a logical path to a logical file the logical file is valid  for all syntax groups  thgat have been maintained  for that logical path?
    Could some one explain  how to note  the syntax groups  that haver been maintained for that logical   path?
    Why is it not that all listed syntax groups are valid?

    Hi FedeX,
    Did not get exactly what you wanted.
    May be you can try this: You can check the varibale values in the table V_PARAMVAL.
    Bye
    Dinesh

  • LSMW - No logical path specified

    Hi Experts,
    Am developing a Project to upload the data, so, am using spread sheet from my C drive..........but, am getting the following error,
    No logical path specified
    Message no. /SAPDMC/LSMW_OBJ_060046
    So, pls, let me know that,
    1 - How to fix it?
    2 - Why its throwing?
    thanq

    In the "Specify files" step, you see following 3 nodes: Legacy Data, Read Data & Concerted data.
    Double click on Converted data where you get a popup & you need to mention the logical path & Logical file name. ( Normally LSMW will be the logical path & specify the same path as presentation server path / File.
    If you do not have a logical path - LSMW, create one with tx: FILE.
    Regards.

  • LSMW No logical path has been specified

    Dear All,
    I am trying to create characteristic through LSMW. in the Specify file step i am geeing this error"No logical path has been specified".
    Any body can have idea about the error?
    Regards
    Dhiren

    Hi Dhiren,
    I have the same problem. I am trying to change a batch characteristics and I am getting the same error.
    Could you please share how you resolved your issue?
    Regards,
    R.S
    This is a old and answered thread - please open a thread for your specific query.
    -Paul
    Moderator
    Edited by: Paul Meehan on Aug 25, 2011 11:39 AM

  • LSMW-logical path not specified

    Hi experts,
    I am doing an LSMW object for purchasing info records conversion.
    In the step "specify files" i am not able to save wat i have done cos i am getting an error 'No logical path has been specified' .I have choosed the file from PC-Frontend. Due to this problem am not able to go ahead with further steps.
    please help.
    Thanks,
    Neela

    Hi
    Have u followed all the steps perfectly while creating a lsmw ???
    There are 14 steps that are normally used and these are :
    1)   Maintain Object Attributes.
    2)   Maintain Source Structures.
    3)   Maintain Source Fields.
    4)   Maintain Structure Relations
    5)   Maintain Field Mapping and conversion rules .
    6)   Maintain Fixed Values,translations ,user defined routines.
    7)   Specify Files .
    8)   Assign Files .
    9)   Read DATA.
    10) Display Read Data.
    11) Convert Data.
    12) Display Converted Data.
    13) Create Batch Input Session.
    14) Run Batch Input Sesion.
    Check this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
    www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc -
    Regards
    Pavan

  • LSMW - Logical Path for PIR

    I am working on creating LSMW - sample conversion for PIR. I struck up in the u201CSpecify filesu201D step by creating Logical Path.
    Step  1 : I have done it thru T.Code : FILE  in  that first by creating Logical File path.
    Step 2 : Assignment of Physical Paths to Logical Path
    I have maintained Syntax Group as WINDOWS NT and given the Physical path as C:\TEMP\<FILENAME>
    Step 3 : Logical File Name Definition , Cross Client
    I have maintained Logical File, Name, Physical File , Data Format ,App Area , Logical Path.
    After maintaining I am getting the error message u201C LOGICAL PATH PUR_INFO_RECORD DOES NOT EXISTu201D.
    Please help me out to solve this issue.
    Thanks & Regards,
    Mani

    specific to LSMW there is OSS note 753511 that describes what to do.
    If you have authority for x-client customizing then you can directly type a name for logical path and file name
    e.g. LSMWLOGPATH and LSMWLOGFILE, hit enter and LSMW will create the logical path and file name for you.and you dont need to do it with transaction FILE.
    Go into the step "Specify files".
    place cursor onto line "converted data"
    click change button.
    you get a pop-up with the logical path.
    Just hit enter and LSMW will create the path itself.

  • LSMW - Logical Path/File - No logical path has been specified

    Hello,
    I am trying to create a LSMW with the RM06EEI0 direct input program for ME21N transaction.
    At the SpecifyFiles step I get the error message "No logical path has been specified".
    My dilemmas are:
    1. How can I solve this error? Is the FILE transaction only solution? If yes, where and how I must define the logical path/file?
    2. Why in the case of the Batch Input Recording LSMW Method this files are created automatically? (I can see them in the AL11 transaction and I didn't define them by myself).
    3. Why on other system this error is just an warning message? If you look at this tutorial  http://****************/Tutorials/LSMW/PO/Page4.htm at Step7.g. you can see that there is no need of defining the file/path in FILE transaction.
    More info about the system I am working in:
    SAP ECC 6.0.
    LSMW 4.0.0. Version.
    Thank you.
    Daniela

    Hi
    Refer the oss note 753511 released for this kind of error you face in LSMW, I am pasting the content of the note below,
    ******************Note Content,
    Symptom
    The system issues an error message for the logical path or file when you perform the "Specify files" step in the Legacy System Migration Workbench (transaction LSMW) although you have made the correct assignment in transaction FILE.
    The error messages are as follows:
    The logical path <PATH> does not point to the physical directory.
    The logical file <FILE> is not assigned to the physical file.
    or
    A logical path was not specified.
    Other terms
    Logical path, logical file, transaction FILE, LSM Workbench
    Reason and Prerequisites
    Some import interfaces that you can also use with transaction LSMW work with logical path and file names.
    Transaction LSMW itself, however, works with physical file names. To be able to transfer the LSMW file with the converted data to the import program, you must specify a logical file name for the file with the converted data in addition to the physical file name. In this case, the system displays additional fields in the 'Specify files' step in which you must enter the logical path and file name.
    Solution
    The error messages may be due to several causes. Check the following:
    Have you maintained the logical path and logical file name and have you assigned them to the physical file specified in the "File" input field of transaction LSMW?
    These settings are maintained in transaction FILE.
    When you use logical file and path names, you must specify the name of the physical file with its path. If you have not specified any directory, you cannot assign any directory to the logical path in transaction FILE. In this case, the system uses the SAP Home directory on the application server by default. Bear in mind that the file name must not exceed the maximum length of 45 characters, including the path.
    Up to LSMW version 1.7.2 (*):
    If the logical file name specified does not point to the physical file (although it should do), the system adjusts the logical file name, that is, the information in transaction FILE is changed to the entries made in transaction LSMW. This may lead to unwanted side effects if the logical file is also used somewhere else. Therefore, SAP recommend that you always use separate logical paths and file names for transaction LSMW (the problem is corrected as of LSMW version 1.8.0, see below). If the logical file does not exist yet, it will be created upon request.
    As of LSMW version 1.8.0 (*):
    The settings of the logical file are checked but no longer adjusted automatically as in version 1.7.2 (see above). If there are inconsistencies, the system issues an error message. If the user is authorized to maintain logical paths and file names (as for transaction FILE: "Maintenance authorization for cross-client tables"), transaction LSMW can create the logical path, the file name and the file. Due to this automatic generation, the user no longer needs to make adjustments in transaction FILE. Therefore, we especially recommend this procedure.
    To display the version of transaction LSMW, select "Extras" --> "Display LSMW version" in the main menu of the initial screen.
    You should also bear in mind that as of Basis Release 6.20, that is, as of LSMW version 4.0, transaction LSMW is no longer an add-on but is delivered with the standard system.
    Hope this helps,
    Sunil

  • Logical Path - LSMW PIR

    I am working on creating LSMW - sample conversion for PIR i struck up in the u201CSpecify filesu201D step by creating Logical Path.
    Step  1 : I have done it thru T.Code : FILE  in  that first by creating Logical File path.
    Step 2 : Assignment of Physical Paths to Logical Path
    I have maintained Syntax Group as WINDOWS NT and given the Physical path as C:\TEMP\<FILENAME>
    Step 3 : Logical File Name Definition , Cross Client
    I have maintained Logical File, Name, Physical File , Data Format ,App Area , Logical Path.
    After maintaining I am getting the error message u201C LOGICAL PATH PUR_INFO_RECORD DOES NOT EXISTu201D.
    Please help me out to solve this issue.
    Thanks & Regards,
    Mani

    Solved the issue

  • LSMW by BI  : Unable to specify file in step 7; logical Path not assigned

    Hi,
    I'm trying to uplaod HR DATA using object 0555 and method 0000 for Program RPDUSTD00 using LSMW Batch Input Method.
    In step 7 when i specify file which tab delimited text file at front end pc(at my pc) let say  c:\test.txt and save I got error message 'Logical path not assigned'.
    Please suggest what I'm missing and what i need to do to get it correct.
    Thanks,
    Anshuman.

    Hi,
    There are other files specified in the screen for imported and converted data. These files must be accessible on SAP application server. If the logical file names are not created use physical ones lik /tmp/blabla.lsmw.read etc.
    Make sure you use different files for different objects.
    Kind regards
    Michael

Maybe you are looking for

  • Importing .dv clips from hard drive -- clips imported in random order

    I use Firewire DTE drives with my camera when filming. Previously I could connect the drives to my computer via firewire and then import the clips into iMovie HD and the clips would go into the clip sorter in chronological order. As of about two week

  • SAP_CONVERT_TO_XML_FORMAT

    We are on ECC5.0. I am trying to use function module SAP_CONVERT_TO_XML_FORMAT. I am having problems. When I try to execute the FM I get the message "Error generating the test frame". Do I need to use a different FM. All help is appreciated and will

  • CS5.5 PP installation error

    Hello, I'm trying to install CS5.5 Production Premium alongside my existing install of Design Premium so I can use the video editing software in an upcoming project.  Shortly after starting the install, I am greeted by: Exit Code: 7 -----------------

  • Why won't my AE recognize my password?

    After installing my Airport Express I opened Network Setup and entered my network password. It would not recognize it. Figured I had the wrong one so the Apple Store helped me to reconfigure my MacBook Pro and we came up with a new password. Network

  • I can't save instruments in GB 11 v6.05

    I can't save instruments in GarageBand 11 v6.05. It crashes every time I press the save instruments button. Anyone know what's happening? MacBook Pro (Retina, 15-inch, Early 2013) Mac OS X 10.10 Yosemite