SAP DHCDC_API_OBJECTS_SUBSCRIBE Function Module for Add subscription to objects
DHCDC_API_OBJECTS_SUBSCRIBE is a standard dhcdc api objects subscribe SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Add subscription to objects 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 dhcdc api objects subscribe FM, simply by entering the name DHCDC_API_OBJECTS_SUBSCRIBE into the relevant SAP transaction such as SE37 or SE38.
Function Group: DHCDC_API_REMOTE
Program Name: SAPLDHCDC_API_REMOTE
Main Program: SAPLDHCDC_API_REMOTE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DHCDC_API_OBJECTS_SUBSCRIBE 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 'DHCDC_API_OBJECTS_SUBSCRIBE'"Add subscription to objects.
EXPORTING
IS_SUBSCRIBER_DATA = "Subscriber Data
IT_OBJECTS = "Objects to subscribe
* IV_START_PROCESSING = ABAP_TRUE "Start Processing Immediately
* IT_PERFORMANCE_SETTINGS = "
* IT_DATA_MODELS = "
* IT_FILTERS = "Filter Definitions for Objects
* IT_PROJECTIONS = "List of Projection Definitions
IMPORTING
EV_RESULT = "Subscription result
EXCEPTIONS
NO_AUTHORIZATION = 1
IMPORTING Parameters details for DHCDC_API_OBJECTS_SUBSCRIBE
IS_SUBSCRIBER_DATA - Subscriber Data
Data type: DHCDC_API_S_SUBSCRIBER_DATAOptional: No
Call by Reference: No ( called with pass by value option)
IT_OBJECTS - Objects to subscribe
Data type: DHCDC_API_T_OBJECTSOptional: No
Call by Reference: No ( called with pass by value option)
IV_START_PROCESSING - Start Processing Immediately
Data type: ABAP_BOOLEANDefault: ABAP_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_PERFORMANCE_SETTINGS -
Data type: DHCDC_API_T_PERF_SETTINGSOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_DATA_MODELS -
Data type: DHCDC_API_T_DATA_MODELOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_FILTERS - Filter Definitions for Objects
Data type: DHCDC_API_T_FILTEROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PROJECTIONS - List of Projection Definitions
Data type: DHCDC_API_T_PROJECTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DHCDC_API_OBJECTS_SUBSCRIBE
EV_RESULT - Subscription result
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORIZATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DHCDC_API_OBJECTS_SUBSCRIBE 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_ev_result | TYPE STRING, " | |||
| lv_no_authorization | TYPE STRING, " | |||
| lv_is_subscriber_data | TYPE DHCDC_API_S_SUBSCRIBER_DATA, " | |||
| lv_it_objects | TYPE DHCDC_API_T_OBJECTS, " | |||
| lv_iv_start_processing | TYPE ABAP_BOOLEAN, " ABAP_TRUE | |||
| lv_it_performance_settings | TYPE DHCDC_API_T_PERF_SETTINGS, " | |||
| lv_it_data_models | TYPE DHCDC_API_T_DATA_MODEL, " | |||
| lv_it_filters | TYPE DHCDC_API_T_FILTER, " | |||
| lv_it_projections | TYPE DHCDC_API_T_PROJECTION. " |
|   CALL FUNCTION 'DHCDC_API_OBJECTS_SUBSCRIBE' "Add subscription to objects |
| EXPORTING | ||
| IS_SUBSCRIBER_DATA | = lv_is_subscriber_data | |
| IT_OBJECTS | = lv_it_objects | |
| IV_START_PROCESSING | = lv_iv_start_processing | |
| IT_PERFORMANCE_SETTINGS | = lv_it_performance_settings | |
| IT_DATA_MODELS | = lv_it_data_models | |
| IT_FILTERS | = lv_it_filters | |
| IT_PROJECTIONS | = lv_it_projections | |
| IMPORTING | ||
| EV_RESULT | = lv_ev_result | |
| EXCEPTIONS | ||
| NO_AUTHORIZATION = 1 | ||
| . " DHCDC_API_OBJECTS_SUBSCRIBE | ||
ABAP code using 7.40 inline data declarations to call FM DHCDC_API_OBJECTS_SUBSCRIBE
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_iv_start_processing) | = ABAP_TRUE. | |||
Search for further information about these or an SAP related objects