on 03-26-2010 11:07 AM
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.
Please check the definition of the logical file name in transaction FILE.
Thanks
mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.