SAP SERVER_ATTRIBUTES_GET Function Module for Determine PBX attributes









SERVER_ATTRIBUTES_GET is a standard server attributes get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine PBX attributes processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for server attributes get FM, simply by entering the name SERVER_ATTRIBUTES_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: PHOD
Program Name: SAPLPHOD
Main Program: SAPLPHOD
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SERVER_ATTRIBUTES_GET pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SERVER_ATTRIBUTES_GET'"Determine PBX attributes
EXPORTING
SERVER_ID = "
* DESCRIPT_LANGU = SY-LANGU "
* READ_NUMCHNGE = ' ' "
* READ_ALL_DESCRIPTIONS = ' ' "

IMPORTING
SERVER_ATTRIBUTES = "
SERVER_COUNTRY = "
SERVER_DESCRIPT = "

TABLES
* RULES_NUMBER_CHNGE = "
* DESCRIPTION_TAB = "

EXCEPTIONS
NO_ENTRY_FOUND = 1
.



IMPORTING Parameters details for SERVER_ATTRIBUTES_GET

SERVER_ID -

Data type: SPH_SERVER-SERVER
Optional: No
Call by Reference: No ( called with pass by value option)

DESCRIPT_LANGU -

Data type: SPH_SERVT-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_NUMCHNGE -

Data type: SPH_BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_ALL_DESCRIPTIONS -

Data type: SPH_BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SERVER_ATTRIBUTES_GET

SERVER_ATTRIBUTES -

Data type: SPH_SRVALL
Optional: No
Call by Reference: No ( called with pass by value option)

SERVER_COUNTRY -

Data type: SXNODES-COUNTRY
Optional: No
Call by Reference: No ( called with pass by value option)

SERVER_DESCRIPT -

Data type: SPH_SERVT-DESCRIPT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SERVER_ATTRIBUTES_GET

RULES_NUMBER_CHNGE -

Data type: SXTELMOOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESCRIPTION_TAB -

Data type: SPH_SERVT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_ENTRY_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SERVER_ATTRIBUTES_GET Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_server_id  TYPE SPH_SERVER-SERVER, "   
lv_no_entry_found  TYPE SPH_SERVER, "   
lv_server_attributes  TYPE SPH_SRVALL, "   
lt_rules_number_chnge  TYPE STANDARD TABLE OF SXTELMOOUT, "   
lv_descript_langu  TYPE SPH_SERVT-LANGU, "   SY-LANGU
lv_server_country  TYPE SXNODES-COUNTRY, "   
lt_description_tab  TYPE STANDARD TABLE OF SPH_SERVT, "   
lv_read_numchnge  TYPE SPH_BOOLEAN, "   SPACE
lv_server_descript  TYPE SPH_SERVT-DESCRIPT, "   
lv_read_all_descriptions  TYPE SPH_BOOLEAN. "   SPACE

  CALL FUNCTION 'SERVER_ATTRIBUTES_GET'  "Determine PBX attributes
    EXPORTING
         SERVER_ID = lv_server_id
         DESCRIPT_LANGU = lv_descript_langu
         READ_NUMCHNGE = lv_read_numchnge
         READ_ALL_DESCRIPTIONS = lv_read_all_descriptions
    IMPORTING
         SERVER_ATTRIBUTES = lv_server_attributes
         SERVER_COUNTRY = lv_server_country
         SERVER_DESCRIPT = lv_server_descript
    TABLES
         RULES_NUMBER_CHNGE = lt_rules_number_chnge
         DESCRIPTION_TAB = lt_description_tab
    EXCEPTIONS
        NO_ENTRY_FOUND = 1
. " SERVER_ATTRIBUTES_GET




ABAP code using 7.40 inline data declarations to call FM SERVER_ATTRIBUTES_GET

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single SERVER FROM SPH_SERVER INTO @DATA(ld_server_id).
 
 
 
 
"SELECT single LANGU FROM SPH_SERVT INTO @DATA(ld_descript_langu).
DATA(ld_descript_langu) = SY-LANGU.
 
"SELECT single COUNTRY FROM SXNODES INTO @DATA(ld_server_country).
 
 
DATA(ld_read_numchnge) = ' '.
 
"SELECT single DESCRIPT FROM SPH_SERVT INTO @DATA(ld_server_descript).
 
DATA(ld_read_all_descriptions) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!