Skip to Content
author's profile photo Former Member
Former Member

How to create sap router service in Windows 2012

Hi All

Can you help me to create a sap router service in Windows 2012 R2 Std 64 bit?

My SAP Router Version is 740.

SAPRouter.exe patch is D:\SAPRouter\USR\SAP\SAPRouter

Routtab path is D:\SAPRouter\USR\SAP\SAPRouter

And please clarify this saprouter will be compatible with our running SAP ECC6.0 7.0 ?

or SAP Router version will be depended on SAP ECC6.0?

Note: We have installed and built SAP Router in separate stand lone machine with Windows 2012 R2 64 bit version. Previous it was in other machine with Windows 2003 R2 32 bit version.

Thanks in advance

Sel

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on May 28, 2015 at 03:57 PM

    Hello Sel,

    Any saprouter version should be compatible with any ECC version.

    Regarding creating the service, have you tried using the command below (see SAP note 30289)?

    ntscmgr install SAProuter -b D:\SAPRouter\USR\SAP\SAPRouter\saprouter.exe -p "service -r -R D:\SAPRouter\USR\SAP\SAPRouter\saprouttab"

    --> notice it should be all in one line;

    --> execute it while logged on as a local administrator, and at a command prompt started as administrator

    Regards,

    Isaías

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2015 at 05:02 PM

    Hi del,

    Follow the sapnote525751 - Installation of the SNC SAPRouter as NT Service

    With regards

    Ashutosh chaturvedi

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      SAP "NOTE 525751 - Installation of SNC SAPRouter as NT Service" is a little bit buggy.

      I faced the problem that the installed SAPRouter Service does not used the defined Environment Variables SECUDIR and SNC_LIB for the User who shoud run the SAPRouter windows service. So I got an error by starting the SAPRouter Service.

      *****************************************************************************

      *

      * ERROR SNC processing failed:

      * SncInit

      *

      * TIME Thu Jul 28 17:57:50 2016

      * RELEASE 742

      * COMPONENT NI (network interface)

      * VERSION 40

      * RC -17

      * MODULE D:/depot/bas/742_REL/src/base/ni/nisnc.c

      * LINE 553

      * DETAIL NiSncInit: sncrc=-1

      * COUNTER 4

      *

      *****************************************************************************

      My solution at first was to set the Variable SNC_LIB as "System Variable" at the System Environment but this is a dirty solution so I searched for a better solution.

      This is my solution:

      <SAPROUTER-User> ---> Windows Account which should be used to run the SAPRouter as Windows Service

      Set at the User Environment (Windows: "Advanced system settings" --> "System Properties" --> "Environment Variables") of the <SAPROUTER-User> the following Variables:

      SECU_DIR= e.g. d:\usr\sap\saprouter\pse

      SNC_LIB= e.g. d:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll

      delete old SAPROUTER Windows Service

      c:\> sc delete SAPRouter

      Install SAPROUTER Service with following Parameters

      c:\> sc create SAPRouter type= own start= auto binPath= "<path>\saprouter\saprouter.exe service -r -W 60000 -R <path>\saprouter\saprouttab -G <path>\saprouter\log\log -T <path>\saprouter\log\trace -D -K \"p:<your_distinguished_name> \" obj= "<Domain>\<SAPROUTER-User>" DisplayName= "SAPRouter" password= <Password-of-SAPROUTER-User>

      e.g.

      C:\> sc create SAPRouter type= own start= auto binPath= "D:\usr\sap\saprouter\saprouter.exe service -r -W 60000 -R d:\usr\sap\saprouter\saprouttab -G d:\usr\sap\saprouter\log\log -T d:\usr\sap\saprouter\log\trace -D -K \"p:CN=SAPROUTERSERVER, OU=SAPCUSTOMERNUMBER, OU=SAProuter, O=SAP, C=DE\" " obj= "SAPROUTERSERVER\SAPROUTER-User" DisplayName= "SAPRouter" password= XXXXXXXX

      And now the SAP Router Windows Service start without any failure.

      By the way I figgured out that in newer Windows Server releases you can "Escape" the Char ' " ' quotation with the at Unix and Linux good known Char '\' (Backslash) .

      The Problem with the " for the SNC distinguished_name can be solved by using \"p:<your_distinguished_name> \" at the sc create binPath String.

      The "SAP Note 618053 - sc.exe replaces ntscmgr.exe" is buggy.

      ...

      • double quotation marks within a parameter need to be entered twice. Example:
        binPath= "c:\test.exe -p parameter""containing""quotationMarks"

      ...

      It does not work for me but

      the following worked for me

      binPath= "c:\test.exe -p parameter\"containing\"quotationMarks"

      I faced the problems an find the solutions on Windows Server 2008R2 x86_64.

      Kind Regards

      Frank Häcker

  • Posted on May 29, 2015 at 01:20 PM

    Hi Sel,

    Have you check the sapnote http://service.sap.com/sap/support/notes/41054

    With Regards

    Ashutosh Chaturvedi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2015 at 04:00 PM

    Hi Sel

    You can refer the SCN thread about your query's SAPROUTER Installation

    BR

    SS

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.