ABAP development - Using Predefined Logical Path

Hi,
I need to save content of a table to a flat file which i am doing in my ABAP code  these files can be very large ,  What i want to know is chosing a folder location for these file i want to use predefined Logical path for this so that the ABAP code should work on any SAP System , So my question is which Predefined  Logical Path to use for storing these file  ? as the data is not specific to any set of tables it can be any table . Any standards needs to be follwed here
on my system i checked there are 50+ Logical Path ( Predefined ).
Any suggestions
Edited by: Sourabhr on Jan 21, 2010 1:58 PM

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

Similar Messages

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

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

  • 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 : Unable to Specify Files . Logical path incorrect ?

    Hi Guys,
    I am trying to upload Goods movement Using the Standard LSMW 0110 program RM07MMBL.
    When I try to execute the step Specify Files ,system displays an error message "No Logical Path specified."
    The Source File is in my Local PC .
    When I click the Converted Data File in the Specify files list
    I get a popup which asks me for a Logical path and a Logical File and both these parameters a mandatory.
    I tried to maintain the parameters and entries in transaction FILE also.
    But it says 'logical path not assigned to the physical directory.'
    What is the correct method for this.
    What steps should I follow ..
    Pls advice
    Message was edited by: hao fu

    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,
    Rgds,

  • LSMW - source file from Logical Path and Files?

    Hi,
    When specifing the source file (legacy data) you want to use to load from - you can choose a file from the application server.
    For the application server file does anyone know is there anyway that you can use a logical path and file to represent this source file?
    I do not see this option in LSMW and am surprised at this as it necessitates changing the LSMW in each target system.
    Thanks in advance.
    Kind regards,
    Mark

    Hi,
    When specifing the source file (legacy data) you want to use to load from - you can choose a file from the application server.
    For the application server file does anyone know is there anyway that you can use a logical path and file to represent this source file?
    I do not see this option in LSMW and am surprised at this as it necessitates changing the LSMW in each target system.
    Thanks in advance.
    Kind regards,
    Mark

  • ABAP development thru portal

    I am not sure if this is the correct forum to post this but I could not think of another one to post into. Our company wants to start using the portal to for accessing SAP as opposed to fat client. I am trying to work with se80 and I find that it is not as good as the fat client. one thing I am finding is that when to click on a function, in the fat client you would be taken to the code for the function but in the portal it does not. It seems like delevoping thru the portal would really be a challange. Is anybody doing development thru the portal? are there tricks that you do or is there special setup that you do in order to do development?
    thanks in advance for your help

    Hi,
    The Portal is meant to replace the SAP GUI from the user's standpoint. The idea is that users would be able to access all applications (SAP or non SAP) through a single (web-based) user interface instead of having to log on individually to each of the systems.
    However, this does not apply to the developers. Developers will still have to do ABAP development using the SAP GUI and  dynpro development using the NWDS (for Java Web Dynpro) and SAP WAS (for ABAP Web Dynpro). This is not going to go away.
    Hope this helps in clarifying your doubts.
    Sudha

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

  • 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

  • Logical Paths created using /nFILE transaction used in InfoSpokes

    Hi all,
    I am creating an InfoSpoke in 3.5, wherein I am using logical file/Path to store the file generated on application server.
    My path is something like this
    /interface/CCD/BWD/outbound.. (Where BWD is development server)
    When I will transport this to quality (Say BWQ), i want my path to be
    /interface/CCQ/BWQ/outbound..
    So will it automatically convert when I transport infospoke and Logical Path/File from development to quality?

    Use a Function Module exit (Z_FILENAME_EXIT_name). See below.<br/><br/>
    <strong>Use</strong><br/>
    The physical file name is used by the function module FILE_GET_NAME at runtime to compose a complete platform-specific file name. If nothing is entered in the field Logical path, the file name may also contain the file path. In this case, the file name applies only to one hardware platform and must conform to the syntax of this platform.<br/><br/>
    <strong>Procedure</strong><br/>
    Enter a file name. You can use reserved words, which are substituted by the current values at run time. Reserved words must be enclosed in angle brackets (ignore the '):<br/><br/>
    <strong>Reserved word</strong>             <strong>Word to be substituted</strong><br/>
    <'OPSYS'>                Operating system in call<br/>
    <'INSTANCE'>                R/3 application instance<br/>
    <'SYSID'>                   R/3 application name in SY-SYSID<br/>
    <'DBSYS'>                   Database system in SY-DBSYS<br/>
    <'SAPRL'>                   R/3 release in SY-SAPRL<br/>
    <'HOST'>                    Host name in SY-HOST<br/>
    <'CLIENT'>                  Client in SY-MANDT<br/>
    <'LANGUAGE'>                Log on language in SY-LANGU<br/>
    <'DATE'>                    Date in SY-DATUM<br/>
    <'YEAR'>                    Year in SY-DATUM, 4-character<br/>
    <'SYEAR'>                   Year in SY-DATUM, 2-character<br/>
    <'MONTH'>                   Month in SY-DATUM<br/>
    <'DAY'>                     Day in SY-DATUM<br/>
    <'WEEKDAY'>                 Day of the week in SY-FDAYW<br/>
    <'TIME'>                    Time in SY-UZEIT<br/>
    <'STIME'>                   Hour and minute in SY-UZEIT<br/>
    <'HOUR'>                    Hour in SY-UZEIT<br/>
    <'MINUTE'>                  Minute in SY-UZEIT<br/>
    <'SECOND'>                  Seconds in SY-UZEIT<br/>
    <'PARAM_1'>                 External parameter 1<br/>
    <'PARAM_2'>                 External parameter 2<br/>
    <'PARAM_3'>                 External parameter 3<br/><br/>
    <'P=name'>                  Name of a profile parameter (see Report RSPARAM for valid values)<br/><br/>
    <'V=name'>                 Name of a variable (stored in variable table)<br/><br/>
    <'F=name'>                  Return value of a function module<br/>
                                               Naming convention for this function module:<br/>
                                               FILENAME_EXIT_name<br/><br/>
    <'Y=name'>                  Return value of a function module<br/>
                                               Naming convention for this function module:<br/>
                                               Y_FILENAME_EXIT_name<br/><br/>
    <'Z=name'>                  Return value of a function module<br/>
                                               Naming convention for this function module:<br/>
                                               Z_FILENAME_EXIT_name<br/><br/>
    <strong>Dependencies</strong><br/>
    The function module for the run-time variable <F=name> must meet the following requirements:<br/>
    u2022     Name<br/>
            The name must begin with "FILENAME_EXIT_".<br/>
    u2022     Parameter<br/>
            -   An export parameter with name "OUTPUT" must exist. No structure may exist for the parameters<br/>
            -   Import parameters are only supported if they have default values.<br/>
            -   Table parameters are not supported.<br/><br/>
    Valid example: FILENAME_EXIT_EXAMPLE.<br/>

  • RSCRM_BAPI - using logical path

    Hi everybody,
    I use rscrm_bapi in order to export data from bw.
    Is it possible to use logical path name in this interface?
    I try to write in the path field a logical path name which was define earlier (tran file),
    but the system concatenate the logical path name with the file name.
    For example:
    File name: HANA
    Path name: HADAR
    result in al11: /defualt directory/HADARHANA
    What is the right way to do it?
    Hadar

    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

  • Perl SAPNW::RFC used by ABAP developer or not ???

    Hello Folks,
    I have some good knowledge in Perl programming before  becoming and ABAPER.....
    Recently i have seen PERL RFC...
    Ever since i have seen the PERL RFC through which we can use for creating tables, reading tables, reading BAPIS and updating through BAPIS...
    Also  i came to know we can motiner all sap systems using Perl RFC.
    Now my question is
    1. Had anybody used Perl RFCs for developing an object or used BAPI for updating data into SAP systems.... ?
    2. As an ABAP developer are we allowed to use  PERL's SAPNW::RFC while developing objects or do we need to get permission from our Project manager etc ?
    Please reply me... I have several doubts on this ....
    If i can use them....then it reduces my coding time several hours, months, and years too !!!!

    Hi ,
    You can use Perl  RFC in multiple area but you need to setup connection between perl and SAP.
    Please see the below details, it may be helpful for you.
    Regards,
    Prasenjit
    Using Perl for SAP RFC - Part 1 - Installing Perl
    'Pass by  value' in BAPI and RFC
    http://wiki.scn.sap.com/wiki/display/EmTech/Installation+of+sapnwrfc+for+perl+on+Linux+and+Unix

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • SAP / ABAP Query - using logical database

    Hi ,
    We have a mandate to implement SAP Query using only Logical Databases (LDB ) .
    We understand that there are several issues using this approach .
    1 ) Paralled tables in MM need to be displayed on separate lines .
    2 ) Statistics based on fields from 2 different tables cannot be produced eg: EKPO ( PO Number )  and EKKN . (Cost Center )
    Please share your experiences .
    Thank you in advance .
    Kishore
    Kishore

    Adeel,
    I do appreciate your experience and respect you for knowledge on SAP Query. 
    Joining tables seem simple to IT experts but not so for end users.  SAP Query is an end-user tool and users seem to need a simple user-friend, drag-and-drop solution to extract information using SAP Query based on a pre-defined infoset.  Various SAP conferences have been advocating the use of SAP delivered Logical Databses to create infosets in order to harness the various advantages of LDBs. 
    In MM there are several LDBs (e.g. ELM, EBM etc) to create queries on EKPO and EKKN.  The problem arises when you use the same LDB to extract information from more than the above two tables e.g. EKPO, EKET, EKKN and EKBE.  SAP expects you to display fields on multiple lines and also does not allow producing statistics based on fields from two parallel tables say EKKN and EKBE.  Moreover, multi-line reports cannot be produced in the ALV/SLV format.  
    We are also looking for best practise solutions in providing SAP Query to MM or FI users based on SAP delivered Logical Databases.  
    Pascal

  • Where do I put the Jakarta files standard.jar and jstl.jar when developing with JSF 2.0 in OEPE using web logic server

    hi everybody, I am wondering what should i do with the standard.jar and jstl.jar files when using we logic. I tried putting both files into
    the directory c:\oracle\middleware\oracle_home\user_projects\domains\base_domain\bin.  I don't know if this is correct.  Thanks in
    in advance for the help.

    Anyways I found this link on www.oracle.com website by the same author of the book I am reading Deepak Vohra - Templating with JSF 2.0 Facelets.
    although here he is using Weblogic 11g although I don't think it makes a difference.  have a look at the Setting up the Environment section
    where he says to download the jstl.jar and standard.jar files.
    http://www.oracle.com/technetwork/articles/java/facelets-454361.html

Maybe you are looking for