SAP CS_AL_STOCKABLE_TYPE_OBJ_CHECK Function Module for NOTRANSL: Objekte der Lagertypen - Verteilung prüfen









CS_AL_STOCKABLE_TYPE_OBJ_CHECK is a standard cs al stockable type obj check 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: Objekte der Lagertypen - Verteilung prüfen 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 al stockable type obj check FM, simply by entering the name CS_AL_STOCKABLE_TYPE_OBJ_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSAL
Program Name: SAPLCSAL
Main Program: SAPLCSAL
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CS_AL_STOCKABLE_TYPE_OBJ_CHECK 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_AL_STOCKABLE_TYPE_OBJ_CHECK'"NOTRANSL: Objekte der Lagertypen - Verteilung prüfen
EXPORTING
ECSIN = "Interface for BOM Access
* RESET_LOSVN = ' ' "Checkbox
* RESET_LOSBS = ' ' "Checkbox
VALUES = "Field Contents for Material Variant Distribution
* EFLDELETE = ' ' "Deletion ind.
* FLG_FOREIGN_KEY = ' ' "Check external key
* FLG_API = ' ' "Checkbox
* STDPD = '' "Configurable material
* FLG_STDPD = '' "Checkbox
* FLG_MAST_READ = '' "Checkbox
* RESET_SIGN = ' ' "Deletion Character for Deleting Field Entry

IMPORTING
FLG_WARNING = "Warnings Occurred
RETURN_STDPD = "Configurable material
RETURN_STLNR = "Bill of material
RET_VALUES = "Field Contents for Material Variant Distribution

EXCEPTIONS
ERROR = 1 AUTHORIZATION_MISSING = 2 BOM_NOT_EXIST = 3 BOM_NOT_VALID = 4 BOMUSAGE_ERROR = 5 KEY_INCOMPLETE = 6 OBJECT_LOCKED = 7 PLANT_ERROR = 8
.



IMPORTING Parameters details for CS_AL_STOCKABLE_TYPE_OBJ_CHECK

ECSIN - Interface for BOM Access

Data type: CSIN
Optional: No
Call by Reference: No ( called with pass by value option)

RESET_LOSVN - Checkbox

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

RESET_LOSBS - Checkbox

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

VALUES - Field Contents for Material Variant Distribution

Data type: API_STTMAT_VAL
Optional: No
Call by Reference: No ( called with pass by value option)

EFLDELETE - Deletion ind.

Data type: STPO_API02-FLDELETE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_FOREIGN_KEY - Check external key

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

FLG_API - Checkbox

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

STDPD - Configurable material

Data type: MARC-STDPD
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_STDPD - Checkbox

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

FLG_MAST_READ - Checkbox

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

RESET_SIGN - Deletion Character for Deleting Field Entry

Data type: CAPIFLAG-RESET_SIGN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CS_AL_STOCKABLE_TYPE_OBJ_CHECK

FLG_WARNING - Warnings Occurred

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

RETURN_STDPD - Configurable material

Data type: MARC-STDPD
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN_STLNR - Bill of material

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

RET_VALUES - Field Contents for Material Variant Distribution

Data type: API_STTMAT_VAL
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

AUTHORIZATION_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_NOT_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOM_NOT_VALID -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BOMUSAGE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

KEY_INCOMPLETE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PLANT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CS_AL_STOCKABLE_TYPE_OBJ_CHECK 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_ecsin  TYPE CSIN, "   
lv_error  TYPE CSIN, "   
lv_flg_warning  TYPE CSDATA-XFELD, "   
lv_reset_losvn  TYPE CSDATA-XFELD, "   ' '
lv_reset_losbs  TYPE CSDATA-XFELD, "   ' '
lv_values  TYPE API_STTMAT_VAL, "   
lv_return_stdpd  TYPE MARC-STDPD, "   
lv_authorization_missing  TYPE MARC, "   
lv_efldelete  TYPE STPO_API02-FLDELETE, "   SPACE
lv_return_stlnr  TYPE MAST-STLNR, "   
lv_bom_not_exist  TYPE MAST, "   
lv_ret_values  TYPE API_STTMAT_VAL, "   
lv_bom_not_valid  TYPE API_STTMAT_VAL, "   
lv_flg_foreign_key  TYPE CSDATA-XFELD, "   SPACE
lv_flg_api  TYPE CSDATA-XFELD, "   SPACE
lv_bomusage_error  TYPE CSDATA, "   
lv_stdpd  TYPE MARC-STDPD, "   ''
lv_key_incomplete  TYPE MARC, "   
lv_flg_stdpd  TYPE CSDATA-XFELD, "   ''
lv_object_locked  TYPE CSDATA, "   
lv_plant_error  TYPE CSDATA, "   
lv_flg_mast_read  TYPE CSDATA-XFELD, "   ''
lv_reset_sign  TYPE CAPIFLAG-RESET_SIGN. "   ' '

  CALL FUNCTION 'CS_AL_STOCKABLE_TYPE_OBJ_CHECK'  "NOTRANSL: Objekte der Lagertypen - Verteilung prüfen
    EXPORTING
         ECSIN = lv_ecsin
         RESET_LOSVN = lv_reset_losvn
         RESET_LOSBS = lv_reset_losbs
         VALUES = lv_values
         EFLDELETE = lv_efldelete
         FLG_FOREIGN_KEY = lv_flg_foreign_key
         FLG_API = lv_flg_api
         STDPD = lv_stdpd
         FLG_STDPD = lv_flg_stdpd
         FLG_MAST_READ = lv_flg_mast_read
         RESET_SIGN = lv_reset_sign
    IMPORTING
         FLG_WARNING = lv_flg_warning
         RETURN_STDPD = lv_return_stdpd
         RETURN_STLNR = lv_return_stlnr
         RET_VALUES = lv_ret_values
    EXCEPTIONS
        ERROR = 1
        AUTHORIZATION_MISSING = 2
        BOM_NOT_EXIST = 3
        BOM_NOT_VALID = 4
        BOMUSAGE_ERROR = 5
        KEY_INCOMPLETE = 6
        OBJECT_LOCKED = 7
        PLANT_ERROR = 8
. " CS_AL_STOCKABLE_TYPE_OBJ_CHECK




ABAP code using 7.40 inline data declarations to call FM CS_AL_STOCKABLE_TYPE_OBJ_CHECK

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 XFELD FROM CSDATA INTO @DATA(ld_flg_warning).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_reset_losvn).
DATA(ld_reset_losvn) = ' '.
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_reset_losbs).
DATA(ld_reset_losbs) = ' '.
 
 
"SELECT single STDPD FROM MARC INTO @DATA(ld_return_stdpd).
 
 
"SELECT single FLDELETE FROM STPO_API02 INTO @DATA(ld_efldelete).
DATA(ld_efldelete) = ' '.
 
"SELECT single STLNR FROM MAST INTO @DATA(ld_return_stlnr).
 
 
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_flg_foreign_key).
DATA(ld_flg_foreign_key) = ' '.
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_flg_api).
DATA(ld_flg_api) = ' '.
 
 
"SELECT single STDPD FROM MARC INTO @DATA(ld_stdpd).
DATA(ld_stdpd) = ''.
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_flg_stdpd).
DATA(ld_flg_stdpd) = ''.
 
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_flg_mast_read).
DATA(ld_flg_mast_read) = ''.
 
"SELECT single RESET_SIGN FROM CAPIFLAG INTO @DATA(ld_reset_sign).
DATA(ld_reset_sign) = ' '.
 


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!