Skip to Content
0
Former Member
Aug 01, 2007 at 03:05 PM

need Help

11 Views

Hi all,

Below code giving the shot dump at transfer command. How can i rectify that.

FORM upload_data .

data lw_filename type string.

data: lw_line(1024).

move p_ofile to lw_filename.

*---Open file for output

open dataset lw_filename for output in text mode encoding default.

*---Error opening file

if sy-subrc ne 0.

it_return-type = 'E'.

concatenate 'Error opening file'(002) lw_filename

into it_return-message.

append it_return.

clear it_return.

endif.

loop at it_material_data.

concatenate

cl_abap_char_utilities=>horizontal_tab

it_material_data-matnr

cl_abap_char_utilities=>horizontal_tab

it_material_data-maktx

cl_abap_char_utilities=>horizontal_tab

it_material_data-ersda

cl_abap_char_utilities=>horizontal_tab

it_material_data-prod_family

cl_abap_char_utilities=>horizontal_tab

it_material_data-prod_line

cl_abap_char_utilities=>horizontal_tab

it_material_data-prod_model

into lw_line.

transfer lw_line to lw_filename.

endloop.

close dataset lw_filename.

ENDFORM. " upload_data

you will get reward points.

regards,

Ajay reddy.