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!
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
Similar Messages
-
Saplogon.ini file location question
Hi, any advice would be appreciated thanks
we have rolled the sap gui 6.40 to all our clients - all using a local copy of the saplogon.ini file in the local windows directory. however we wish to change this approach and have a central saplogon.ini file on a file server and point all the clients to this file.. any changes only then have to be made in one place.
can anyone help me with this, firstly is it possible, and if so how to change the client setting to adjust the location.
many thanks.Hi thanks for your link.
The document you pointed me towards led me to SAP note number 756686
which explains that you can edit the SAP icon on your desktop (by right-clicking and opening with notepad) and then adding a line cmd="/ini_file='path to ini file'\saplogon.ini'
Thanks for your assistance.
Edited by: Mike Ellis on Mar 4, 2008 1:05 PM -
C:windows\saplogon.ini file error
Hi Experts,
I have SAPGUI 7.10 systems and whenever I add new SAP Server in SAP Logon Pad, a corresponding entry is created in C:\WINDOWS\SAPLOGON.INI file.
But in some system, part of file content is as below:
Server
Item1=
Item2=XXXXX
Item3=YYYYY
Item4=AAAAA
Item5=BBBBB
where in xxx, yyyy,aaa,bbb are the application server IP.
But here Item1= <space> as shown.
For other user systems, item1 corresponds for first entry of logon pad as expected.
Server
Item1=XXXXX
Item2=YYYY
Item3=AAAA
Item4=BBBBB
And I am getting an error if I try at system with item1=<space>.
Can you tell why this space is inserted on some system and not on others?
Thanks
Depesh.Hi,
I am using sapgui 7.10 with patch level 14.
There is a space shown in all the systems and this creating a problem while executing an SAP shortcut by saying no system description found as it tries to search for a description from saplogon.ini. even if it exists but with a space for item1.
nobody has manually changed the saplogon.ini file.
if i manually remove the space then add server list again or i copy the file with no space from somebody system then it works without error.
But i cannot copy and replace this file if i have 1000+ user working on a solution having their saplogon.ini file with item1=space.
Kindly suggest some automated process to ensure the space removal.
thanks
depesh. -
Dear All,
I had installed SAP LOGON 710, Patch Level 9 on Windows Vista OS. I am not able to find SAPLOGON.INI file. Normally it is in C:\Windows but it is not there. I had also search whole C:\ drive but it is not there.
I want to know the where the logon details are saved. if any one knows abt this please replay.
Regards,
Tejas Naik.Hi,
did you search for SAPLOGON.INI?
Do you have a local or a server-installation of SAPGUI?
Regards, Dieter
Another way i to look in LOGON-Pad in OPTIONS. There you can see what saplogon.ini is used.
Regards, Dieter
Edited by: Dieter Gröhn on Sep 23, 2008 12:59 PM -
How to excute scripts for distributing SAPLOGON.ini file
Hi Experts,
Could you please tell the steps if I have to distirbute new SAPLOGON.ini file to all clients as existing one is having issue of empty entry for item1 for server details.
I have got script code from the below mentioned link:
Installation Server package event scripting for services file
But I dont know how these scripts are to be executed?
Thanks
Depeshhello
please read the installation server help.chm file carefully!
There you find the information which you looking for.
You need an Frontend Installation server and then you can use the exampleas in the
installation serverhelp.chm file to deploy thesaplogon.ini with our nwsaspetup scripting
included in the frontend installation server.
In the Installationserverhelp.chm you find the chapter
Administering an Installation Server ->
Maintaining Installation Packages ->
Configuring Packages and Scripting Events ->
Package Event Scripting Samples ->
Example 1: Copying a customized u201CSapLogon.iniu201D and u201Cservicesu201D-file -->
Also please red the Frontend Installation Guide.
All Information which you need you can find in this 2 documentations!
Best Regards, Sven -
Problem related to C:\WINDOWS\SAPLOGON.INI file
Hi Experts,
I have SAPGUI 7.10 systems and whenever I add new SAP Server in SAP Logon Pad, a corresponding entry is created in C:\WINDOWS\SAPLOGON.INI file.
But in some system, part of file content is as below:
[Server]
Item1=
Item2=XXXXX
Item3=YYYYY
Item4=AAAAA
Item5=BBBBB
where in xxx, yyyy,aaa,bbb are the application server IP.
But here Item1= <space> as shown.
For other user systems, item1 corresponds for first entry of logon pad as expected.
[Server]
Item1=XXXXX
Item2=YYYY
Item3=AAAA
Item4=BBBBB
And I am getting an error if I try at system with item1=<space>.
Actually, I need to check this because system ID is mapped to description when I execute SAP Shortcut from dynpro.
Can you tell why this space is inserted on some system and not on others?
Thanks
Depesh.This question doesn't appear to be at all Web Dynpro ABAP related. Please post your questions in the correct forum in the future.
-
How to merge multipal saplogon.ini files..
How can I merge the multiple saplogon.ini files if system is on Domain?
We are merging two SAP Logon.ini file. The common file I placed in c:windows and the users own entries are in saplogon.ini in the %appdata%commonSAP directory. And by using note 1426178 pkt. 5, we set ConfigFileOnServer to c:
Now the user can create own entries in own saplogon.ini, and not change entries in the common saplogon.in I c:windows.
If you update the common file, you just have to replace the file in c:windows.
/René -
Modification to SAP Logon Cannot be written to INI file
Hi,
When i am trying to create a New Item in SAP logon it is giving an error "Modification to SAP logon could not be Written to INI file
Check permission for file 'C:\Windows'.
The problem is that, this is showing even when i m logged in as "XXXADM".
I have Reinstalled the SAP GUI, but the problem is as it is.
OS: WINDOWS 2003 server
Database: Oracle.
Please help me.
Thanks in advance,
SharibI had this same problem under a VISTA Enterprise client setup. I tried all the various recommendations, including setting the SAPLOGON_INI_FILE environment variable to point to c:\windows\saplogon.ini. None of these changes worked, I even modified the file ownership to match up with my logged on user without success.
I then looked at the shortcut for launching SAPLOGON, and tried to set the shortcut to run as an Administrator. That option was greyed out. I deleted the shortcut, and re-created it. Still unable to save changes. I then set the new SAPLOGON shortcut to execute as the administrator, and once I confirmed that I trusted the program, everything is now working as it should.
Not content to leave it this way, I moved my saplogon.ini file OUT of the c:\windows directory and instead placed it in the directory pointed to by %USERPROFILE%\saplogon.ini . I updated the environment variable setting and also removed the falg to execute the shortcut as the system administrator.
Now everything is working as it should without any special hoops -- seems that even with full access, VISTA security would not let a domain user that was part of the PC's Administrators account to edit the file w/o running as the system administrator.
Edited by: David L. Flad on Oct 30, 2009 4:02 AM -
Essbase.ini file location
Essbase 6.2.2<BR><BR>In MS Terminal Server, how do I specify which essbase.ini file to use (ie. file path)?<BR><BR>I logged in using the admininstrator account to solve another issue and ever since it is bypassing the individual client file and using the administrator version.<BR><BR>Any ideas?<BR><BR>Thanks in advance!
Hi thanks for your link.
The document you pointed me towards led me to SAP note number 756686
which explains that you can edit the SAP icon on your desktop (by right-clicking and opening with notepad) and then adding a line cmd="/ini_file='path to ini file'\saplogon.ini'
Thanks for your assistance.
Edited by: Mike Ellis on Mar 4, 2008 1:05 PM -
Memory leakage when using Ini-file VIs
I'm using the Configuration File Vis to read and write data to different .ini files. The files contain both standard keys and clusters written as a segment using the Open G toolkit. Instead of opening the files and keeping them in the memory of the Config VIs I'm just using them to read and write, decode and encode...the references are all closed using the Close Config Data.vi. The problem is that even though immediately close the config data the application keeps grabbing more and more data...every time a configuration file is open, read or written to and the closed everything from 4K to 50K of additional memory has been allocated by the application (this is a stripped down application that only deals with the config files, so
there are no other sources for the memory leak).
Has anyone else experienced this? How can you repeatedly open and close config file slike this without it continoulsy allocating more memory?
Attached is a copy of the VIs, the directory structure must be kept intact if the ini file is to be read correctly.
I've been stearing so hard on this the whole day that I might just be overlooking something obvious...
In the full application the VI init and write operations are only done when the user reconfigures the system, which may be a couple of times per month...so the memory leak would not cause a problem right away, but it would not be healthy to leave it there...
MTO
Attachments:
Memory_Leak_Demo.zip 1391 KBCould you post a 6.1 version?
LV7 is still about two weeks away for me.
Does the problem show up in 6.1?
I ran across an error while writting to a FP output that was not configured that would cause a "drop of memory" to leak every time the VI performed the write. The leak did not show up in the profiler but windows would show te memory foot print growing continually as long as the writes continued. The work around was "don't do that!".
I bring this up because I found and reported this just prior to LV7 release and the featur may still be present in LV7. I also believe that Jean-Pierre used a "write and check" metod to detail with the unknown data types of of complex data structures.
If you just read does it leak?
If you just use simple data types do
es it leak?
Is the ini file growing?
I really appreciate the effort you have been putting into the Dev-Exchange Mads! I wish i could do to more to help.
Keep us posted.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
.INI files vs .TXT files for changing default values in a .EXE?
Hi,
I have a two-part question related to updating the default values of controls in an executable:
I am creating a LabVIEW executable for installation on two different production-floor computers. I need to be able to change the default values of the front panel controls (as I would do with the “make this value default” command during development). From reading prior posts, I understand that I could use the “Write Configuration Settings File.vi” and “Read Configuration Settings File.vi” to generate a .INI file that would be read by the .EXE and would establish the desired values of the controls. However when I took a look at the block diagrams for those configuration .VIs, they don’t appear (to me) to be any easier to use than just reading values from a spreadsheet file. IE: Instead of using these configuration files and a .INI file, could I not instead just read values from a .TXT file that contains the desired values? I’ve never used a .INI file before, or had to worry about “keys” and “sections,” so from my (perhaps naïve) perspective, the .INI method seems less easy to use. Is there any advantage to the .INI format?
Regardless of whether I use the .INI file or a .TXT file, I have this additional problem: One of the things that changes when I install my .EXE file on a new computer is the COM port numbers used by two serial devices. (On my development computer, the two serial devices use COM5 and COM6, whereas on the two production-flood computers, the COM ports will almost certainly be different). I suppose I could use the Device Manager on the production-floor computers to change the COM ports to be the same as those on my development computer, but I’d prefer to be able to (again) change the default value of the COM ports in my .EXE. However, I’m not sure how to do that. The configuration VIs, have options for reading / writing Booleans, strings, paths, and numeric, but not, (so far as I can tell) for a VISA class.
Any thoughts / suggestions are welcome. Thanks.
Solved!
Go to Solution.Dan_the_Clam wrote:
Thanks for your reply, Yamaeda,
Great that I can use a string to open a VISA session - I had no idea. I'll try that.
And - ah - you are right about the .INI files. I just did an experiment in which I re-ordered the sections and randomly changed which letters were capitalized in the key values, and the "read configuration settings.VI" still read the file correctly. Thanks for that.
Unfortunately, in my existing code, the controls on the block-diagram aren't all co-located together; they are scattered throughout the block diagram - some of them in case structures and loops. I suppose that means I'll have to move them all to the left side of the block diagram, route them to these "Write Key.VIs" and then wire them up into the cases and loops with fairly long wires. It's just a hassle, and is going to make my block diagram more complicated. Well, I suppose that's how one learns...
Thanks again.
dan
Assuming you have a state machine and an Init state it's a fair use of Local Variables to update controls from the ini-file. The same goes for saving the values.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
Cretaion of UTL.File in Oracle 10G and directory entry in Ora.ini file
Hi,
Kindly advise me if:
(!) we can create a directory and log file in this directory on some other server instead of creating it in the file system of the server where the Oracle 10G database is residing?
Created directory in Oracle using create or replace directory command.
My package will be creating a log file using UTL.File in the above directory.
I want to create this directory on some other server to save my log file/s. Is this possible?
(2) Also, let me know in Oracle 10G, do we need to add the directory entry (mention above in #1) in the Ora.ini file on the Oracle 10G server?Hi,
1) utl_dir are different from directory object
2) you cannot create directory on remote server and there is no need to write directory entry on oracle init file (not ini..)
Acr -
How to create the ini file for java programms
hi all,
I have one problem that is ...
In my project I am using the JDBC connection ...
in this I am connecting different connections (means differenet usernames and passwords)...
for this evrey time I have to change the username and password in the
hardcode ...
I think that some ini file are there in java ...
So if anyone knows about use of ini files in java please
send me..
thanks........In java they are called properties files.
Look at java.util.Properties which provides methods for reading, writing, etc. -
I'm running windows 8 and had recently handed my computer back to be repaired. When I got my computer back I started getting the error that states that "Your Firefox profile cannot be loaded. It may be missing or inaccessible." upon opening.
I've had this before and just renamed the profile.ini file as something different forcing Firefox to create a new profile. However the profile.ini file is not there, at all.
Everything that I've searched for shows profile management through firefox, but I can't open firefox to create any profiles so they don't help at all.
Does anyone knowThis is usually caused by a problem with the profiles.ini file and the profile marked as Default=1 is no longer present on the hard drive.
*Windows: "%AppData%\Mozilla\Firefox\"
*Linux: ~/.mozilla/firefox/
*Mac: ~/Library/Application Support/Firefox/
*Delete the profiles.ini file to force Firefox to create a new default profile
*Use the Profile Manager to create a new profile
*Use "Choose Folder" to recover an existing profile if there is still one present
*http://kb.mozillazine.org/Profile_Manager
*https://support.mozilla.org/kb/Managing+profiles
*http://kb.mozillazine.org/Profile_folder_-_Firefox
The "AppData" folder in Windows Vista and later Window 7+ versions and the "Application Data" folder in XP/Win2K are hidden folders.
*http://kb.mozillazine.org/Show_hidden_files_and_folders
Create a new profile as a test to check if your current profile is causing the problems.
See "Creating a profile":
*https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox -
Reading INI files with dashes in the section name
I am trying to read an INI file from a web site. Within that INI file are sections that have dashes in them. I need to be able to read several sections so I can locate specific files to download referenced within the INI files. I found a script for parsing
INI files, but when I run it, the script fails to handle the sections that have dashes. Any ideas on how I can work around the issue?
$Web = New-Object System.Net.WebClient
Function Get-INIContent ($ContentList){
$INI = @()
Switch -regex ($contentList)
"^\[(.+)\]"
[string]$Section = $Matches[1]
$INI[$Section] = @{}
$CommentCount = 0
$ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
Get-INIContent $contentlist
What I was hoping to do was search through the INI until I found the sections I want, and then read the fields for that section so I know what to download. I won't be pulling all of the files, so I need to find a way to search for the sections I am
looking for then read all of the lines for that section and process them.Found part of the problem... When I pull the file into a variable I lose the ability to search it line by line. For example:
$Web = New-Object System.Net.WebClient
$ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
#For some reason this returns the entire file
$contentlist | select -first 1
$contentlist | %{
#Thought this would be one line, but it is also
#the entire file...
$_
I have since shifted to a different method of reading the ini and I can process row by row...
$Web = New-Object System.Net.WebClient
$INILocation = "c:\SomeLocation\avvdat.ini"
$Web.DownloadFile("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini",$INILocation)
$INIFile = [System.IO.File]::OpenText($INILocation)
Do {
$CurrentLine = $INIFile.ReadLine()
#This is now one line like it should be.
$CurrentLine
While ($INIFile.EndOfStream -ne $True)
Maybe you are looking for
-
AUDDIT REPORT - GL, AP and AR
HI ALL, I have to generate the Audit report for GL, AP and AR periods. for example, in gl_period_status table i can able to see the latest updated records. but the problem here is client want both old records and new(updated) records as well. i have
-
Problem in Banking External reconcilation -already exist in Table "OMTH
Hi, All, I am getting One Problem while Banking External reconcilation for an accont.it is giving error that entry already exist in Table "OMTH". it happens many times,Can u tell me reason and what may be solution to not getting
-
SQL Server does not exist or access denied - periodic error
Hi There, For the last week or so, I have been getting periodic errors on my sites powered by MSSQL databases. The error message is as follows: Microsoft OLE DB Provider for SQL Server error '80004005' [DBNETLIB][ConnectionOpen (Connect()).]SQL Serve
-
Issues in using RequestDispatcher
Hi:I have found that when a forwarding servlethave read the request body, it must using mark() and reset() method of InputStream to restore the request body. Otherwise the receiving serlvet can not read the original request body message. Also it seem
-
Installed MOTU audio interface software - audio output has disappeared?
hi, does anyone know why after installing the software to run my MOTU 896HD audio interface i am no longer seeing the audio output in system settings? i use this to output audio to the little mini jack output for headphones etc. now it is gone. how c