2007 May 02 10:05 AM
Hello all,
How can I find out application server from a logical system name.
I know logical sytem name is a association with application server name.
name of logical sytem is : PXT_010 and application server associated with it is frexn01pxt_010.
Though I know it but dynamically I want to retreive the application server name for a logical system name for another systems also.
Thanks,
Mark
2007 May 02 10:13 AM
This information is stored in trxn FILE.
This FM do the sam.e
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
client = sy-mandt
logical_filename = rv_logfile
operating_system = sy-opsys
use_presentation_server = c_mark
WITH_FILE_EXTENSION = ' '
USE_BUFFER = ' '
eleminate_blanks = c_mark
IMPORTING
EMERGENCY_FLAG =
file_format =
file_name = rv_phy
EXCEPTIONS
file_not_found = 1
OTHERS = 2.
Regards,
Amit
2007 May 02 10:17 AM
HI,
I think you can use the FM 'OWN_LOGICAL_SYSTEM_GET'
rewards if useful
regards,
nazeer
2007 May 02 10:24 AM
it does not solve my problem.
First function module has parameters that is none of my use, so it does not apply in my requirement.
The second function module only reuturns the logical system name but not the application server name also.
Thanks,
Mark
2007 May 02 10:29 AM
Hi Mark,
Have a look to FM FIND_DB_APPLICATION_SERVER
Rewards if helpfull,
Regards,
Stéphane.
2007 May 02 10:34 AM
Hello Mark
If you want to know the application server name of a remote system you could use the following function modules:
(1) Call function module <b>PARTNER_LOGICAL_SYSTEM_GET</b> on the remote system to read its logical system name.
(2) Call function module <b>RFC_GET_SYSTEM_INFO</b> on the remote system.
The EXPORTING parameter <b>RFCSI_EXPORT</b> returns you many (if not all) pieces of relevant information about the remote system including the application server name.
Regards
Uwe
2007 May 02 10:35 AM
Again I am sorry but this function module only returns application server name like the previous one before this returns only logical system name.
I want both the values either from a table or from a function module. If I give logical sytem name then it should return me application server name or if I know applicaiton server name it should return me logical system name.
Thanks,
Mark
2007 May 02 11:07 AM
Hello Mark
The point is that there is <b>no link</b> between the logical system and the application server. You can give any name to the logical system you want. There are no technical restrictions but reasonable recommendations, e.g.:
sysid = P10, client = 800 => logsys = P10CLNT800 (CUA naming convention)
Furthermore, the system-id (sysid) may be part of the application server name, but this is not mandatory.
Regards
Uwe