SAP CS_SO_DEL_ASSEMBLY Function Module for NOTRANSL: Löschen Auftragsstückliste(n)









CS_SO_DEL_ASSEMBLY is a standard cs so del assembly 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: Löschen Auftragsstückliste(n) 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 del assembly FM, simply by entering the name CS_SO_DEL_ASSEMBLY 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_DEL_ASSEMBLY 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_DEL_ASSEMBLY'"NOTRANSL: Löschen Auftragsstückliste(n)
EXPORTING
* I_VBELN = "Sales Order
* I_WERKS = "Plant
* I_CAPID = "Application
* I_CUOBJ = "Configuration
* I_MATNR_TOP = "Material Number
* I_STUFE = "Level (for Multilevel BOM Explosions)
* I_WEGXX = "Channel (Pred.)
* I_DEL_STLTY = "BOM category
* I_VBPOS = "Sales Order Item
* I_PSPNR = "Work Breakdown Structure Element (WBS Element)
* I_MULTI_LEVEL = "Checkbox
* I_DATUM = SY-DATUM "Valid-From Date
* I_STLAL = '01' "Alternative BOM
* I_STLNR = "Bill of Material
* I_MATNR = "Material Number
* I_STLAN = "BOM Usage

EXCEPTIONS
WRONG_INPUT = 1 PROBLEMS_WITH_BOM_READ = 2 PROBLEMS_WITH_BOM_DELETE = 3 STRUCTURE_HAS_CHANGED = 4 USER_CANCLED = 5 BOM_IS_LOCKED = 6 NO_BOM_FOUND = 7
.




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_DEL_ASSEMBLY

I_VBELN - Sales Order

Data type: RC29L-VBELN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WERKS - Plant

Data type: RC29L-WERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CAPID - Application

Data type: RC29L-CAPID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CUOBJ - Configuration

Data type: VBAP-CUOBJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MATNR_TOP - Material Number

Data type: RC29L-MATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STUFE - Level (for Multilevel BOM Explosions)

Data type: STPOX-STUFE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WEGXX - Channel (Pred.)

Data type: STPOX-WEGXX
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DEL_STLTY - BOM category

Data type: STPOX-STLTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VBPOS - Sales Order Item

Data type: RC29L-VBPOS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PSPNR - Work Breakdown Structure Element (WBS Element)

Data type: RC29L-PSPNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MULTI_LEVEL - Checkbox

Data type: CSDATA-XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATUM - Valid-From Date

Data type: RC29L-DATUV
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STLAL - Alternative BOM

Data type: RC29L-STLAL
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STLNR - Bill of Material

Data type: KDST-STLNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MATNR - Material Number

Data type: RC29L-MATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STLAN - BOM Usage

Data type: RC29L-STLAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

WRONG_INPUT - Wrong Input Parameters

Data type:
Optional: No
Call by Reference: Yes

PROBLEMS_WITH_BOM_READ - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PROBLEMS_WITH_BOM_DELETE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

STRUCTURE_HAS_CHANGED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

USER_CANCLED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

BOM_IS_LOCKED - BOM is locked

Data type:
Optional: No
Call by Reference: Yes

NO_BOM_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CS_SO_DEL_ASSEMBLY 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_i_vbeln  TYPE RC29L-VBELN, "   
lv_wrong_input  TYPE RC29L, "   
lv_i_werks  TYPE RC29L-WERKS, "   
lv_i_capid  TYPE RC29L-CAPID, "   
lv_i_cuobj  TYPE VBAP-CUOBJ, "   
lv_i_matnr_top  TYPE RC29L-MATNR, "   
lv_i_stufe  TYPE STPOX-STUFE, "   
lv_i_wegxx  TYPE STPOX-WEGXX, "   
lv_i_del_stlty  TYPE STPOX-STLTY, "   
lv_i_vbpos  TYPE RC29L-VBPOS, "   
lv_problems_with_bom_read  TYPE RC29L, "   
lv_i_pspnr  TYPE RC29L-PSPNR, "   
lv_problems_with_bom_delete  TYPE RC29L, "   
lv_i_multi_level  TYPE CSDATA-XFELD, "   
lv_structure_has_changed  TYPE CSDATA, "   
lv_i_datum  TYPE RC29L-DATUV, "   SY-DATUM
lv_user_cancled  TYPE RC29L, "   
lv_i_stlal  TYPE RC29L-STLAL, "   '01'
lv_bom_is_locked  TYPE RC29L, "   
lv_i_stlnr  TYPE KDST-STLNR, "   
lv_no_bom_found  TYPE KDST, "   
lv_i_matnr  TYPE RC29L-MATNR, "   
lv_i_stlan  TYPE RC29L-STLAN. "   

  CALL FUNCTION 'CS_SO_DEL_ASSEMBLY'  "NOTRANSL: Löschen Auftragsstückliste(n)
    EXPORTING
         I_VBELN = lv_i_vbeln
         I_WERKS = lv_i_werks
         I_CAPID = lv_i_capid
         I_CUOBJ = lv_i_cuobj
         I_MATNR_TOP = lv_i_matnr_top
         I_STUFE = lv_i_stufe
         I_WEGXX = lv_i_wegxx
         I_DEL_STLTY = lv_i_del_stlty
         I_VBPOS = lv_i_vbpos
         I_PSPNR = lv_i_pspnr
         I_MULTI_LEVEL = lv_i_multi_level
         I_DATUM = lv_i_datum
         I_STLAL = lv_i_stlal
         I_STLNR = lv_i_stlnr
         I_MATNR = lv_i_matnr
         I_STLAN = lv_i_stlan
    EXCEPTIONS
        WRONG_INPUT = 1
        PROBLEMS_WITH_BOM_READ = 2
        PROBLEMS_WITH_BOM_DELETE = 3
        STRUCTURE_HAS_CHANGED = 4
        USER_CANCLED = 5
        BOM_IS_LOCKED = 6
        NO_BOM_FOUND = 7
. " CS_SO_DEL_ASSEMBLY




ABAP code using 7.40 inline data declarations to call FM CS_SO_DEL_ASSEMBLY

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 VBELN FROM RC29L INTO @DATA(ld_i_vbeln).
 
 
"SELECT single WERKS FROM RC29L INTO @DATA(ld_i_werks).
 
"SELECT single CAPID FROM RC29L INTO @DATA(ld_i_capid).
 
"SELECT single CUOBJ FROM VBAP INTO @DATA(ld_i_cuobj).
 
"SELECT single MATNR FROM RC29L INTO @DATA(ld_i_matnr_top).
 
"SELECT single STUFE FROM STPOX INTO @DATA(ld_i_stufe).
 
"SELECT single WEGXX FROM STPOX INTO @DATA(ld_i_wegxx).
 
"SELECT single STLTY FROM STPOX INTO @DATA(ld_i_del_stlty).
 
"SELECT single VBPOS FROM RC29L INTO @DATA(ld_i_vbpos).
 
 
"SELECT single PSPNR FROM RC29L INTO @DATA(ld_i_pspnr).
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_i_multi_level).
 
 
"SELECT single DATUV FROM RC29L INTO @DATA(ld_i_datum).
DATA(ld_i_datum) = SY-DATUM.
 
 
"SELECT single STLAL FROM RC29L INTO @DATA(ld_i_stlal).
DATA(ld_i_stlal) = '01'.
 
 
"SELECT single STLNR FROM KDST INTO @DATA(ld_i_stlnr).
 
 
"SELECT single MATNR FROM RC29L INTO @DATA(ld_i_matnr).
 
"SELECT single STLAN FROM RC29L INTO @DATA(ld_i_stlan).
 


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!