MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Escribir Fichero en Servidor (foro/showthread.php?t=32651)

leticia_gutierrez 29/09/09 11:01:34

Escribir Fichero en Servidor
 
Hola,

Necesito escribir un fichero en el servidor. Para ello utilizo OPEN DATASET, TRANSFER, CLOSE DATASET, de la siguiente manera:
* Abrir/Crear el fichero:
open dataset l_fullpath
for output in text mode.

loop at g_t_datos_fich into g_wa_t_datos_fich.

l_linefile = g_wa_t_datos_fich.
data: l_length type i.
l_length = strlen( l_linefile ).
* Transferir datos al fichero
transfer l_linefile to l_fullpath length l_length.

clear g_wa_t_datos_fich.

endloop.

* Cerrar Fichero.
close dataset l_fullpath.

endif.

El problema que tengo es que no escribe la línea completa sino que la corta. Cada línea a escribir en el fichero consta de 768 caracteres, hay algún límite máximo que no permita escribir la línea entera?

Un saludo.

DavidXD_XD 29/09/09 15:44:13

Hola, bueno no hay limite, intenta quitarle la longuitud a la sentencia TRANSFER, cuando lo haces se ajusta automaticamente a la longuitud que estas transfiriendo


Husos Horarios son GMT. La hora en este momento es 11:46:41.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web