Skip to Content

SAPLOGON.SAL- different saplogon.ini files

Dear all,

I'm looking for a possibility to use different ini files, dependent from the access via network (lan) or VPN.

The local saplogon.ini file should only be used if the saplogon.ini file from the network directory is not available. Maybe with SAPLOGON.SAL?

thanks in advance!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 01, 2005 at 09:28 AM

    Dear Reiner,

    many thanks for your answer and sorry to annoy you again, but I need a little bit more information about this issue. Where can I find information about it? An example would be appreciated.

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

    • if (netWorkIsAvailable())

      {

      System.Runtime.InteropServices.Environment.SetEnvironmentVariable("SAPLOGON_INI_FILE", "c:
      windows
      SAPLOGON.SAL");

      }

      else

      {

      System.Runtime.InteropServices.Environment.SetEnvironmentVariable("SAPLOGON_INI_FILE", null);

      }

      SAPLogonDestination dest = new SAPLogonDestination();

      ...

      Message was edited by: Reiner Hille-Doering

  • Posted on Nov 30, 2005 at 01:11 PM

    SAPLOGON.EXE and the newest version of NCo (2.0.1) have a feature that allows to specify which SAPLOGON.INI to use: Set an environemnt variable called "SAPLOGON_INI_FILE" to the full pathname of the ini file you want to use.

    You can use the feature e.g. in a batch file that conditionally set the variable.

    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.