SAP CS_SO_MODE_BOM_EXPLOSION Function Module for NOTRANSL: Stücklistenauflösung für ASL-Browser im Spezialmodus
CS_SO_MODE_BOM_EXPLOSION is a standard cs so mode bom explosion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Stücklistenauflösung für ASL-Browser im Spezialmodus 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 cs so mode bom explosion FM, simply by entering the name CS_SO_MODE_BOM_EXPLOSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: CSSO
Program Name: SAPLCSSO
Main Program: SAPLCSSO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CS_SO_MODE_BOM_EXPLOSION 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 'CS_SO_MODE_BOM_EXPLOSION'"NOTRANSL: Stücklistenauflösung für ASL-Browser im Spezialmodus.
EXPORTING
IS_RC29B1 = "Dialog Structure for Order BOM Browser
* I_FRAG_MODE_DARK = ' ' "Checkbox
IMPORTING
E_FRAG_IDNRK = "BOM Component
E_FRAG_STUFE = "Level (for Multilevel BOM Explosions)
E_FRAG_WEGXX = "Path (for multi-level BOM explosions)
CHANGING
ES_TOPMAT = "Start Material Display for BOM Explosions
E_SUBRC = "Return Value, Return Value after ABAP Statements
TABLES
* ET_RES_STPOX = "BOM Items (Extended for List Displays)
* ET_CSCMAT = "BOM Explosion: Materials
* ET_GES_STPOX = "BOM Items (Extended for List Displays)
* ET_DELTA_STPOX = "BOM Items (Extended for List Displays)
* ET_DELTA_CSCMAT = "BOM Explosion: Materials
EXCEPTIONS
ERROR_IN_FRAG_MODE = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCSSO_001 Order/WBS BOM, HTML control
EXIT_SAPLCSSO_002 Order-,Project-,Material BOM. Explos.-/Creation-/Default Date for Browser
EXIT_SAPLCSSO_003 Customer-specific processing result of an explosion in the browser
IMPORTING Parameters details for CS_SO_MODE_BOM_EXPLOSION
IS_RC29B1 - Dialog Structure for Order BOM Browser
Data type: RC29B1Optional: No
Call by Reference: Yes
I_FRAG_MODE_DARK - Checkbox
Data type: CSDATA-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CS_SO_MODE_BOM_EXPLOSION
E_FRAG_IDNRK - BOM Component
Data type: STPOX-IDNRKOptional: No
Call by Reference: No ( called with pass by value option)
E_FRAG_STUFE - Level (for Multilevel BOM Explosions)
Data type: STPOX-STUFEOptional: No
Call by Reference: No ( called with pass by value option)
E_FRAG_WEGXX - Path (for multi-level BOM explosions)
Data type: STPOX-WEGXXOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CS_SO_MODE_BOM_EXPLOSION
ES_TOPMAT - Start Material Display for BOM Explosions
Data type: CSTMATOptional: No
Call by Reference: Yes
E_SUBRC - Return Value, Return Value after ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for CS_SO_MODE_BOM_EXPLOSION
ET_RES_STPOX - BOM Items (Extended for List Displays)
Data type: STPOXOptional: Yes
Call by Reference: Yes
ET_CSCMAT - BOM Explosion: Materials
Data type: CSCMATOptional: Yes
Call by Reference: Yes
ET_GES_STPOX - BOM Items (Extended for List Displays)
Data type: STPOXOptional: Yes
Call by Reference: Yes
ET_DELTA_STPOX - BOM Items (Extended for List Displays)
Data type: STPOXOptional: Yes
Call by Reference: Yes
ET_DELTA_CSCMAT - BOM Explosion: Materials
Data type: CSCMATOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_IN_FRAG_MODE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CS_SO_MODE_BOM_EXPLOSION 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_es_topmat | TYPE CSTMAT, " | |||
| lv_is_rc29b1 | TYPE RC29B1, " | |||
| lt_et_res_stpox | TYPE STANDARD TABLE OF STPOX, " | |||
| lv_e_frag_idnrk | TYPE STPOX-IDNRK, " | |||
| lv_error_in_frag_mode | TYPE STPOX, " | |||
| lv_e_subrc | TYPE SY-SUBRC, " | |||
| lt_et_cscmat | TYPE STANDARD TABLE OF CSCMAT, " | |||
| lv_e_frag_stufe | TYPE STPOX-STUFE, " | |||
| lv_i_frag_mode_dark | TYPE CSDATA-XFELD, " SPACE | |||
| lt_et_ges_stpox | TYPE STANDARD TABLE OF STPOX, " | |||
| lv_e_frag_wegxx | TYPE STPOX-WEGXX, " | |||
| lt_et_delta_stpox | TYPE STANDARD TABLE OF STPOX, " | |||
| lt_et_delta_cscmat | TYPE STANDARD TABLE OF CSCMAT. " |
|   CALL FUNCTION 'CS_SO_MODE_BOM_EXPLOSION' "NOTRANSL: Stücklistenauflösung für ASL-Browser im Spezialmodus |
| EXPORTING | ||
| IS_RC29B1 | = lv_is_rc29b1 | |
| I_FRAG_MODE_DARK | = lv_i_frag_mode_dark | |
| IMPORTING | ||
| E_FRAG_IDNRK | = lv_e_frag_idnrk | |
| E_FRAG_STUFE | = lv_e_frag_stufe | |
| E_FRAG_WEGXX | = lv_e_frag_wegxx | |
| CHANGING | ||
| ES_TOPMAT | = lv_es_topmat | |
| E_SUBRC | = lv_e_subrc | |
| TABLES | ||
| ET_RES_STPOX | = lt_et_res_stpox | |
| ET_CSCMAT | = lt_et_cscmat | |
| ET_GES_STPOX | = lt_et_ges_stpox | |
| ET_DELTA_STPOX | = lt_et_delta_stpox | |
| ET_DELTA_CSCMAT | = lt_et_delta_cscmat | |
| EXCEPTIONS | ||
| ERROR_IN_FRAG_MODE = 1 | ||
| . " CS_SO_MODE_BOM_EXPLOSION | ||
ABAP code using 7.40 inline data declarations to call FM CS_SO_MODE_BOM_EXPLOSION
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 IDNRK FROM STPOX INTO @DATA(ld_e_frag_idnrk). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| "SELECT single STUFE FROM STPOX INTO @DATA(ld_e_frag_stufe). | ||||
| "SELECT single XFELD FROM CSDATA INTO @DATA(ld_i_frag_mode_dark). | ||||
| DATA(ld_i_frag_mode_dark) | = ' '. | |||
| "SELECT single WEGXX FROM STPOX INTO @DATA(ld_e_frag_wegxx). | ||||
Search for further information about these or an SAP related objects