RFC call to get Server List

How to get the RFC call to get the list of SAP Servers (Different machines)?
Does such a thing exist (From SAPRFC.INI may be?) but the INI file is not a good option as I would need to check
the connection availability.
 

A list of application servers within an R/3 system can be obtained by calling function module 'TH_DISPLAY_SERVER_LIST

For example: 

REPORT ZSERVERLIST.

call function 'TH_DISPLAY_SERVER_LIST'.

*** End of Program

Fast Links:
BDC program examples:
Auto Disallowed Back Posting to Previous Period

Get help for your ABAP problems
Do you have a ABAP Question?

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

ABAP Programming Tips
ABAP and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.