SAP CCAP_ECN_CHECK Function Module for API ECM: maintain change master (complete)









CCAP_ECN_CHECK is a standard ccap ecn check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for API ECM: maintain change master (complete) 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 ccap ecn check FM, simply by entering the name CCAP_ECN_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: CCAP
Program Name: SAPLCCAP
Main Program: SAPLCCAP
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CCAP_ECN_CHECK 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 'CCAP_ECN_CHECK'"API ECM: maintain change master (complete)
EXPORTING
CHANGE_HEADER = "
* OBJECT_BOM_STD = "
* OBJECT_CHAR = "
* OBJECT_CLS = "
* OBJECT_CLS_MAINT = "
* OBJECT_CONF_PROF = "
* OBJECT_DEP = "
* OBJECT_DOC = "
* OBJECT_HAZMAT = "
* OBJECT_MAT = "
* OBJECT_PHRASE = "
* CHANGE_HEADER_CUS = "Change master: customer error
* OBJECT_SUBSTANCE = "
* OBJECT_TLIST = "
* OBJECT_TLIST_A = "
* OBJECT_TLIST_E = "
* OBJECT_TLIST_M = "
* OBJECT_TLIST_N = "
* OBJECT_TLIST_Q = "
* OBJECT_TLIST_R = "
* OBJECT_TLIST_S = "
* OBJECT_TLIST_T = "
* OBJECT_BOM = "
* OBJECT_TLIST_2 = "
* OBJECT_VALID_MATVERS = "
* OBJECT_VAR_TAB = "
* OBJECT_PVS = "
* OBJECT_PVS_VAR = "
* OBJECT_PVS_ALT = "
* OBJECT_PVS_REL = "
* OBJECT_O75 = "
* OBJECT_O76 = "
* OBJECT_O77 = "
* OBJECT_BOM_CUS = "
* OBJECT_O78 = "
* OBJECT_O79 = "
* OBJECT_O80 = "
* OBJECT_O81 = "
* OBJECT_O82 = "
* OBJECT_O83 = "
* OBJECT_O84 = "
* OBJECT_O85 = "
* OBJECT_O86 = "
* OBJECT_O87 = "
* OBJECT_BOM_DOC = "
* OBJECT_O88 = "
* OBJECT_O89 = "
* OBJECT_O90 = "
* OBJECT_O91 = "
* OBJECT_O92 = "
* OBJECT_O93 = "
* OBJECT_O94 = "
* OBJECT_O95 = "
* OBJECT_O96 = "
* OBJECT_O97 = "
* OBJECT_BOM_EQUI = "
* OBJECT_O98 = "
* OBJECT_O99 = "
* VALUE_ASSIGN = "
* FL_CHECK_ONLY = "
* FL_WUI_INTERNAL_NUMBER = ' ' "
* OBJECT_BOM_LOC = "
* OBJECT_BOM_MAT = "
* OBJECT_BOM_PSP = "

IMPORTING
CHANGE_NO = "Change Number

TABLES
* ALT_DATES = "Alternative Dates
* OBJMGREC = "Object Mgmt Records
* EFFECTIVITY = "Validity
* TEXTHEADER = "
* TEXTLINES = "
* LIST_OF_ECNS = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CCAP_ECN_CHECK

CHANGE_HEADER -

Data type: AENR_API01
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_STD -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_CHAR -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_CLS -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_CLS_MAINT -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_CONF_PROF -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_DEP -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_DOC -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_HAZMAT -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_MAT -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_PHRASE -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGE_HEADER_CUS - Change master: customer error

Data type: CCCI_AENR
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_SUBSTANCE -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_A -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_E -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_M -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_N -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_Q -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_R -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_S -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_T -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_TLIST_2 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_VALID_MATVERS -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_VAR_TAB -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_PVS -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_PVS_VAR -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_PVS_ALT -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_PVS_REL -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O75 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O76 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O77 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_CUS -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O78 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O79 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O80 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O81 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O82 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O83 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O84 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O85 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O86 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O87 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_DOC -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O88 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O89 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O90 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O91 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O92 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O93 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O94 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O95 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O96 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O97 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_EQUI -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O98 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_O99 -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUE_ASSIGN -

Data type: AEEF_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

FL_CHECK_ONLY -

Data type: CSDATA-XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

FL_WUI_INTERNAL_NUMBER -

Data type: CSDATA-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_LOC -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_MAT -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_BOM_PSP -

Data type: AENV_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CCAP_ECN_CHECK

CHANGE_NO - Change Number

Data type: AENRB-AENNR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CCAP_ECN_CHECK

ALT_DATES - Alternative Dates

