SAP BAPI_RE_PG_GET_DETAIL Function Module for Return Participation Group Data
BAPI_RE_PG_GET_DETAIL is a standard bapi re pg get detail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Return Participation Group Data processing and below is the pattern details for this FM, 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 bapi re pg get detail FM, simply by entering the name BAPI_RE_PG_GET_DETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: RESC_BAPI_PARTICIP_GRP
Program Name: SAPLRESC_BAPI_PARTICIP_GRP
Main Program: SAPLRESC_BAPI_PARTICIP_GRP
Appliation area:
Release date: 19-Aug-2005
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_RE_PG_GET_DETAIL 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 'BAPI_RE_PG_GET_DETAIL'"Return Participation Group Data.
EXPORTING
COMPCODE = "Company Code
BUSINESSENTITYNUMBER = "Business Entity Number
PARTICIPGROUPNUMBER = "Participation Group
* DETAIL_DATA_FROM = "Date: Detailed Data Valid From
* DETAIL_DATA_TO = "Date: Detailed Data Valid To
IMPORTING
PARTICIP_GRP = "Participation Group
TABLES
* PARTICIP_OBJ = "Participating Object
* RESUBM_RULE = "Reminder Rules
* RESUBM_DATE = "Resubmission Dates
* STATUS = "Status
* EXTENSION_OUT = "Data of User Fields
* RETURN = "Return Parameter(s)
IMPORTING Parameters details for BAPI_RE_PG_GET_DETAIL
COMPCODE - Company Code
Data type: BAPI_RE_PARTICIP_GRP_KEY-COMP_CODEOptional: No
Call by Reference: No ( called with pass by value option)
BUSINESSENTITYNUMBER - Business Entity Number
Data type: BAPI_RE_PARTICIP_GRP_KEY-BUSINESS_ENTITYOptional: No
Call by Reference: No ( called with pass by value option)
PARTICIPGROUPNUMBER - Participation Group
Data type: BAPI_RE_PARTICIP_GRP_KEY-PARTICIP_GROUPOptional: No
Call by Reference: No ( called with pass by value option)
DETAIL_DATA_FROM - Date: Detailed Data Valid From
Data type: BAPI_RE_ADDITIONAL_FIELDS-DETAIL_VALID_FROMOptional: Yes
Call by Reference: No ( called with pass by value option)
DETAIL_DATA_TO - Date: Detailed Data Valid To
Data type: BAPI_RE_ADDITIONAL_FIELDS-DETAIL_VALID_TOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_RE_PG_GET_DETAIL
PARTICIP_GRP - Participation Group
Data type: BAPI_RE_PARTICIP_GRPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_RE_PG_GET_DETAIL
PARTICIP_OBJ - Participating Object
Data type: BAPI_RE_PARTICIP_OBJOptional: Yes
Call by Reference: Yes
RESUBM_RULE - Reminder Rules
Data type: BAPI_RE_RESUBM_RULEOptional: Yes
Call by Reference: Yes
RESUBM_DATE - Resubmission Dates
Data type: BAPI_RE_RESUBM_DATEOptional: Yes
Call by Reference: Yes
STATUS - Status
Data type: BAPI_RE_STATUSOptional: Yes
Call by Reference: Yes
EXTENSION_OUT - Data of User Fields
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_RE_PG_GET_DETAIL 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_compcode | TYPE BAPI_RE_PARTICIP_GRP_KEY-COMP_CODE, " | |||
| lv_particip_grp | TYPE BAPI_RE_PARTICIP_GRP, " | |||
| lt_particip_obj | TYPE STANDARD TABLE OF BAPI_RE_PARTICIP_OBJ, " | |||
| lt_resubm_rule | TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE, " | |||
| lv_businessentitynumber | TYPE BAPI_RE_PARTICIP_GRP_KEY-BUSINESS_ENTITY, " | |||
| lt_resubm_date | TYPE STANDARD TABLE OF BAPI_RE_RESUBM_DATE, " | |||
| lv_participgroupnumber | TYPE BAPI_RE_PARTICIP_GRP_KEY-PARTICIP_GROUP, " | |||
| lt_status | TYPE STANDARD TABLE OF BAPI_RE_STATUS, " | |||
| lv_detail_data_from | TYPE BAPI_RE_ADDITIONAL_FIELDS-DETAIL_VALID_FROM, " | |||
| lt_extension_out | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_detail_data_to | TYPE BAPI_RE_ADDITIONAL_FIELDS-DETAIL_VALID_TO, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_RE_PG_GET_DETAIL' "Return Participation Group Data |
| EXPORTING | ||
| COMPCODE | = lv_compcode | |
| BUSINESSENTITYNUMBER | = lv_businessentitynumber | |
| PARTICIPGROUPNUMBER | = lv_participgroupnumber | |
| DETAIL_DATA_FROM | = lv_detail_data_from | |
| DETAIL_DATA_TO | = lv_detail_data_to | |
| IMPORTING | ||
| PARTICIP_GRP | = lv_particip_grp | |
| TABLES | ||
| PARTICIP_OBJ | = lt_particip_obj | |
| RESUBM_RULE | = lt_resubm_rule | |
| RESUBM_DATE | = lt_resubm_date | |
| STATUS | = lt_status | |
| EXTENSION_OUT | = lt_extension_out | |
| RETURN | = lt_return | |
| . " BAPI_RE_PG_GET_DETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_RE_PG_GET_DETAIL
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 COMP_CODE FROM BAPI_RE_PARTICIP_GRP_KEY INTO @DATA(ld_compcode). | ||||
| "SELECT single BUSINESS_ENTITY FROM BAPI_RE_PARTICIP_GRP_KEY INTO @DATA(ld_businessentitynumber). | ||||
| "SELECT single PARTICIP_GROUP FROM BAPI_RE_PARTICIP_GRP_KEY INTO @DATA(ld_participgroupnumber). | ||||
| "SELECT single DETAIL_VALID_FROM FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_detail_data_from). | ||||
| "SELECT single DETAIL_VALID_TO FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_detail_data_to). | ||||
Search for further information about these or an SAP related objects