About logical path

how can i use the logical path to store the file in logical path adress?
bye

see the following ex:
GFILE = '/data/sapdata/eu_tms/sq01data/DOMREPL_DETL_'.
IF NOT I_TAB[] IS INITIAL.
    CONCATENATE: GFILE '/' FILE INTO G_FILE.
    OPEN DATASET G_FILE FOR OUTPUT IN TEXT MODE
                                     ENCODING DEFAULT
                                     IGNORING CONVERSION ERRORS.
    IF SY-SUBRC = 0.
      LOOP AT I_TAB.
        CONCATENATE I_TAB-BUKRS ',' I_TAB-EBELN ','
              I_TAB-BLDAT ',' I_TAB-XBLNR ','
              I_TAB-LIFNR ',' I_TAB-AMOUNT ','
              I_TAB-CURR ','  I_TAB-BUSAREA ','
              I_TAB-BKTXT ',' I_TAB-DMBTR ','
              I_TAB-MENGE ','  I_TAB-SRNO INTO RECORD.
        TRANSFER RECORD TO G_FILE.
             ENDLOOP.
      CLOSE DATASET G_FILE.
      ENDIF.
    ENDIF.
  ENDIF.

Similar Messages

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

  • LSMW -Specify files -No logical path specified

    HI,
    While i specify a file in lsmw in specify files from pc front end in legacy data and i try to save. It says " no logical path specified " in the message bar.
    kindly help me in this issue.
    i am unable to go further as I cant specify files.
    Thank in advance

    Hi Srivasta
    You just put any, not used logical file name in your file definition step. LSMW will create this logical file byself und will use when is needed, but you just forget about it in future. Don't forget to recreate this file, when you move your LSMW to test and production systems, it is not created automaticaly there.
    The way you enter logical path and logical name is,
    Within the LSMW option 'Specify Files', Double click on
    'Converted Data' and a popup box will allow you enter
    file name , logical path and logical file.
    cheers
    Sameer

  • Error no logical path has been specified

    iam transfering inventory balance using standard object goods movement by direct
    input method .when iam uploading file at step  7 specify files iam getting error as
    no logical path has been specified.can someone answer for this error

    As find in forum -
    You just put any, not used logical file name in your file definition step. LSMW will create this logical file byself und will use when is needed, but you just forget about it in future. Don't forget to recreate this file, when you move your LSMW to test and production systems, it is not created automaticaly there.
    The way you enter logical path and logical name is,
    Within the LSMW option 'Specify Files', Double click on
    'Converted Data' and a popup box will allow you enter
    file name , logical path and logical file.
    Re: LSMW : Unable to Specify Files . Logical path incorrect ?
    Hope this may help you.
    Regards,
    Amit

  • Struts logical path problem

    HI,
    I am using struts in my web application deployed on OC4J server.
    I am hitting a problem that the "sub page" gets incorrect url.The details are as follows:
    in my struts config the mapping is defined as :
    1) "parent.do" is mapped to /WEB-INF/mypages/parent.jsp
    2)"child.do" is mapped to /WEB-INF/mypages/child.jsp
    My page "parent.jsp" contains two frames one having some a page with static images and the other frame having the src as "child.do"
    Now if I invoke the http://myserver/myapp/parent.do
    the first frame loads correctly while for second it throws an error 404 that "http://myserver/myapp/WEB-INF/mypages/child.do" not found.
    It seems to me that that the subpage does not get the correct information about the context.
    Any suggestions will be greatly appreciated.
    Regards.

    When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.

  • Definnig logical path and file names

    hallow experts,
    i wont to now about definnig logical path and file names,
    did some one have something that can help me in that
    regards

    Hi Rodrigo,
    Have a look at this link... i guess it explains what you are looking for...
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
    regards,
    Naveen

  • Logical filename and logical path in lsmw

    Hi all,
           I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
    can anybody provide a solution for that .
    Thanks & regards
      Magesh anandan

    hi ,
      goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
    hope it will helps u..
    regards,
    venkat.

  • 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 in lsmw

    hi friends,
    i have been uploading using the direct input method in lsmw.it is requiring the logical path and the logical file to be given.i tried to create them using the transaction FILE.but while using that in LSMW it is giving error stating that logical path doesn't point to the physical directory.can any how let me know how to create a logical file and logical path.
    thanks in advance.
    -senthilkumar

    hi ,
      goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
    hope it will helps u..
    regards,
    venkat.

  • Logical Path Problem

    hi,
    Good day guys
    Ive created the Logical path for mmi interface. its working fine. but in the logical path ive given the drive is H:
    Bcoz in the dev system drive is H: one which is maintain the file.
    But for the Quality and Production , Drive is different.. its in D:
    How to solve it? can any one plz tell me
    CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
    *   CLIENT                        = SY-MANDT
          logical_filename              = lv_log_file
    *   OPERATING_SYSTEM              = SY-OPSYS
          parameter_1                   = lv_log_file
    *      parameter_2                   = sy-uzeit
    *      parameter_3                   = '.txt'
          use_presentation_server       = 'X'
    *   WITH_FILE_EXTENSION           = ' '
    *   USE_BUFFER                    = ' '
    *   ELEMINATE_BLANKS              = 'X'
    IMPORTING
    *   EMERGENCY_FLAG                =
    *   FILE_FORMAT                   =
       file_name                     = outfile
    * EXCEPTIONS
    *   FILE_NOT_FOUND                = 1
    *   OTHERS                        = 2
      ELSE.
        CONCATENATE outfile sy-datum sy-timlo '.txt' INTO outfile.
      ENDIF.

    When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.

  • Finding the logical path

    How to find the logical filename for the given ARCHIVE object.
    I want to know the logical file name of FI_FICA object.
    Can any one guide me.
    Thanks,
    Shree

    Hi Sree,
    I don't have SAP system right now to check it.
    I think if you know the physical path, logical path can be found.
    Please check this thread for further reference.
    https://forums.sdn.sap.com/post!reply.jspa?messageID=5726662
    Thanks and Regards,
    Guru

  • 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 using in abap program

    hay,
    I want to create file in application server directory.
    so i want the user to select the Logical path and file name from screen.so that he can create the file and seved in selected logical path.{path used must be from Instance profile DIR_LOGGING,GLOBALPATH directory etc).
    could you pls tell me how to do this using parameter for user input selecting FILE PATH.
    Do we have Functional module for Retrieving physical path
    from logical path?
    could you pls help me..
    ambichan.

    hey,
    Thanks for your reply.
    Instead of using logical file name as input, can we allow the user to select logical path using parameter?
    I want user to select Logical path or logical file name from parameter. is it possible?
    (I want to avoid user to input insteal want to allow user to select the path)
    ambichan
    Message was edited by: ambi chan

Maybe you are looking for