SAP CS_ALT_SELECT_EQUI Function Module for NOTRANSL: automatische Alternativenselektion (Equipmentstückliste)









CS_ALT_SELECT_EQUI is a standard cs alt select equi 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: automatische Alternativenselektion (Equipmentstückliste) 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 alt select equi FM, simply by entering the name CS_ALT_SELECT_EQUI into the relevant SAP transaction such as SE37 or SE38.

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



Function CS_ALT_SELECT_EQUI 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_ALT_SELECT_EQUI'"NOTRANSL: automatische Alternativenselektion (Equipmentstückliste)
EXPORTING
* CAPID = ' ' "Application ID according to table
* DATUV = 00000000 "Valid On
EQUNR = "Equipment number
* NRFDC = ' ' "Search with alt. appl. only if up
* STLAN = ' ' "BOM usage
SWERK = "Maintenance plant

TABLES
EQSTB_WA = "Work area EQST
STKOB_WA = "Work area (internal table) f. STKO
STZUB_WA = "Work area (internal table) f. STZU

EXCEPTIONS
BOM_NOT_ACTIVE = 1 BOM_NOT_FOUND = 2 NO_ALT_FOUND = 3 NO_BOM_FOUND = 4
.



IMPORTING Parameters details for CS_ALT_SELECT_EQUI

CAPID - Application ID according to table

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

DATUV - Valid On

Data type: STKOB-DATUV
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EQUNR - Equipment number

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

NRFDC - Search with alt. appl. only if up

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

STLAN - BOM usage

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

SWERK - Maintenance plant

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

TABLES Parameters details for CS_ALT_SELECT_EQUI

EQSTB_WA - Work area EQST

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

STKOB_WA - Work area (internal table) f. STKO

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

STZUB_WA - Work area (internal table) f. STZU

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

EXCEPTIONS details

BOM_NOT_ACTIVE - Bill of material is not active (st

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

BOM_NOT_FOUND - (special) bill of material not fou

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

NO_ALT_FOUND - no alternative found; bill of mate

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

NO_BOM_FOUND - no bill of material found

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

Copy and paste ABAP code example for CS_ALT_SELECT_EQUI 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_capid  TYPE TC04-CAPID, "   SPACE
lt_eqstb_wa  TYPE STANDARD TABLE OF CS01_EQSTB_TAB, "   
lv_bom_not_active  TYPE CS01_EQSTB_TAB, "   
lv_datuv  TYPE STKOB-DATUV, "   00000000
lt_stkob_wa  TYPE STANDARD TABLE OF CS01_STKOB_TAB, "   
lv_bom_not_found  TYPE CS01_STKOB_TAB, "   
lv_equnr  TYPE EQSTB-EQUNR, "   
lt_stzub_wa  TYPE STANDARD TABLE OF CS01_STZUB_TAB, "   
lv_no_alt_found  TYPE CS01_STZUB_TAB, "   
lv_nrfdc  TYPE CSDATA-XFELD, "   SPACE
lv_no_bom_found  TYPE CSDATA, "   
lv_stlan  TYPE EQSTB-STLAN, "   SPACE
lv_swerk  TYPE EQSTB-WERKS. "   

  CALL FUNCTION 'CS_ALT_SELECT_EQUI'  "NOTRANSL: automatische Alternativenselektion (Equipmentstückliste)
    EXPORTING
         CAPID = lv_capid
         DATUV = lv_datuv
         EQUNR = lv_equnr
         NRFDC = lv_nrfdc
         STLAN = lv_stlan
         SWERK = lv_swerk
    TABLES
         EQSTB_WA = lt_eqstb_wa
         STKOB_WA = lt_stkob_wa
         STZUB_WA = lt_stzub_wa
    EXCEPTIONS
        BOM_NOT_ACTIVE = 1
        BOM_NOT_FOUND = 2
        NO_ALT_FOUND = 3
        NO_BOM_FOUND = 4
. " CS_ALT_SELECT_EQUI




ABAP code using 7.40 inline data declarations to call FM CS_ALT_SELECT_EQUI

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 CAPID FROM TC04 INTO @DATA(ld_capid).
DATA(ld_capid) = ' '.
 
 
 
"SELECT single DATUV FROM STKOB INTO @DATA(ld_datuv).
DATA(ld_datuv) = 00000000.
 
 
 
"SELECT single EQUNR FROM EQSTB INTO @DATA(ld_equnr).
 
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_nrfdc).
DATA(ld_nrfdc) = ' '.
 
 
"SELECT single STLAN FROM EQSTB INTO @DATA(ld_stlan).
DATA(ld_stlan) = ' '.
 
"SELECT single WERKS FROM EQSTB INTO @DATA(ld_swerk).
 


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!