Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

client server details

Former Member
0 Likes
577

how to get project  landscape server details in real time  like (development ,quality) to put in sap logon pad?

3 REPLIES 3
Read only

Former Member
0 Likes
531

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

Read only

kiran_k8
Active Contributor
0 Likes
531

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.

Read only

Former Member
0 Likes
531

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