SAP Function Modules

CCBD_CHANGE_BEFORE_UPDATE SAP Function module







CCBD_CHANGE_BEFORE_UPDATE 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 CCBD_CHANGE_BEFORE_UPDATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CCBD_CHANGE_BEFORE_UPDATE - CCBD CHANGE BEFORE UPDATE





CALL FUNCTION 'CCBD_CHANGE_BEFORE_UPDATE' "
  EXPORTING
    i_ecm_update =              " if_ex_ecm_update
* TABLES
*   t_aenrb =                   " aenrb         Change Master Document Table
*   t_aepfb =                   " aepfb         ECM: maintenance value assignment - document structure
*   t_aenvb =                   " aenvb         Object Types for Change Master - Document Table
*   t_aeoib =                   " aeoib         Object Indexes for Change Master - Document Table
*   t_aeefb =                   " aeefb         ECM: effectivity - document table
*   t_aedtb =                   " aedtb         Engineering Change Mgmt: Alternative Dates - Document Table
*   t_aehib =                   " aehib         Change documents for AEN1
    .  "  CCBD_CHANGE_BEFORE_UPDATE

ABAP code example for Function Module CCBD_CHANGE_BEFORE_UPDATE





The ABAP code below is a full code listing to execute function module CCBD_CHANGE_BEFORE_UPDATE 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:
it_t_aenrb  TYPE STANDARD TABLE OF AENRB,"TABLES PARAM
wa_t_aenrb  LIKE LINE OF it_t_aenrb ,
it_t_aepfb  TYPE STANDARD TABLE OF AEPFB,"TABLES PARAM
wa_t_aepfb  LIKE LINE OF it_t_aepfb ,
it_t_aenvb  TYPE STANDARD TABLE OF AENVB,"TABLES PARAM
wa_t_aenvb  LIKE LINE OF it_t_aenvb ,
it_t_aeoib  TYPE STANDARD TABLE OF AEOIB,"TABLES PARAM
wa_t_aeoib  LIKE LINE OF it_t_aeoib ,
it_t_aeefb  TYPE STANDARD TABLE OF AEEFB,"TABLES PARAM
wa_t_aeefb  LIKE LINE OF it_t_aeefb ,
it_t_aedtb  TYPE STANDARD TABLE OF AEDTB,"TABLES PARAM
wa_t_aedtb  LIKE LINE OF it_t_aedtb ,
it_t_aehib  TYPE STANDARD TABLE OF AEHIB,"TABLES PARAM
wa_t_aehib  LIKE LINE OF it_t_aehib .

DATA(ld_i_ecm_update) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_aenrb to it_t_aenrb.

"populate fields of struture and append to itab
append wa_t_aepfb to it_t_aepfb.

"populate fields of struture and append to itab
append wa_t_aenvb to it_t_aenvb.

"populate fields of struture and append to itab
append wa_t_aeoib to it_t_aeoib.

"populate fields of struture and append to itab
append wa_t_aeefb to it_t_aeefb.

"populate fields of struture and append to itab
append wa_t_aedtb to it_t_aedtb.

"populate fields of struture and append to itab
append wa_t_aehib to it_t_aehib. . CALL FUNCTION 'CCBD_CHANGE_BEFORE_UPDATE' EXPORTING i_ecm_update = ld_i_ecm_update * TABLES * t_aenrb = it_t_aenrb * t_aepfb = it_t_aepfb * t_aenvb = it_t_aenvb * t_aeoib = it_t_aeoib * t_aeefb = it_t_aeefb * t_aedtb = it_t_aedtb * t_aehib = it_t_aehib . " CCBD_CHANGE_BEFORE_UPDATE
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_i_ecm_update  TYPE IF_EX_ECM_UPDATE ,
it_t_aenrb  TYPE STANDARD TABLE OF AENRB ,
wa_t_aenrb  LIKE LINE OF it_t_aenrb,
it_t_aepfb  TYPE STANDARD TABLE OF AEPFB ,
wa_t_aepfb  LIKE LINE OF it_t_aepfb,
it_t_aenvb  TYPE STANDARD TABLE OF AENVB ,
wa_t_aenvb  LIKE LINE OF it_t_aenvb,
it_t_aeoib  TYPE STANDARD TABLE OF AEOIB ,
wa_t_aeoib  LIKE LINE OF it_t_aeoib,
it_t_aeefb  TYPE STANDARD TABLE OF AEEFB ,
wa_t_aeefb  LIKE LINE OF it_t_aeefb,
it_t_aedtb  TYPE STANDARD TABLE OF AEDTB ,
wa_t_aedtb  LIKE LINE OF it_t_aedtb,
it_t_aehib  TYPE STANDARD TABLE OF AEHIB ,
wa_t_aehib  LIKE LINE OF it_t_aehib.

ld_i_ecm_update = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_aenrb to it_t_aenrb.

"populate fields of struture and append to itab
append wa_t_aepfb to it_t_aepfb.

"populate fields of struture and append to itab
append wa_t_aenvb to it_t_aenvb.

"populate fields of struture and append to itab
append wa_t_aeoib to it_t_aeoib.

"populate fields of struture and append to itab
append wa_t_aeefb to it_t_aeefb.

"populate fields of struture and append to itab
append wa_t_aedtb to it_t_aedtb.

"populate fields of struture and append to itab
append wa_t_aehib to it_t_aehib.

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 CCBD_CHANGE_BEFORE_UPDATE or its description.