SAP CCBD_CHANGE_AT_SAVE Function Module for









CCBD_CHANGE_AT_SAVE is a standard ccbd change at save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ccbd change at save FM, simply by entering the name CCBD_CHANGE_AT_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CCBD
Program Name: SAPLCCBD
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CCBD_CHANGE_AT_SAVE 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 'CCBD_CHANGE_AT_SAVE'"
EXPORTING
I_ECM_UPDATE = "

TABLES
* T_AENRB = "Change Master Document Table
* T_AEPFB = "ECM: maintenance value assignment - document structure
* T_AENVB = "Object Types for Change Master - Document Table
* T_AEOIB = "Object Indexes for Change Master - Document Table
* T_AEEFB = "ECM: effectivity - document table
* T_AEDTB = "Engineering Change Mgmt: Alternative Dates - Document Table
* T_AEHIB = "Change documents for AEN1

EXCEPTIONS
ERROR_WITH_MESSAGE = 1
.



IMPORTING Parameters details for CCBD_CHANGE_AT_SAVE

I_ECM_UPDATE -

Data type: IF_EX_ECM_UPDATE
Optional: No
Call by Reference: Yes

TABLES Parameters details for CCBD_CHANGE_AT_SAVE

T_AENRB - Change Master Document Table

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

T_AEPFB - ECM: maintenance value assignment - document structure

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

T_AENVB - Object Types for Change Master - Document Table

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

T_AEOIB - Object Indexes for Change Master - Document Table

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

T_AEEFB - ECM: effectivity - document table

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

T_AEDTB - Engineering Change Mgmt: Alternative Dates - Document Table

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

T_AEHIB - Change documents for AEN1

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

EXCEPTIONS details

ERROR_WITH_MESSAGE - Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CCBD_CHANGE_AT_SAVE 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_t_aenrb  TYPE STANDARD TABLE OF AENRB, "   
lv_i_ecm_update  TYPE IF_EX_ECM_UPDATE, "   
lv_error_with_message  TYPE IF_EX_ECM_UPDATE, "   
lt_t_aepfb  TYPE STANDARD TABLE OF AEPFB, "   
lt_t_aenvb  TYPE STANDARD TABLE OF AENVB, "   
lt_t_aeoib  TYPE STANDARD TABLE OF AEOIB, "   
lt_t_aeefb  TYPE STANDARD TABLE OF AEEFB, "   
lt_t_aedtb  TYPE STANDARD TABLE OF AEDTB, "   
lt_t_aehib  TYPE STANDARD TABLE OF AEHIB. "   

  CALL FUNCTION 'CCBD_CHANGE_AT_SAVE'  "
    EXPORTING
         I_ECM_UPDATE = lv_i_ecm_update
    TABLES
         T_AENRB = lt_t_aenrb
         T_AEPFB = lt_t_aepfb
         T_AENVB = lt_t_aenvb
         T_AEOIB = lt_t_aeoib
         T_AEEFB = lt_t_aeefb
         T_AEDTB = lt_t_aedtb
         T_AEHIB = lt_t_aehib
    EXCEPTIONS
        ERROR_WITH_MESSAGE = 1
. " CCBD_CHANGE_AT_SAVE




ABAP code using 7.40 inline data declarations to call FM CCBD_CHANGE_AT_SAVE

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



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!