Skip to Content
avatar image
Former Member

SAP to .net (sm59)

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jun 17, 2005 at 02:26 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jun 17, 2005 at 04:02 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 17, 2005 at 12:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 18, 2005 at 09:58 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2005 at 02:43 AM

    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

    Add comment
    10|10000 characters needed characters exceeded