Ver Mensaje Individual
  #12  
Viejo 12/04/12, 01:35:45
agarrido agarrido is offline
Junior Member
 
Fecha de Ingreso: dic 2006
Mensajes: 2
Declaras una variable para asignar el caracter Enter y al final de los campos que van al archivo, creas otro para asignar esa variable que contiene el Enter.

Nota: en el GUI_DOWNLOAD, debes mandar este parámetro así:

trunc_trailing_blanks_eol = 'X'

--------------------------------------------
data: c_newline(1) type c value cl_abap_char_utilities=>newline.

data: begin of it_fin occurs 0 ,
linea(25) ,
end of it_fin.

data: begin of it_c occurs 0, "
tipreg(3) type c, " Tipo de Registro
ctacar(20) type c, " Cuenta
center(1) type c, " Caracter enter
end of it_c.


it_c-tipreg = 'A'.
it_c-ctacar = ''.
it_c-center = c_newline.
append it_c.

insert it_c into it_fin index 1 .


call function 'GUI_DOWNLOAD'
exporting
filename = w_namefile
filetype = 'ASC'
trunc_trailing_blanks_eol = 'X'
header = '00'
write_lf = 'X'
write_lf_after_last_line = 'X'
tables
data_tab = it_fin[].
Responder Con Cita