Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

send IDOC (XML format) using SFTP to non-SAP system

0 Kudos
1,370

Hi friends,

I have a requirement where i have to use the basic idoc type INVOIC01, message type INVOIC to create an invoice IDOC & convert to XML format. Then i have to use the SFTP to send the XML Idoc to a non-sap system. Through R&D i came to know that SAP does not support SFTP, is it true? if so what are the other options that i can use to get the requirement done? i need your valuable suggestions..

3 REPLIES 3

thanga_prakash
Active Contributor
0 Kudos
308

Hello Uma,

You can convert the IDOC to XML with the help of function module IDOC_XML_TRANSFORM copy by referring to the below document.

Conversion of IDoc to XML File (Handy Tool) - Process Integration - SCN Wiki

For connecting to FTP server and transferring files. use the below function modules in sequence.

HTTP_SCRAMBLE


FTP_CONNECT


FTP_R3_TO_SERVER


FTP_DISCONNECT


Refer to (Source Code for Uploading a text file to an FTP Server based on DATA from the SAP System[FrontEnd]) the below link for the same.


The SAPFTP Library - FTP Programming in ABAP - ABAP Development - SCN Wiki


Regards,

Thanga

Cortex2k
Active Participant
0 Kudos
308

Hi Uma

Is any integration tool in the landscape (e.g SAP PI/PO?)

Best regards,

Chris

Jelena_Perfiljeva
Active Contributor
0 Kudos
308

Google -> SFTP from SAP site:sap.com -> 2nd link from the top