SAP /SDF/GPC_DP_GET_DATA Function Module for Execute call to data provider for Generic DP
/SDF/GPC_DP_GET_DATA is a standard /sdf/gpc dp get data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Execute call to data provider for Generic DP 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 /sdf/gpc dp get data FM, simply by entering the name /SDF/GPC_DP_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SDF/GPC_PLUGIN_TOOLS
Program Name: /SDF/SAPLGPC_PLUGIN_TOOLS
Main Program: /SDF/SAPLGPC_PLUGIN_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SDF/GPC_DP_GET_DATA 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 '/SDF/GPC_DP_GET_DATA'"Execute call to data provider for Generic DP.
EXPORTING
IV_DP_NAME = "Data element for data provider name
IT_SELOPT = "Table of importing parameters for generic DP
IMPORTING
ET_DATA_GEN = "Generic data table for generic DP
EV_STATUS = "Status
ET_RESULT = "Table with Strings
ET_RESULT_STATUS = "Table Type of Return Status
ET_DATA_STRUCT = "Table of returned data for generic DP
EXCEPTIONS
NOT_AUTHORIZED = 1 EMPTY_DATA_PROVIDER = 2 NOT_AUTHORIZED_SECURE = 3
IMPORTING Parameters details for /SDF/GPC_DP_GET_DATA
IV_DP_NAME - Data element for data provider name
Data type: /SDF/GPC_DP_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
IT_SELOPT - Table of importing parameters for generic DP
Data type: /SDF/GPC_SELPARA_OR_TTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /SDF/GPC_DP_GET_DATA
ET_DATA_GEN - Generic data table for generic DP
Data type: /SDF/GPC_DATA_GEN_TTOptional: No
Call by Reference: No ( called with pass by value option)
EV_STATUS - Status
Data type: /SDF/STATUSOptional: No
Call by Reference: No ( called with pass by value option)
ET_RESULT - Table with Strings
Data type: /SDF/GPC_DP_STATUS_TTOptional: No
Call by Reference: No ( called with pass by value option)
ET_RESULT_STATUS - Table Type of Return Status
Data type: /SDF/E2E_RETURN_STATUS_MULT_TTOptional: No
Call by Reference: No ( called with pass by value option)
ET_DATA_STRUCT - Table of returned data for generic DP
Data type: /SDF/GPC_DATA_STRUCT_TTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_AUTHORIZED - No authorization
Data type:Optional: No
Call by Reference: Yes
EMPTY_DATA_PROVIDER - Empty data provider
Data type:Optional: No
Call by Reference: Yes
NOT_AUTHORIZED_SECURE - No authorization secure DP
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SDF/GPC_DP_GET_DATA 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_iv_dp_name | TYPE /SDF/GPC_DP_NAME, " | |||
| lv_et_data_gen | TYPE /SDF/GPC_DATA_GEN_TT, " | |||
| lv_not_authorized | TYPE /SDF/GPC_DATA_GEN_TT, " | |||
| lv_ev_status | TYPE /SDF/STATUS, " | |||
| lv_it_selopt | TYPE /SDF/GPC_SELPARA_OR_TT, " | |||
| lv_empty_data_provider | TYPE /SDF/GPC_SELPARA_OR_TT, " | |||
| lv_et_result | TYPE /SDF/GPC_DP_STATUS_TT, " | |||
| lv_not_authorized_secure | TYPE /SDF/GPC_DP_STATUS_TT, " | |||
| lv_et_result_status | TYPE /SDF/E2E_RETURN_STATUS_MULT_TT, " | |||
| lv_et_data_struct | TYPE /SDF/GPC_DATA_STRUCT_TT. " |
|   CALL FUNCTION '/SDF/GPC_DP_GET_DATA' "Execute call to data provider for Generic DP |
| EXPORTING | ||
| IV_DP_NAME | = lv_iv_dp_name | |
| IT_SELOPT | = lv_it_selopt | |
| IMPORTING | ||
| ET_DATA_GEN | = lv_et_data_gen | |
| EV_STATUS | = lv_ev_status | |
| ET_RESULT | = lv_et_result | |
| ET_RESULT_STATUS | = lv_et_result_status | |
| ET_DATA_STRUCT | = lv_et_data_struct | |
| EXCEPTIONS | ||
| NOT_AUTHORIZED = 1 | ||
| EMPTY_DATA_PROVIDER = 2 | ||
| NOT_AUTHORIZED_SECURE = 3 | ||
| . " /SDF/GPC_DP_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM /SDF/GPC_DP_GET_DATA
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.Search for further information about these or an SAP related objects