SAP BAPI_BUS2177_GET_DETAIL Function Module for BAPI Role: Detailed Data
BAPI_BUS2177_GET_DETAIL is a standard bapi bus2177 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 BAPI Role: Detailed 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 bus2177 get detail FM, simply by entering the name BAPI_BUS2177_GET_DETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: DPR_BUS2177
Program Name: SAPLDPR_BUS2177
Main Program: SAPLDPR_BUS2177
Appliation area:
Release date: 10-Jan-2005
Mode(Normal, Remote etc): Remote-Enabled
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function BAPI_BUS2177_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_BUS2177_GET_DETAIL'"BAPI Role: Detailed Data.
EXPORTING
PROJECTROLE_GUID = "GUID for Project Role
IMPORTING
ES_PROJECTROLE = "Role Attributes
ES_EXTENSION_OUT = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
ET_TRANSITION_STATUS = "BAPI Interface: Transition Status of a Project Role
ES_ROLE_TYPE = "Structure of Role Type data
TABLES
* ET_NAME = "Name with Language
* ET_DESCRIPTION = "Long Text with Language
* ET_STATUS = "Information per Status in BAPI Interface
* ET_CANDIDATES = "Detailed Attributes of Candidates for a Role
* ET_TASKASSIGNMENTS = "Detailed Attributes of a Project Assignment of Role to Task
* ET_STAFFING = "Detailed Attributes of a Project Assignment
* ET_STAFFING_LOG_PLAINTEXT = "Long Text Without Language
* ET_STAFFING_LOG = "cProjects BAPI: RAW Line of Length 255
* RETURN = "Return Parameters
IMPORTING Parameters details for BAPI_BUS2177_GET_DETAIL
PROJECTROLE_GUID - GUID for Project Role
Data type: BAPI_TS_GUID-ROLE_GUIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BUS2177_GET_DETAIL
ES_PROJECTROLE - Role Attributes
Data type: BAPI_TS_PRP_PROJECTROLE_DETOptional: No
Call by Reference: No ( called with pass by value option)
ES_EXTENSION_OUT - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
Data type: BAPIPAREXOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRANSITION_STATUS - BAPI Interface: Transition Status of a Project Role
Data type: BAPI_TT_TRANSITION_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
ES_ROLE_TYPE - Structure of Role Type data
Data type: BAPI_TS_PRP_ROLE_CUST_DETAILOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BUS2177_GET_DETAIL
ET_NAME - Name with Language
Data type: BAPI_TS_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_DESCRIPTION - Long Text with Language
Data type: BAPI_TS_DESCRIPTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_STATUS - Information per Status in BAPI Interface
Data type: BAPI_TS_STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_CANDIDATES - Detailed Attributes of Candidates for a Role
Data type: BAPI_TS_PRP_CANDIDATE_DETOptional: Yes
Call by Reference: Yes
ET_TASKASSIGNMENTS - Detailed Attributes of a Project Assignment of Role to Task
Data type: BAPI_TS_PRP_TASKASSIGNMENT_DETOptional: Yes
Call by Reference: Yes
ET_STAFFING - Detailed Attributes of a Project Assignment
Data type: BAPI_TS_PRP_STAFFING_DETOptional: Yes
Call by Reference: Yes
ET_STAFFING_LOG_PLAINTEXT - Long Text Without Language
Data type: BAPI_TS_PRP_COMMENTOptional: Yes
Call by Reference: Yes
ET_STAFFING_LOG - cProjects BAPI: RAW Line of Length 255
Data type: BAPI_TS_RAW_LINEOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BUS2177_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: | ||||
lt_et_name | TYPE STANDARD TABLE OF BAPI_TS_NAME, " | |||
lv_es_projectrole | TYPE BAPI_TS_PRP_PROJECTROLE_DET, " | |||
lv_projectrole_guid | TYPE BAPI_TS_GUID-ROLE_GUID, " | |||
lt_et_description | TYPE STANDARD TABLE OF BAPI_TS_DESCRIPTION, " | |||
lv_es_extension_out | TYPE BAPIPAREX, " | |||
lt_et_status | TYPE STANDARD TABLE OF BAPI_TS_STATUS, " | |||
lv_et_transition_status | TYPE BAPI_TT_TRANSITION_STATUS, " | |||
lv_es_role_type | TYPE BAPI_TS_PRP_ROLE_CUST_DETAIL, " | |||
lt_et_candidates | TYPE STANDARD TABLE OF BAPI_TS_PRP_CANDIDATE_DET, " | |||
lt_et_taskassignments | TYPE STANDARD TABLE OF BAPI_TS_PRP_TASKASSIGNMENT_DET, " | |||
lt_et_staffing | TYPE STANDARD TABLE OF BAPI_TS_PRP_STAFFING_DET, " | |||
lt_et_staffing_log_plaintext | TYPE STANDARD TABLE OF BAPI_TS_PRP_COMMENT, " | |||
lt_et_staffing_log | TYPE STANDARD TABLE OF BAPI_TS_RAW_LINE, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
  CALL FUNCTION 'BAPI_BUS2177_GET_DETAIL' "BAPI Role: Detailed Data |
EXPORTING | ||
PROJECTROLE_GUID | = lv_projectrole_guid | |
IMPORTING | ||
ES_PROJECTROLE | = lv_es_projectrole | |
ES_EXTENSION_OUT | = lv_es_extension_out | |
ET_TRANSITION_STATUS | = lv_et_transition_status | |
ES_ROLE_TYPE | = lv_es_role_type | |
TABLES | ||
ET_NAME | = lt_et_name | |
ET_DESCRIPTION | = lt_et_description | |
ET_STATUS | = lt_et_status | |
ET_CANDIDATES | = lt_et_candidates | |
ET_TASKASSIGNMENTS | = lt_et_taskassignments | |
ET_STAFFING | = lt_et_staffing | |
ET_STAFFING_LOG_PLAINTEXT | = lt_et_staffing_log_plaintext | |
ET_STAFFING_LOG | = lt_et_staffing_log | |
RETURN | = lt_return | |
. " BAPI_BUS2177_GET_DETAIL |
ABAP code using 7.40 inline data declarations to call FM BAPI_BUS2177_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 ROLE_GUID FROM BAPI_TS_GUID INTO @DATA(ld_projectrole_guid). | ||||
Search for further information about these or an SAP related objects