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

find application server name from logical system

Former Member
0 Likes
2,549

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

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

7 REPLIES 7
Read only

amit_khare
Active Contributor
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

HI,

I think you can use the FM 'OWN_LOGICAL_SYSTEM_GET'

rewards if useful

regards,

nazeer

Read only

Former Member
0 Likes
1,219

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

Read only

0 Likes
1,219

Hi Mark,

Have a look to FM FIND_DB_APPLICATION_SERVER

Rewards if helpfull,

Regards,

Stéphane.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

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

Read only

0 Likes
1,219

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