cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error logical file name not maintained adequtely

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Thanks

mani

Former Member
0 Kudos

Hi,

i checked in file t-code i am not getting the filename used Z_MATERIAL_BOM_FILE in my program.

Please help what to do?

Former Member
0 Kudos

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

Answers (0)