Data type: AEDT_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJMGREC - Object Mgmt Records

Data type: AEOI_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

EFFECTIVITY - Validity

Data type: AEEF_API01
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXTHEADER -

Data type: CCTHEAD
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXTLINES -

Data type: CCTLINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LIST_OF_ECNS -

Data type: AENR_API01
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CCAP_ECN_CHECK 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_error  TYPE STRING, "   
lt_alt_dates  TYPE STANDARD TABLE OF AEDT_API01, "   
lv_change_no  TYPE AENRB-AENNR, "   
lv_change_header  TYPE AENR_API01, "   
lv_object_bom_std  TYPE AENV_API01, "   
lv_object_char  TYPE AENV_API01, "   
lv_object_cls  TYPE AENV_API01, "   
lv_object_cls_maint  TYPE AENV_API01, "   
lv_object_conf_prof  TYPE AENV_API01, "   
lv_object_dep  TYPE AENV_API01, "   
lv_object_doc  TYPE AENV_API01, "   
lv_object_hazmat  TYPE AENV_API01, "   
lv_object_mat  TYPE AENV_API01, "   
lv_object_phrase  TYPE AENV_API01, "   
lt_objmgrec  TYPE STANDARD TABLE OF AEOI_API01, "   
lv_change_header_cus  TYPE CCCI_AENR, "   
lv_object_substance  TYPE AENV_API01, "   
lv_object_tlist  TYPE AENV_API01, "   
lv_object_tlist_a  TYPE AENV_API01, "   
lv_object_tlist_e  TYPE AENV_API01, "   
lv_object_tlist_m  TYPE AENV_API01, "   
lv_object_tlist_n  TYPE AENV_API01, "   
lv_object_tlist_q  TYPE AENV_API01, "   
lv_object_tlist_r  TYPE AENV_API01, "   
lv_object_tlist_s  TYPE AENV_API01, "   
lv_object_tlist_t  TYPE AENV_API01, "   
lv_object_bom  TYPE AENV_API01, "   
lt_effectivity  TYPE STANDARD TABLE OF AEEF_API01, "   
lv_object_tlist_2  TYPE AENV_API01, "   
lv_object_valid_matvers  TYPE AENV_API01, "   
lv_object_var_tab  TYPE AENV_API01, "   
lv_object_pvs  TYPE AENV_API01, "   
lv_object_pvs_var  TYPE AENV_API01, "   
lv_object_pvs_alt  TYPE AENV_API01, "   
lv_object_pvs_rel  TYPE AENV_API01, "   
lv_object_o75  TYPE AENV_API01, "   
lv_object_o76  TYPE AENV_API01, "   
lv_object_o77  TYPE AENV_API01, "   
lt_textheader  TYPE STANDARD TABLE OF CCTHEAD, "   
lv_object_bom_cus  TYPE AENV_API01, "   
lv_object_o78  TYPE AENV_API01, "   
lv_object_o79  TYPE AENV_API01, "   
lv_object_o80  TYPE AENV_API01, "   
lv_object_o81  TYPE AENV_API01, "   
lv_object_o82  TYPE AENV_API01, "   
lv_object_o83  TYPE AENV_API01, "   
lv_object_o84  TYPE AENV_API01, "   
lv_object_o85  TYPE AENV_API01, "   
lv_object_o86  TYPE AENV_API01, "   
lv_object_o87  TYPE AENV_API01, "   
lt_textlines  TYPE STANDARD TABLE OF CCTLINE, "   
lv_object_bom_doc  TYPE AENV_API01, "   
lv_object_o88  TYPE AENV_API01, "   
lv_object_o89  TYPE AENV_API01, "   
lv_object_o90  TYPE AENV_API01, "   
lv_object_o91  TYPE AENV_API01, "   
lv_object_o92  TYPE AENV_API01, "   
lv_object_o93  TYPE AENV_API01, "   
lv_object_o94  TYPE AENV_API01, "   
lv_object_o95  TYPE AENV_API01, "   
lv_object_o96  TYPE AENV_API01, "   
lv_object_o97  TYPE AENV_API01, "   
lt_list_of_ecns  TYPE STANDARD TABLE OF AENR_API01, "   
lv_object_bom_equi  TYPE AENV_API01, "   
lv_object_o98  TYPE AENV_API01, "   
lv_object_o99  TYPE AENV_API01, "   
lv_value_assign  TYPE AEEF_API01, "   
lv_fl_check_only  TYPE CSDATA-XFELD, "   
lv_fl_wui_internal_number  TYPE CSDATA-XFELD, "   SPACE
lv_object_bom_loc  TYPE AENV_API01, "   
lv_object_bom_mat  TYPE AENV_API01, "   
lv_object_bom_psp  TYPE AENV_API01. "   

  CALL FUNCTION 'CCAP_ECN_CHECK'  "API ECM: maintain change master (complete)
    EXPORTING
         CHANGE_HEADER = lv_change_header
         OBJECT_BOM_STD = lv_object_bom_std
         OBJECT_CHAR = lv_object_char
         OBJECT_CLS = lv_object_cls
         OBJECT_CLS_MAINT = lv_object_cls_maint
         OBJECT_CONF_PROF = lv_object_conf_prof
         OBJECT_DEP = lv_object_dep
         OBJECT_DOC = lv_object_doc
         OBJECT_HAZMAT = lv_object_hazmat
         OBJECT_MAT = lv_object_mat
         OBJECT_PHRASE = lv_object_phrase
         CHANGE_HEADER_CUS = lv_change_header_cus
         OBJECT_SUBSTANCE = lv_object_substance
         OBJECT_TLIST = lv_object_tlist
         OBJECT_TLIST_A = lv_object_tlist_a
         OBJECT_TLIST_E = lv_object_tlist_e
         OBJECT_TLIST_M = lv_object_tlist_m
         OBJECT_TLIST_N = lv_object_tlist_n
         OBJECT_TLIST_Q = lv_object_tlist_q
         OBJECT_TLIST_R = lv_object_tlist_r
         OBJECT_TLIST_S = lv_object_tlist_s
         OBJECT_TLIST_T = lv_object_tlist_t
         OBJECT_BOM = lv_object_bom
         OBJECT_TLIST_2 = lv_object_tlist_2
         OBJECT_VALID_MATVERS = lv_object_valid_matvers
         OBJECT_VAR_TAB = lv_object_var_tab
         OBJECT_PVS = lv_object_pvs
         OBJECT_PVS_VAR = lv_object_pvs_var
         OBJECT_PVS_ALT = lv_object_pvs_alt
         OBJECT_PVS_REL = lv_object_pvs_rel
         OBJECT_O75 = lv_object_o75
         OBJECT_O76 = lv_object_o76
         OBJECT_O77 = lv_object_o77
         OBJECT_BOM_CUS = lv_object_bom_cus
         OBJECT_O78 = lv_object_o78
         OBJECT_O79 = lv_object_o79
         OBJECT_O80 = lv_object_o80
         OBJECT_O81 = lv_object_o81
         OBJECT_O82 = lv_object_o82
         OBJECT_O83 = lv_object_o83
         OBJECT_O84 = lv_object_o84
         OBJECT_O85 = lv_object_o85
         OBJECT_O86 = lv_object_o86
         OBJECT_O87 = lv_object_o87
         OBJECT_BOM_DOC = lv_object_bom_doc
         OBJECT_O88 = lv_object_o88
         OBJECT_O89 = lv_object_o89
         OBJECT_O90 = lv_object_o90
         OBJECT_O91 = lv_object_o91
         OBJECT_O92 = lv_object_o92
         OBJECT_O93 = lv_object_o93
         OBJECT_O94 = lv_object_o94
         OBJECT_O95 = lv_object_o95
         OBJECT_O96 = lv_object_o96
         OBJECT_O97 = lv_object_o97
         OBJECT_BOM_EQUI = lv_object_bom_equi
         OBJECT_O98 = lv_object_o98
         OBJECT_O99 = lv_object_o99
         VALUE_ASSIGN = lv_value_assign
         FL_CHECK_ONLY = lv_fl_check_only
         FL_WUI_INTERNAL_NUMBER = lv_fl_wui_internal_number
         OBJECT_BOM_LOC = lv_object_bom_loc
         OBJECT_BOM_MAT = lv_object_bom_mat
         OBJECT_BOM_PSP = lv_object_bom_psp
    IMPORTING
         CHANGE_NO = lv_change_no
    TABLES
         ALT_DATES = lt_alt_dates
         OBJMGREC = lt_objmgrec
         EFFECTIVITY = lt_effectivity
         TEXTHEADER = lt_textheader
         TEXTLINES = lt_textlines
         LIST_OF_ECNS = lt_list_of_ecns
    EXCEPTIONS
        ERROR = 1
. " CCAP_ECN_CHECK




ABAP code using 7.40 inline data declarations to call FM CCAP_ECN_CHECK

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 AENNR FROM AENRB INTO @DATA(ld_change_no).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_fl_check_only).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_fl_wui_internal_number).
DATA(ld_fl_wui_internal_number) = ' '.
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!