10-10-2007 4:41 AM
Dear all,
I 'm going to develop a program to download a text file from FTP. Then, it parses the file and create a sale order. I planned to download the file into an internal table and create the sale order with BAPI. Is it possible to do in this way??
Regards,
Kit
10-10-2007 4:44 AM
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.........
Minal
10-10-2007 4:44 AM
10-10-2007 4:44 AM
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.........
Minal
10-10-2007 4:46 AM
Thank for your reply. Could you give me some example on reading the content from the FTP??
10-10-2007 4:49 AM
10-10-2007 4:50 AM
Hi,
Check below links for FTP
http://www.sap-img.com/ab003.htm
http://abap4.tripod.com/FTP_Using_SAP_Functions.html
http://searchsap.techtarget.com/tip/0,289483,sid21_gci533493,00.html
Regards,
Atish
10-10-2007 5:12 AM
Dear all,
Thank you for all of the reply. Is it possible to download the file into the server memory without writing into the disk?? I'm afraid there are security concern from my client.
Regards,
Kit
10-10-2007 4:46 AM
Hi Chan,
Ya, you can.
For that first you have to dowl load the data's from text file in to internal table using Fm <b>GUI_DOWNLOAD.</b>
<b>Check this Sample Code :</b>
call function 'GUI_DOWNLOAD'
exporting
filename = 'C:\TEMP\test.xls'
tables
data_tab = itab1
exceptions
others = 1.
Then using BAPI you can create a sales order.
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales
<b>Check this link for Creating Sales order using Bapi :</b>
https://forums.sdn.sap.com/click.jspa?searchID=5815719&messageID=3875439
Thanks.