05-08-2006 1:21 PM
Hi people.
I need to send an ASCII file to AS400. Somebody has idea of like being able to do it.
Thanks in advance.
Jorge.
05-08-2006 1:35 PM
Hi,
you could call fm
CALL FUNCTION 'GUI_EXEC'
EXPORTING
command = p_command
PARAMETER =
IMPORTING
RETURNCODE =
.
Best regards.
05-08-2006 1:24 PM
Hi,
first do a download to your application server and ftp this file to your AS400.
Best regards.
05-08-2006 1:32 PM
you know some form to send it without having to do download?
Regards.
05-08-2006 1:32 PM
Hi,
<u>for the download</u> use either: (<b>foreground</b>)
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = g_filename
write_field_separator = 'X'
CHANGING
data_tab = i_cuerpos2.
or: (<b>background</b>)
OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT i_cuerpos1 INTO wa_stock1.
TRANSFER wa_stock1 TO g_filename.
ENDLOOP.
CLOSE DATASET g_filename.
<u>for the FTP</u> have a look at SAP standard program <b>RSFTP002</b>.
Best regards.
05-08-2006 1:35 PM
Hi,
you could call fm
CALL FUNCTION 'GUI_EXEC'
EXPORTING
command = p_command
PARAMETER =
IMPORTING
RETURNCODE =
.
Best regards.
05-08-2006 1:38 PM
11-09-2006 7:06 PM
Hi Jorge,
I'm have to send file to as400, but FTP_CONNECT doesn't work for me. Please, would you tell me what can I do?
thanks,
Jennie
05-08-2006 1:40 PM
Hi Jorge,
if the answers have been helpful please don´t forgetto reward them
Best regards.
04-23-2009 4:26 PM
Jorge,
Utilizaste por casualidad PI para trasnferir el archivo al AS400???. Estoy en eso y quisiera comentar algunas dificultades.
Saludos