SAP BX_READ_USER_MENU Function Module for









BX_READ_USER_MENU is a standard bx read user menu SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bx read user menu FM, simply by entering the name BX_READ_USER_MENU into the relevant SAP transaction such as SE37 or SE38.

Function Group: SMTR_NAVIGATION_MODULES_BX
Program Name: SAPLSMTR_NAVIGATION_MODULES_BX
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BX_READ_USER_MENU 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 'BX_READ_USER_MENU'"
EXPORTING
* USER_NAME = SY-UNAME "
* GET_RFC_DESTINATION_TYPE = ' ' "Customized ('C') or standard menu ('S') flag
* RETRIEVE_HOMEPAGE = ' ' "
* USAGE_MODE = ' ' "URL generation mode: local or WP Server
* DEVICE = ' ' "Device Type
* LANGUAGE = SY-LANGU "
* SORT_NODES = ' ' "
* GENERATE_URL = ' ' "
* READ_USER_MENU = 'X' "Customized ('C') or standard menu ('S') flag
* READ_MINI_APPLICATIONS = ' ' "
* GENERATE_MINI_APP_URLS = 'X' "
* SHOW_AGR_NAME_IF_POSSIBLE = ' ' "
* REPLACE_RFC_VARIABLES = ' ' "

TABLES
* NODE_TAB = "
* GENERATED_URLS = "
* MINI_APPLICATIONS = "
* NEW_MINI_APPLICATIONS = "Generated URLs for Mini-Applications in roles
* ROLE_ATTRIBUTES = "Role attributes
* ALL_MINI_APPLICATIONS = "Generated URLs for Mini-Applications in roles
* E_AGR_HOMEPAGE = "
.



IMPORTING Parameters details for BX_READ_USER_MENU

USER_NAME -

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

GET_RFC_DESTINATION_TYPE - Customized ('C') or standard menu ('S') flag

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

RETRIEVE_HOMEPAGE -

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

USAGE_MODE - URL generation mode: local or WP Server

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

DEVICE - Device Type

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

LANGUAGE -

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

SORT_NODES -

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

GENERATE_URL -

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

READ_USER_MENU - Customized ('C') or standard menu ('S') flag

Data type: SMENSAPNEW-CUSTOMIZED
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_MINI_APPLICATIONS -

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

GENERATE_MINI_APP_URLS -

Data type: SMENSAPNEW-CUSTOMIZED
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHOW_AGR_NAME_IF_POSSIBLE -

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

REPLACE_RFC_VARIABLES -

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

TABLES Parameters details for BX_READ_USER_MENU

NODE_TAB -

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

GENERATED_URLS -

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

MINI_APPLICATIONS -

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

NEW_MINI_APPLICATIONS - Generated URLs for Mini-Applications in roles

Data type: BXMINI2
Optional: Yes
Call by Reference: Yes

ROLE_ATTRIBUTES - Role attributes

Data type: AGR_ATTS
Optional: Yes
Call by Reference: Yes

ALL_MINI_APPLICATIONS - Generated URLs for Mini-Applications in roles

Data type: BXMINI_ALL
Optional: Yes
Call by Reference: Yes

E_AGR_HOMEPAGE -

Data type: BXHOMEURL
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BX_READ_USER_MENU 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:
lt_node_tab  TYPE STANDARD TABLE OF BXMNODES1, "   
lv_user_name  TYPE SY-UNAME, "   SY-UNAME
lv_get_rfc_destination_type  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lv_retrieve_homepage  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lv_usage_mode  TYPE URLMODE, "   SPACE
lv_device  TYPE SDEVTYPE, "   SPACE
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_generated_urls  TYPE STANDARD TABLE OF BXURLG, "   
lv_sort_nodes  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_mini_applications  TYPE STANDARD TABLE OF BXMINI, "   
lv_generate_url  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_new_mini_applications  TYPE STANDARD TABLE OF BXMINI2, "   
lv_read_user_menu  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lt_role_attributes  TYPE STANDARD TABLE OF AGR_ATTS, "   
lt_all_mini_applications  TYPE STANDARD TABLE OF BXMINI_ALL, "   
lv_read_mini_applications  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_e_agr_homepage  TYPE STANDARD TABLE OF BXHOMEURL, "   
lv_generate_mini_app_urls  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lv_show_agr_name_if_possible  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lv_replace_rfc_variables  TYPE SMENSAPNEW-CUSTOMIZED. "   SPACE

  CALL FUNCTION 'BX_READ_USER_MENU'  "
    EXPORTING
         USER_NAME = lv_user_name
         GET_RFC_DESTINATION_TYPE = lv_get_rfc_destination_type
         RETRIEVE_HOMEPAGE = lv_retrieve_homepage
         USAGE_MODE = lv_usage_mode
         DEVICE = lv_device
         LANGUAGE = lv_language
         SORT_NODES = lv_sort_nodes
         GENERATE_URL = lv_generate_url
         READ_USER_MENU = lv_read_user_menu
         READ_MINI_APPLICATIONS = lv_read_mini_applications
         GENERATE_MINI_APP_URLS = lv_generate_mini_app_urls
         SHOW_AGR_NAME_IF_POSSIBLE = lv_show_agr_name_if_possible
         REPLACE_RFC_VARIABLES = lv_replace_rfc_variables
    TABLES
         NODE_TAB = lt_node_tab
         GENERATED_URLS = lt_generated_urls
         MINI_APPLICATIONS = lt_mini_applications
         NEW_MINI_APPLICATIONS = lt_new_mini_applications
         ROLE_ATTRIBUTES = lt_role_attributes
         ALL_MINI_APPLICATIONS = lt_all_mini_applications
         E_AGR_HOMEPAGE = lt_e_agr_homepage
. " BX_READ_USER_MENU




ABAP code using 7.40 inline data declarations to call FM BX_READ_USER_MENU

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 UNAME FROM SY INTO @DATA(ld_user_name).
DATA(ld_user_name) = SY-UNAME.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_get_rfc_destination_type).
DATA(ld_get_rfc_destination_type) = ' '.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_retrieve_homepage).
DATA(ld_retrieve_homepage) = ' '.
 
DATA(ld_usage_mode) = ' '.
 
DATA(ld_device) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_sort_nodes).
DATA(ld_sort_nodes) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_generate_url).
DATA(ld_generate_url) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_read_user_menu).
DATA(ld_read_user_menu) = 'X'.
 
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_read_mini_applications).
DATA(ld_read_mini_applications) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_generate_mini_app_urls).
DATA(ld_generate_mini_app_urls) = 'X'.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_show_agr_name_if_possible).
DATA(ld_show_agr_name_if_possible) = ' '.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_replace_rfc_variables).
DATA(ld_replace_rfc_variables) = ' '.
 


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!