SAP PRGN_ACTIVITY_GROUPS_TRANSPORT Function Module for
PRGN_ACTIVITY_GROUPS_TRANSPORT is a standard prgn activity groups transport 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 activity groups transport FM, simply by entering the name PRGN_ACTIVITY_GROUPS_TRANSPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: PRGN
Program Name: SAPLPRGN
Main Program: SAPLPRGN
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRGN_ACTIVITY_GROUPS_TRANSPORT 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_ACTIVITY_GROUPS_TRANSPORT'".
EXPORTING
* COMP_WITH_SGL = 'X' "
* WITH_PROFILES = 'X' "
* PERS_OBJECTS = 'X' "
* USER_ASSIGNM = "
IMPORTING
RETURN = "
REQUEST_NAME = "Request/Task
TABLES
ACTIVITY_GROUPS = "
EXCEPTIONS
TRANSPORT_CANCELED_OR_PROBLEM = 1 ACTION_CANCELED = 2 ROLE_DOES_NOT_EXIST = 3 TRANSPORT_FAILED = 4
IMPORTING Parameters details for PRGN_ACTIVITY_GROUPS_TRANSPORT
COMP_WITH_SGL -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: Yes
WITH_PROFILES -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: Yes
PERS_OBJECTS -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: Yes
USER_ASSIGNM -
Data type: CHAR01Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PRGN_ACTIVITY_GROUPS_TRANSPORT
RETURN -
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
REQUEST_NAME - Request/Task
Data type: TRKORROptional: No
Call by Reference: Yes
TABLES Parameters details for PRGN_ACTIVITY_GROUPS_TRANSPORT
ACTIVITY_GROUPS -
Data type: AGR_DEFINEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TRANSPORT_CANCELED_OR_PROBLEM -
Data type:Optional: No
Call by Reference: Yes
ACTION_CANCELED -
Data type:Optional: No
Call by Reference: Yes
ROLE_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
TRANSPORT_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PRGN_ACTIVITY_GROUPS_TRANSPORT 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_return | TYPE BAPIRET2_T, " | |||
| lv_comp_with_sgl | TYPE CHAR01, " 'X' | |||
| lt_activity_groups | TYPE STANDARD TABLE OF AGR_DEFINE, " | |||
| lv_transport_canceled_or_problem | TYPE AGR_DEFINE, " | |||
| lv_request_name | TYPE TRKORR, " | |||
| lv_with_profiles | TYPE CHAR01, " 'X' | |||
| lv_action_canceled | TYPE CHAR01, " | |||
| lv_pers_objects | TYPE CHAR01, " 'X' | |||
| lv_role_does_not_exist | TYPE CHAR01, " | |||
| lv_user_assignm | TYPE CHAR01, " | |||
| lv_transport_failed | TYPE CHAR01. " |
|   CALL FUNCTION 'PRGN_ACTIVITY_GROUPS_TRANSPORT' " |
| EXPORTING | ||
| COMP_WITH_SGL | = lv_comp_with_sgl | |
| WITH_PROFILES | = lv_with_profiles | |
| PERS_OBJECTS | = lv_pers_objects | |
| USER_ASSIGNM | = lv_user_assignm | |
| IMPORTING | ||
| RETURN | = lv_return | |
| REQUEST_NAME | = lv_request_name | |
| TABLES | ||
| ACTIVITY_GROUPS | = lt_activity_groups | |
| EXCEPTIONS | ||
| TRANSPORT_CANCELED_OR_PROBLEM = 1 | ||
| ACTION_CANCELED = 2 | ||
| ROLE_DOES_NOT_EXIST = 3 | ||
| TRANSPORT_FAILED = 4 | ||
| . " PRGN_ACTIVITY_GROUPS_TRANSPORT | ||
ABAP code using 7.40 inline data declarations to call FM PRGN_ACTIVITY_GROUPS_TRANSPORT
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_comp_with_sgl) | = 'X'. | |||
| DATA(ld_with_profiles) | = 'X'. | |||
| DATA(ld_pers_objects) | = 'X'. | |||
Search for further information about these or an SAP related objects