SAP SCWB_APPLY_STRUC_CODE_DELTA Function Module for
SCWB_APPLY_STRUC_CODE_DELTA is a standard scwb apply struc code 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 struc code delta FM, simply by entering the name SCWB_APPLY_STRUC_CODE_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_STRUC_CODE_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_STRUC_CODE_DELTA'".
EXPORTING
STRUCTURED_CODE_OLD = "
STRUCTURED_CODE_DELTA = "
* IV_COMPUTE_DISPLAY_STRUC = ' ' "
* IV_STOP_ON_ERROR = 'X' "
IMPORTING
STRUCTURED_CODE_NEW = "
ET_ERROR_LOG = "
ET_DISPLAY_STRUC = "
EV_REAPPLIED = "
EXCEPTIONS
DIFFERENT_STATEMENT_PATTERNS = 1
IMPORTING Parameters details for SCWB_APPLY_STRUC_CODE_DELTA
STRUCTURED_CODE_OLD -
Data type: BCWBD_STRUCTURED_CODEOptional: No
Call by Reference: Yes
STRUCTURED_CODE_DELTA -
Data type: BCWBD_STRUCTURED_CODE_DELTAOptional: No
Call by Reference: Yes
IV_COMPUTE_DISPLAY_STRUC -
Data type: BCWBD_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_STOP_ON_ERROR -
Data type: BCWBD_BOOLDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SCWB_APPLY_STRUC_CODE_DELTA
STRUCTURED_CODE_NEW -
Data type: BCWBD_STRUCTURED_CODEOptional: No
Call by Reference: Yes
ET_ERROR_LOG -
Data type: BCWBD_STRUC_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_STATEMENT_PATTERNS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCWB_APPLY_STRUC_CODE_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_structured_code_new | TYPE BCWBD_STRUCTURED_CODE, " | |||
| lv_structured_code_old | TYPE BCWBD_STRUCTURED_CODE, " | |||
| lv_different_statement_patterns | TYPE BCWBD_STRUCTURED_CODE, " | |||
| lv_et_error_log | TYPE BCWBD_STRUC_DELTA_ERROR_LOG, " | |||
| lv_structured_code_delta | TYPE BCWBD_STRUCTURED_CODE_DELTA, " | |||
| lv_et_display_struc | TYPE BCWBD_SOURCE_WITH_DELTA, " | |||
| lv_iv_compute_display_struc | TYPE BCWBD_BOOL, " SPACE | |||
| lv_ev_reapplied | TYPE BCWBD_REAPPLIED, " | |||
| lv_iv_stop_on_error | TYPE BCWBD_BOOL. " 'X' |
|   CALL FUNCTION 'SCWB_APPLY_STRUC_CODE_DELTA' " |
| EXPORTING | ||
| STRUCTURED_CODE_OLD | = lv_structured_code_old | |
| STRUCTURED_CODE_DELTA | = lv_structured_code_delta | |
| IV_COMPUTE_DISPLAY_STRUC | = lv_iv_compute_display_struc | |
| IV_STOP_ON_ERROR | = lv_iv_stop_on_error | |
| IMPORTING | ||
| STRUCTURED_CODE_NEW | = lv_structured_code_new | |
| ET_ERROR_LOG | = lv_et_error_log | |
| ET_DISPLAY_STRUC | = lv_et_display_struc | |
| EV_REAPPLIED | = lv_ev_reapplied | |
| EXCEPTIONS | ||
| DIFFERENT_STATEMENT_PATTERNS = 1 | ||
| . " SCWB_APPLY_STRUC_CODE_DELTA | ||
ABAP code using 7.40 inline data declarations to call FM SCWB_APPLY_STRUC_CODE_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_compute_display_struc) | = ' '. | |||
| DATA(ld_iv_stop_on_error) | = 'X'. | |||
Search for further information about these or an SAP related objects