Ansicht
Dokumentation

04988 - FTP From SAP

04988 - FTP From SAP

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

FTP From SAP

Hi Mike,

well I think I just have the complete solution for you as we just
recently did the very same setup for several remote system.
Basically I have an ABAP program which call function module Z_FTP,
which in fact uses the SAP function modules FTP_CONNECT and
FTP_COMMAND.

The program just passes the required parameter to the function module
then executes the data transmission. I even allow remote commands to
be used prior to the get or put command in order to set environment
variables if necessary. The function module provides a
detailed "session file" listing all FTP related messages received
from the target system, thus, you always know where something went
wrong if you have problems. The file can easily be used for trouble
shooting.

We use the function module not only for NT or Windows 2000 servers,
but other AS/400 and even UNIX systems as well. It works just fine
and is fast as well. The nice part is everything runs within SAP and
no external commands nor programs need to be defined nor executed.

If you want I can send you the function module source and the calling
program over.

Gerd
--- In SAP on System iZy..., "Mike Martin, IS-NA, AOSOLA" <MMartinZa...>
wrote:
> SAPers,
>
> What methodology do you recommend to move files from SAP to an NT
server?
> Thus far, we use an external command to handle this: external
command in
> SAP, setup to run BATCHFTP command on the AS/400. This uses FTP to
move the
> file to the remote system. The biggest limitation is that we must
setup a
> new external command (with correct params.) for each transfer.
>
> So, my questions are:
> 1. Is there a better way to accomplish moving files from the IFS to
an NT
> server?
> 2. Is there an ABAP program that FTPs from the 400 to remote
systems that
> allows directory specifications, etc., so that new variants can be
made for
> each transfer?
> 3. Is there a way to call an external command through ABAP where
variants
> can be used for each transfer which will pass the values to
a 'generic'
> external command?
>
> We have many new transfers starting, and any advice you can provide
would be
> greatly appreciated.
>
> Thanks in advance,
> Mike D. Martin
> SAP Basis Administrator
> AO * SOLA
> 707-763-9911 x6106
> email: <mailto:mmartinZs...>
>
>
>
>
>
> [Non-text portions of this message have been removed]


Durban Tours - Südafrika Safari

BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3030 Date: 20240602 Time: 135309     sap01-206 ( 3 ms )