Hello,
I've been playing around with the webmonitor BSP that comes with the 620 system and I would like to expand it to look at all application instances as well on the system.
I do this now by
CALL FUNCTION 'TH_WPINFO' DESTINATION rfcdest
TABLES
wplist = r3_list.
Given the rfcdest of the server I want to look at. In theory I should be able to give the rfc destination of an application server as well. The question is how can I dynamically create the rfc destination? Not manually create them first.
I do this now to get the list of the servers
CALL FUNCTION 'TH_SERVER_LIST' DESTINATION RFCDEST
TABLES
LIST = tablelist
exceptions
NO_SERVER_LIST = 1.
where tablelist-name is the server names.
Is it possible in a BSP to then take that server name and dynamically create the RFC connection? I do something similiar with JCo and I make my connection to each server dynamically.
Hi Craig,
It is my understanding that you cannot generate RFC destinations in R3 on the fly.
However, there is a standard RFC entry for each application server, of type Internal.
For example, if your hostname is "host01", your sid is "B01" and your instance is "00", there is an internal RFC by name host01_B01_00 that you can use.
The trick is to find out all internal RFC destinations.
One way could be to read table RFCDES for all entries of type "I" (field RFCTYPE)
hope this helps.
cheers,
Thorsten.
Add a comment