Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Logical Path Problem

former_member251546
Participant
0 Kudos

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 😧

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.