cancel
Showing results for 
Search instead for 
Did you mean: 

SAP to .net (sm59)

Former Member
0 Kudos

Hi all,

can anyone explain how to set the vb.net server as destination in SAP using sm59.

Is there any exercise material avilable for that.

I want to call .net function to get results in the SAP.

detailed explanation is needed.

Regards,

S.Shankar

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

Thanks for Your Reply.

I will try and get back to you if i face any problems.

If i get it right, i will assign the points.

Thanks you,

Shankar

Former Member
0 Kudos

Hi

The following steps need to create server side application.

1. Create a SAP Connector Class - Application ( Under Visual C# Projects ) and give the RFC name and build the application.

2. Inside this application, write your .net code as per your requirement.

3. After completed, this application will create an exe file ( Under the folder bin\release ).

4. You need to pass the command line parameters to execute this exe file. Command line parameters are

-a<registeration Name> -g<SAP Server Name/IP Address> -X<Sap Gateway>

For example:-aREG -gSAPSER1 -xSAPGW00

5. Create a RFC destination in SM59, Under TCP/IP.

Technical Settings --> Activation Type --> Registered Server Program ( Need to be selected ).

Program ID must be your registeration name : REG

Gateway Options are

Gateway Host:SAPSER1

Gateway Service:SAPGW00

6. Write an ABAP program to call the RFC with destination as created in 5th setp.

7. The exe file should run in the same domain/LAN of your SAP server. You can test the connection in SM59.

Let me know if you have any clarifications.

You can go through the dotnet connector document for more information. This document is available in http://service.sap.com

Thanks & Regards,

Govind.

Former Member
0 Kudos

Hi, Guangwei

thanks for your remind

I fill the IP address in the Target Host

('Activation Type' click 'Start', and click 'explicit host', you can see the 'Target Host' in SM59)

In fact, I don't know clearly about the difference between Activation Type and the usage of these button.

Could you explain for me?

thanks

Former Member
0 Kudos

There are some samples and documention coming with the .net connector setup

Former Member
0 Kudos

Hi, you just need to create a TCP/IP destination in SM59.

set the IP address, which is your dotnet side machine IP.

And you also should set gateway info for this destination.

You can find the setting windows from menu.

For the parameter Gateway Host, you should enter the hostname of your SAP application server. The value for the parameter Gateway Service is usually SAPGW<XX>, where the XX is the system number of your SAP system.

Hope it will be helpful. thanks

Former Member
0 Kudos

Hi Zhenglin,

Usually there is no place (also no need) in sm59 to set the IP address of the target .NET machine. More important is the parameter Program ID if the RFC server will run in so-called registered mode.

Regards,

Guangwei