SAP PRGN_STRU_SAVE_DEFINITION Function Module for









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

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



Function PRGN_STRU_SAVE_DEFINITION 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_STRU_SAVE_DEFINITION'"
EXPORTING
ACTIVITY_GROUP = "
* AUTHORITY_CHECK = 'X' "Customized ('C') or standard menu ('S') flag
* ENQUEUE = ' ' "
* MESSAGE_OUTPUT = 'X' "Customized ('C') or standard menu ('S') flag
* PUSH_MINIAPPS = 'X' "Customized ('C') or standard menu ('S') flag
* PUSH_ATTRIBUTES = 'X' "Customized ('C') or standard menu ('S') flag
* PUSH_PERS_DATA = 'X' "

IMPORTING
AUTH_ERROR = "
ENQ_ERROR = "

TABLES
I_DEFINITION = "Role definition
* I_ACTGROUP_HPAGE = "Role Home Page
* I_ACTGROUP_TEXTS = "File Structure for Hierarchical Menu - Customer
* I_ACTGROUP_FLAGS = "Role attributes
* I_ACTGROUP_AGRS = "Roles in composite role
* I_ACTGROUP_ATTS = "Role attributes
* I_ACTGROUP_MINI = "MiniApps in Role
* I_ACTGROUP_MINIT = "Role mini-application texts
* I_ACTGROUP_MAPP = "MiniApps in Role
* I_PERS_DATA = "Personalization data

EXCEPTIONS
NOT_AUTHORIZED = 1
.



IMPORTING Parameters details for PRGN_STRU_SAVE_DEFINITION

ACTIVITY_GROUP -

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

AUTHORITY_CHECK - 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)

ENQUEUE -

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

MESSAGE_OUTPUT - 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)

PUSH_MINIAPPS - 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)

PUSH_ATTRIBUTES - 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)

PUSH_PERS_DATA -

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

EXPORTING Parameters details for PRGN_STRU_SAVE_DEFINITION

AUTH_ERROR -

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

ENQ_ERROR -

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

TABLES Parameters details for PRGN_STRU_SAVE_DEFINITION

I_DEFINITION - Role definition

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

I_ACTGROUP_HPAGE - Role Home Page

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

I_ACTGROUP_TEXTS - File Structure for Hierarchical Menu - Customer

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

I_ACTGROUP_FLAGS - Role attributes

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

I_ACTGROUP_AGRS - Roles in composite role

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

I_ACTGROUP_ATTS - Role attributes

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

I_ACTGROUP_MINI - MiniApps in Role

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

I_ACTGROUP_MINIT - Role mini-application texts

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

I_ACTGROUP_MAPP - MiniApps in Role

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

I_PERS_DATA - Personalization data

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

EXCEPTIONS details

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PRGN_STRU_SAVE_DEFINITION 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_auth_error  TYPE SMENSAPNEW-CUSTOMIZED, "   
lt_i_definition  TYPE STANDARD TABLE OF AGR_DEFINE, "   
lv_activity_group  TYPE AGR_DEFINE-AGR_NAME, "   
lv_not_authorized  TYPE AGR_DEFINE, "   
lt_i_actgroup_hpage  TYPE STANDARD TABLE OF AGR_HPAGE, "   
lv_enq_error  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_authority_check  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lt_i_actgroup_texts  TYPE STANDARD TABLE OF AGR_TEXTS, "   
lv_enqueue  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_i_actgroup_flags  TYPE STANDARD TABLE OF AGR_FLAGS, "   
lv_message_output  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lt_i_actgroup_agrs  TYPE STANDARD TABLE OF AGR_AGRS, "   
lv_push_miniapps  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lt_i_actgroup_atts  TYPE STANDARD TABLE OF AGR_ATTS, "   
lt_i_actgroup_mini  TYPE STANDARD TABLE OF AGR_MINI, "   
lv_push_attributes  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lv_push_pers_data  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lt_i_actgroup_minit  TYPE STANDARD TABLE OF AGR_MINIT, "   
lt_i_actgroup_mapp  TYPE STANDARD TABLE OF AGR_MAPP, "   
lt_i_pers_data  TYPE STANDARD TABLE OF SPERS_DDF. "   

  CALL FUNCTION 'PRGN_STRU_SAVE_DEFINITION'  "
    EXPORTING
         ACTIVITY_GROUP = lv_activity_group
         AUTHORITY_CHECK = lv_authority_check
         ENQUEUE = lv_enqueue
         MESSAGE_OUTPUT = lv_message_output
         PUSH_MINIAPPS = lv_push_miniapps
         PUSH_ATTRIBUTES = lv_push_attributes
         PUSH_PERS_DATA = lv_push_pers_data
    IMPORTING
         AUTH_ERROR = lv_auth_error
         ENQ_ERROR = lv_enq_error
    TABLES
         I_DEFINITION = lt_i_definition
         I_ACTGROUP_HPAGE = lt_i_actgroup_hpage
         I_ACTGROUP_TEXTS = lt_i_actgroup_texts
         I_ACTGROUP_FLAGS = lt_i_actgroup_flags
         I_ACTGROUP_AGRS = lt_i_actgroup_agrs
         I_ACTGROUP_ATTS = lt_i_actgroup_atts
         I_ACTGROUP_MINI = lt_i_actgroup_mini
         I_ACTGROUP_MINIT = lt_i_actgroup_minit
         I_ACTGROUP_MAPP = lt_i_actgroup_mapp
         I_PERS_DATA = lt_i_pers_data
    EXCEPTIONS
        NOT_AUTHORIZED = 1
. " PRGN_STRU_SAVE_DEFINITION




ABAP code using 7.40 inline data declarations to call FM PRGN_STRU_SAVE_DEFINITION

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 CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_auth_error).
 
 
"SELECT single AGR_NAME FROM AGR_DEFINE INTO @DATA(ld_activity_group).
 
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_enq_error).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_authority_check).
DATA(ld_authority_check) = 'X'.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_enqueue).
DATA(ld_enqueue) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_message_output).
DATA(ld_message_output) = 'X'.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_push_miniapps).
DATA(ld_push_miniapps) = 'X'.
 
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_push_attributes).
DATA(ld_push_attributes) = 'X'.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_push_pers_data).
DATA(ld_push_pers_data) = 'X'.
 
 
 
 


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!