2015 Jan 23 11:44 AM
how to get project landscape server details in real time like (development ,quality) to put in sap logon pad?
2015 Jan 23 11:52 AM
Hi Vinod.
As each landscape is quite unique. I do not believe this can be derived from a config table.
Therefore you will most likely need to hardcode some logic which checks the SID of the current server and outputs the designation. "CRD" = "Development". "CRQ" = "QA". Etc
Hope this helps.
Arden
2015 Jan 23 12:06 PM
Vinod,
Use Sy-SYSID to get the SID of the current server.
Never and never hardcode sysid's.
Suppose in your landscape D2A is Development,Q2A is Quality server,you can never guarantee that the Development server will always be called D2A and Quality Server will always be called Q2A.They may change the SYSID's for ex D2A to D1A,if need arises.
In such a case harcoding of sysids in the program will be an issue and requires a change in the program.
K.Kiran.
2015 Jan 23 9:34 PM
Thanks Kiran
Quite correct, my solution was not the best example
I would recommend a custom SM30 table to manage this. Two fields would manage this:
# SID
# Description of System.
Regards
Arden