SAP SCWB_APPLY_CODE_BLOCK_DELTA Function Module for
SCWB_APPLY_CODE_BLOCK_DELTA is a standard scwb apply code block delta 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 scwb apply code block delta FM, simply by entering the name SCWB_APPLY_CODE_BLOCK_DELTA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCWD
Program Name: SAPLSCWD
Main Program: SAPLSCWD
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCWB_APPLY_CODE_BLOCK_DELTA 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 'SCWB_APPLY_CODE_BLOCK_DELTA'".
EXPORTING
CODE_BLOCK_OLD = "
CODE_BLOCK_DELTA = "
* IV_NORMALIZE_CASE = ' ' "
* IV_NORMALIZE_CONDENSE = ' ' "
* IV_IGNORE_COMMENTS = ' ' "
* IV_STOP_ON_ERROR = 'X' "
* IV_COMPUTE_DISPLAY_STRUC = ' ' "
* IV_NO_EMPTY_BLOCKS = ' ' "
IMPORTING
CODE_BLOCK_NEW = "
ES_ERROR_LOG = "
ET_DISPLAY_STRUC = "
EV_REAPPLIED = "
EXCEPTIONS
DIFFERENT_BLOCK_IDS = 1
IMPORTING Parameters details for SCWB_APPLY_CODE_BLOCK_DELTA
CODE_BLOCK_OLD -
Data type: BCWBD_CODE_BLOCKOptional: No
Call by Reference: Yes
CODE_BLOCK_DELTA -
Data type: BCWBD_CODE_BLOCK_DELTAOptional: No
Call by Reference: Yes
IV_NORMALIZE_CASE -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NORMALIZE_CONDENSE -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_IGNORE_COMMENTS -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_STOP_ON_ERROR -
Data type: BCWBD_BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMPUTE_DISPLAY_STRUC -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NO_EMPTY_BLOCKS -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCWB_APPLY_CODE_BLOCK_DELTA
CODE_BLOCK_NEW -
Data type: BCWBD_CODE_BLOCKOptional: No
Call by Reference: Yes
ES_ERROR_LOG -
Data type: BCWBD_BLOCK_DELTA_ERROR_LOGOptional: No
Call by Reference: Yes
ET_DISPLAY_STRUC -
Data type: BCWBD_SOURCE_WITH_DELTAOptional: No
Call by Reference: Yes
EV_REAPPLIED -
Data type: BCWBD_REAPPLIEDOptional: No
Call by Reference: Yes
EXCEPTIONS details
DIFFERENT_BLOCK_IDS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCWB_APPLY_CODE_BLOCK_DELTA 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_code_block_new | TYPE BCWBD_CODE_BLOCK, " | |||
| lv_code_block_old | TYPE BCWBD_CODE_BLOCK, " | |||
| lv_different_block_ids | TYPE BCWBD_CODE_BLOCK, " | |||
| lv_es_error_log | TYPE BCWBD_BLOCK_DELTA_ERROR_LOG, " | |||
| lv_code_block_delta | TYPE BCWBD_CODE_BLOCK_DELTA, " | |||
| lv_et_display_struc | TYPE BCWBD_SOURCE_WITH_DELTA, " | |||
| lv_iv_normalize_case | TYPE BCWBD_BOOL, " SPACE | |||
| lv_ev_reapplied | TYPE BCWBD_REAPPLIED, " | |||
| lv_iv_normalize_condense | TYPE BCWBD_BOOL, " SPACE | |||
| lv_iv_ignore_comments | TYPE BCWBD_BOOL, " SPACE | |||
| lv_iv_stop_on_error | TYPE BCWBD_BOOL, " 'X' | |||
| lv_iv_compute_display_struc | TYPE BCWBD_BOOL, " SPACE | |||
| lv_iv_no_empty_blocks | TYPE BCWBD_BOOL. " SPACE |
|   CALL FUNCTION 'SCWB_APPLY_CODE_BLOCK_DELTA' " |
| EXPORTING | ||
| CODE_BLOCK_OLD | = lv_code_block_old | |
| CODE_BLOCK_DELTA | = lv_code_block_delta | |
| IV_NORMALIZE_CASE | = lv_iv_normalize_case | |
| IV_NORMALIZE_CONDENSE | = lv_iv_normalize_condense | |
| IV_IGNORE_COMMENTS | = lv_iv_ignore_comments | |
| IV_STOP_ON_ERROR | = lv_iv_stop_on_error | |
| IV_COMPUTE_DISPLAY_STRUC | = lv_iv_compute_display_struc | |
| IV_NO_EMPTY_BLOCKS | = lv_iv_no_empty_blocks | |
| IMPORTING | ||
| CODE_BLOCK_NEW | = lv_code_block_new | |
| ES_ERROR_LOG | = lv_es_error_log | |
| ET_DISPLAY_STRUC | = lv_et_display_struc | |
| EV_REAPPLIED | = lv_ev_reapplied | |
| EXCEPTIONS | ||
| DIFFERENT_BLOCK_IDS = 1 | ||
| . " SCWB_APPLY_CODE_BLOCK_DELTA | ||
ABAP code using 7.40 inline data declarations to call FM SCWB_APPLY_CODE_BLOCK_DELTA
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_normalize_case) | = ' '. | |||
| DATA(ld_iv_normalize_condense) | = ' '. | |||
| DATA(ld_iv_ignore_comments) | = ' '. | |||
| DATA(ld_iv_stop_on_error) | = 'X'. | |||
| DATA(ld_iv_compute_display_struc) | = ' '. | |||
| DATA(ld_iv_no_empty_blocks) | = ' '. | |||
Search for further information about these or an SAP related objects