SAP PRGN_SAVE_ROLE_MENU Function Module for









PRGN_SAVE_ROLE_MENU is a standard prgn save role 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 prgn save role menu FM, simply by entering the name PRGN_SAVE_ROLE_MENU into the relevant SAP transaction such as SE37 or SE38.

Function Group: PRGN_STRUCTURE
Program Name: SAPLPRGN_STRUCTURE
Main Program: SAPLPRGN_STRUCTURE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled + BasXML supported
Update:



Function PRGN_SAVE_ROLE_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 'PRGN_SAVE_ROLE_MENU'"
EXPORTING
ACTIVITY_GROUP = "
* AUTHORITY_CHECK = 'X' "
* ENQUEUE = ' ' "
* SOURCE_AGR_TIME = ' ' "

TABLES
* NODES = "
* TEXTS = "
* URLS = "
* TCODES = "
* ADD_DETAILS = "

EXCEPTIONS
NOT_AUTHORIZED = 1 ACTIVITY_GROUP_ENQUEUED = 2 NO_AUTH_FOR_TCODES = 3
.



IMPORTING Parameters details for PRGN_SAVE_ROLE_MENU

ACTIVITY_GROUP -

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

AUTHORITY_CHECK -

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

ENQUEUE -

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

SOURCE_AGR_TIME -

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

TABLES Parameters details for PRGN_SAVE_ROLE_MENU

NODES -

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

TEXTS -

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

URLS -

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

TCODES -

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

ADD_DETAILS -

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

EXCEPTIONS details

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

ACTIVITY_GROUP_ENQUEUED -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTH_FOR_TCODES -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PRGN_SAVE_ROLE_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_nodes  TYPE STANDARD TABLE OF AGR_HIER, "   
lv_activity_group  TYPE AGR_NAME, "   
lv_not_authorized  TYPE AGR_NAME, "   
lt_texts  TYPE STANDARD TABLE OF AGR_HIERT, "   
lv_authority_check  TYPE CHAR01, "   'X'
lv_activity_group_enqueued  TYPE CHAR01, "   
lt_urls  TYPE STANDARD TABLE OF AGR_BUFFI, "   
lv_enqueue  TYPE CHAR01, "   SPACE
lv_no_auth_for_tcodes  TYPE CHAR01, "   
lt_tcodes  TYPE STANDARD TABLE OF AGR_TCODES, "   
lv_source_agr_time  TYPE AGR_TIME, "   SPACE
lt_add_details  TYPE STANDARD TABLE OF AGR_SHIER_BOR. "   

  CALL FUNCTION 'PRGN_SAVE_ROLE_MENU'  "
    EXPORTING
         ACTIVITY_GROUP = lv_activity_group
         AUTHORITY_CHECK = lv_authority_check
         ENQUEUE = lv_enqueue
         SOURCE_AGR_TIME = lv_source_agr_time
    TABLES
         NODES = lt_nodes
         TEXTS = lt_texts
         URLS = lt_urls
         TCODES = lt_tcodes
         ADD_DETAILS = lt_add_details
    EXCEPTIONS
        NOT_AUTHORIZED = 1
        ACTIVITY_GROUP_ENQUEUED = 2
        NO_AUTH_FOR_TCODES = 3
. " PRGN_SAVE_ROLE_MENU




ABAP code using 7.40 inline data declarations to call FM PRGN_SAVE_ROLE_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.

 
 
 
 
DATA(ld_authority_check) = 'X'.
 
 
 
DATA(ld_enqueue) = ' '.
 
 
 
DATA(ld_source_agr_time) = ' '.
 
 


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!