‎2006 Jul 27 7:30 PM
How to create an interface(report) to Extract the data from SAP and send it to a third party system on a weekly basis, when the report which will be created for this particular interface is executed.
‎2006 Jul 27 7:49 PM
It depends on the third party system that you need to send data. If the external system supports IDOCs then you can create an IDOC using fm MASTER_IDOC_DISTRIBUTE and send it to the system else it the external systems reads flat files then maintain a common directory and prepare a flat file in your program and place the file in the directory which is reachable by your external system.
Or you can even maintain a common FTP location for file exchange.
‎2006 Jul 27 8:03 PM
HI,
A simple program to meeting your requirement would be as mentioned below...
The Output file can be saved in the application Server, which can be accessed by the third party system.
1. Reteieve the data required for your purpose into an internal table.
2. Use OPEN_DATASET command to open a file in the application server with mode as output... click the link below to know more about OPEN_DATASET.
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3c99358411d1829f0000e829fbfe/content.htm
2. Use the TRANSFER Command to tranfer all the records of your internal table to the application server.
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3d35358411d1829f0000e829fbfe/content.htm
3. Now close the file Using CLOSE_DATASET command
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3d1b358411d1829f0000e829fbfe/content.htm
Regards,
Vara