SAP COLL_ACTGROUPS_READ_MENU Function Module for









COLL_ACTGROUPS_READ_MENU is a standard coll actgroups read 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 coll actgroups read menu FM, simply by entering the name COLL_ACTGROUPS_READ_MENU into the relevant SAP transaction such as SE37 or SE38.

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



Function COLL_ACTGROUPS_READ_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 'COLL_ACTGROUPS_READ_MENU'"
EXPORTING
ACTIVITY_GROUP = "Role
* ALL_LANGUAGES = ' ' "
* NO_CONDENSE_MENU = ' ' "

TABLES
* OUTPUT_TREE = "
* OUTPUT_TREE_TEXT = "
* OUTPUT_TREE_URLS = "
* OUTPUT_TREE_DTLS = "

EXCEPTIONS
NO_DATA_FOUND = 1
.



IMPORTING Parameters details for COLL_ACTGROUPS_READ_MENU

ACTIVITY_GROUP - Role

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

ALL_LANGUAGES -

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

NO_CONDENSE_MENU -

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

TABLES Parameters details for COLL_ACTGROUPS_READ_MENU

OUTPUT_TREE -

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

OUTPUT_TREE_TEXT -

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

OUTPUT_TREE_URLS -

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

OUTPUT_TREE_DTLS -

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

EXCEPTIONS details

NO_DATA_FOUND - No menu exists

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

Copy and paste ABAP code example for COLL_ACTGROUPS_READ_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_output_tree  TYPE STANDARD TABLE OF SMENSAPLNG, "   
lv_no_data_found  TYPE SMENSAPLNG, "   
lv_activity_group  TYPE AGR_DEFINE-AGR_NAME, "   
lv_all_languages  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_output_tree_text  TYPE STANDARD TABLE OF SMENSAPLNT, "   
lv_no_condense_menu  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lt_output_tree_urls  TYPE STANDARD TABLE OF SMENSAPLNU, "   
lt_output_tree_dtls  TYPE STANDARD TABLE OF AGR_SHIER_BOR. "   

  CALL FUNCTION 'COLL_ACTGROUPS_READ_MENU'  "
    EXPORTING
         ACTIVITY_GROUP = lv_activity_group
         ALL_LANGUAGES = lv_all_languages
         NO_CONDENSE_MENU = lv_no_condense_menu
    TABLES
         OUTPUT_TREE = lt_output_tree
         OUTPUT_TREE_TEXT = lt_output_tree_text
         OUTPUT_TREE_URLS = lt_output_tree_urls
         OUTPUT_TREE_DTLS = lt_output_tree_dtls
    EXCEPTIONS
        NO_DATA_FOUND = 1
. " COLL_ACTGROUPS_READ_MENU




ABAP code using 7.40 inline data declarations to call FM COLL_ACTGROUPS_READ_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 AGR_NAME FROM AGR_DEFINE INTO @DATA(ld_activity_group).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_all_languages).
DATA(ld_all_languages) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_no_condense_menu).
DATA(ld_no_condense_menu) = ' '.
 
 
 


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!