Skip to Content
avatar image
Former Member

Getting error logical file name not maintained adequtely

Hi,

when i execute a z report and press the download botton getting error logical file name not maintained adequtely,see long text.

Below code i wriien. Please somebody help..

DATA: lt_rows TYPE lvc_t_row.

CASE e_ucomm.

WHEN 'DOWNL'.

----


  • Determine and construct OS specific file name *

----


PERFORM get_file_name_for_os.

in the above perform , i wriien

FORM build_file_name USING pf_os

pf_with_file_extension

pf_param_1

pf_format

pf_fname.

DATA: lf_para1(20) TYPE c.

----


  • pf_param_1 hold the materialnr with leading zeros not prefered in *

  • download file name *

----


WRITE pf_param_1 TO lf_para1.

CALL FUNCTION 'FILE_GET_NAME'

EXPORTING

  • CLIENT = SY-MANDT

logical_filename = 'Z_MATERIAL_BOM_FILE'

operating_system = pf_os

parameter_1 = lf_para1

  • PARAMETER_2 = ' '

  • PARAMETER_3 = ' '

  • USE_PRESENTATION_SERVER = ' '

with_file_extension = pf_with_file_extension

  • USE_BUFFER = ' '

IMPORTING

  • EMERGENCY_FLAG =

file_format = pf_format

file_name = pf_fname

EXCEPTIONS

file_not_found = 1

OTHERS = 2

.

  • Error handling.

CASE sy-subrc.

WHEN '1'.

MESSAGE e014(ba) WITH 'Z_MATERIAL_BOM_FILE'. "error message i am getting LEAVE.

WHEN '2'.

MESSAGE e213(ky) WITH 'Z_MATERIAL_BOM_FILE'.

LEAVE.

ENDCASE.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Mar 26, 2010 at 11:11 AM

    Please check the definition of the logical file name in transaction FILE.

    Thanks

    mani

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi.

      In file txn,

      click on "Logical File Name Definition, Cross-Client" from the left.

      Then click position and check for your logical file name.

      If you dont get it, it means you need to create it. You can click on New Entries to create.

      Thanks

      Mani