SAP Function Modules

CNS_DB_CP_GET_COUNT_OBJ SAP Function module







CNS_DB_CP_GET_COUNT_OBJ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CNS_DB_CP_GET_COUNT_OBJ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNS_DB_CP_GET
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CNS_DB_CP_GET_COUNT_OBJ - CNS DB CP GET COUNT OBJ





CALL FUNCTION 'CNS_DB_CP_GET_COUNT_OBJ' "
* EXPORTING
*   i_appl_id =                 " cns_dte_appl_id  Application ID
*   i_expobjtype =              " cns_dte_expobjtype  Category of Export Object
*   i_tab_cp_chgtype =          " cns_tab_cp_chgtype  Change Category
*   i_group_id =                " cns_dte_group_id  Grouping ID
*   i_tab_cp_status =           " cns_tab_cp_status  Status of Change Pointer
*   i_valid_from =              " cns_dte_timst_valid_from  Valid-On Time Stamp
*   i_created_from =            " cns_dte_timst_created_on  Time Stamp at Time of Creation
*   i_created_to =              " cns_dte_timst_created_on  Time Stamp at Time of Creation
*   i_expobjkey_min =           " cns_dte_expobjkey  Export Object Key
*   i_expobjkey_max =           " cns_dte_expobjkey  Export Object Key
*   i_receiver =                " cns_dte_receiver
*   i_bundle_id =               " cns_dte_cp_bundle_id
*   i_valid_to =                " cns_dte_timst_valid_from
*   i_add_sel =                 " cns_dte_add_sel
  IMPORTING
    e_cp_counter =              " int4          Natural Number
    .  "  CNS_DB_CP_GET_COUNT_OBJ

ABAP code example for Function Module CNS_DB_CP_GET_COUNT_OBJ





The ABAP code below is a full code listing to execute function module CNS_DB_CP_GET_COUNT_OBJ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_cp_counter  TYPE INT4 .

DATA(ld_i_appl_id) = 'Check type of data required'.
DATA(ld_i_expobjtype) = 'Check type of data required'.
DATA(ld_i_tab_cp_chgtype) = 'Check type of data required'.
DATA(ld_i_group_id) = 'Check type of data required'.
DATA(ld_i_tab_cp_status) = 'Check type of data required'.
DATA(ld_i_valid_from) = 'Check type of data required'.
DATA(ld_i_created_from) = 'Check type of data required'.
DATA(ld_i_created_to) = 'Check type of data required'.
DATA(ld_i_expobjkey_min) = 'Check type of data required'.
DATA(ld_i_expobjkey_max) = 'Check type of data required'.
DATA(ld_i_receiver) = 'Check type of data required'.
DATA(ld_i_bundle_id) = 'Check type of data required'.
DATA(ld_i_valid_to) = 'Check type of data required'.
DATA(ld_i_add_sel) = 'Check type of data required'. . CALL FUNCTION 'CNS_DB_CP_GET_COUNT_OBJ' * EXPORTING * i_appl_id = ld_i_appl_id * i_expobjtype = ld_i_expobjtype * i_tab_cp_chgtype = ld_i_tab_cp_chgtype * i_group_id = ld_i_group_id * i_tab_cp_status = ld_i_tab_cp_status * i_valid_from = ld_i_valid_from * i_created_from = ld_i_created_from * i_created_to = ld_i_created_to * i_expobjkey_min = ld_i_expobjkey_min * i_expobjkey_max = ld_i_expobjkey_max * i_receiver = ld_i_receiver * i_bundle_id = ld_i_bundle_id * i_valid_to = ld_i_valid_to * i_add_sel = ld_i_add_sel IMPORTING e_cp_counter = ld_e_cp_counter . " CNS_DB_CP_GET_COUNT_OBJ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_cp_counter  TYPE INT4 ,
ld_i_appl_id  TYPE CNS_DTE_APPL_ID ,
ld_i_expobjtype  TYPE CNS_DTE_EXPOBJTYPE ,
ld_i_tab_cp_chgtype  TYPE CNS_TAB_CP_CHGTYPE ,
ld_i_group_id  TYPE CNS_DTE_GROUP_ID ,
ld_i_tab_cp_status  TYPE CNS_TAB_CP_STATUS ,
ld_i_valid_from  TYPE CNS_DTE_TIMST_VALID_FROM ,
ld_i_created_from  TYPE CNS_DTE_TIMST_CREATED_ON ,
ld_i_created_to  TYPE CNS_DTE_TIMST_CREATED_ON ,
ld_i_expobjkey_min  TYPE CNS_DTE_EXPOBJKEY ,
ld_i_expobjkey_max  TYPE CNS_DTE_EXPOBJKEY ,
ld_i_receiver  TYPE CNS_DTE_RECEIVER ,
ld_i_bundle_id  TYPE CNS_DTE_CP_BUNDLE_ID ,
ld_i_valid_to  TYPE CNS_DTE_TIMST_VALID_FROM ,
ld_i_add_sel  TYPE CNS_DTE_ADD_SEL .

ld_i_appl_id = 'Check type of data required'.
ld_i_expobjtype = 'Check type of data required'.
ld_i_tab_cp_chgtype = 'Check type of data required'.
ld_i_group_id = 'Check type of data required'.
ld_i_tab_cp_status = 'Check type of data required'.
ld_i_valid_from = 'Check type of data required'.
ld_i_created_from = 'Check type of data required'.
ld_i_created_to = 'Check type of data required'.
ld_i_expobjkey_min = 'Check type of data required'.
ld_i_expobjkey_max = 'Check type of data required'.
ld_i_receiver = 'Check type of data required'.
ld_i_bundle_id = 'Check type of data required'.
ld_i_valid_to = 'Check type of data required'.
ld_i_add_sel = 'Check type of data required'.

SAP Documentation for FM CNS_DB_CP_GET_COUNT_OBJ


Determines the number of different objects that meet the selection criteria. ...See here for full SAP fm documentation








Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CNS_DB_CP_GET_COUNT_OBJ or its description.