2016 Jan 19 3:13 PM
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..
2016 Jan 20 9:33 AM
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
2016 Jan 25 12:17 PM
Hi Uma
Is any integration tool in the landscape (e.g SAP PI/PO?)
Best regards,
Chris
2016 Jan 25 10:38 PM
Google -> SFTP from SAP site:sap.com -> 2nd link from the top