Archive

Archive for January, 2009

A Comprehensive Example for Connection to SAP with Visual Studio 2008

January 9th, 2009

——————————————————————————-

Required :

  • Visual Studio .NET 2003
  • Visual Studio 2008
  • SAP Application Server [ Any acceptable version for RFC]
  • SAP .NET Connector 1.1 or 2.0 [ 2.0 is suggestion]

——————————————————————————-

As I promised in my previous articles, I will just explain the building stones of connection to SAP using Visual Studio 2008 development tool.

Before reading this article, I suggest my readers should firstly read my two articles. One of this article is for the basic explanation of .NET Connector in Visual Studio .NET 2003. And the second article is for explaining the logic of connection to SAP with Visual Studio 2005 or Visual Studio 2008.

In this article, we will use SAP .NET Connector 2.0 version. SAP .NET Connector is an add on for Visual Studio .NET 2003.  So, we need Visual Studio .NET 2003 development tool. After installing the SAP .NET Connector add on, we will create a ‘class library’ project in Visual Studio .NET 2003. Below, I showed this operation.

sap_conn_vis2008_1
Read more…

C#, SAP, SAP .NET Connector, Visual Studio, Visual Studio 2005, Visual Studio 2008

Sending Synchronous Mail from SAP via Outlook using OLE2 Objects

January 1st, 2009

OLE2 objects are the milestone of COM technologies in SAP. You can connect any other system such as Outlook, Excel, Word, Adobe PDF from SAP with registering these assembly files of these systems.

You can not use OLE2 objects in background. While using some functions deal with OLE2 objects, there should be a connection to GUI.

OLE2 objects are very usefull while creating our localized applications. Such as you need to create an excel file with suppliying SAP data and so you can draw graphics in excel. We can diversify our examples. Think that you have a word template file. Such as a billing word document. You need to supply the required information to this template file. As a result, you can achieve your word document that was feeded with your SAP information as an output.

In our example, we will show a mail document in foreground. We will attach some documents to this mail. I have managed several document management projects in SAP. Documents are scanned and loaded into network and any document can be shown in SAP with the header information of this document. But, there is requirement that this document should be mailed easiliy. So, the fateful operation is adding the reqired documents to outlook mail message.

We will examine how to use the OLE2 objects from the beginning.

Read more…

ABAP, COM, Document Management System, MS Outlook, OLE2, SAP