SAP CS_ALT_SELECT_TPL Function Module for NOTRANSL: Stücklistenkopfdaten (TechnischerPlatzStückliste)









CS_ALT_SELECT_TPL is a standard cs alt select tpl 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ücklistenkopfdaten (TechnischerPlatzStü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 tpl FM, simply by entering the name CS_ALT_SELECT_TPL 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_TPL 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_TPL'"NOTRANSL: Stücklistenkopfdaten (TechnischerPlatzStückliste)
EXPORTING
* CAPID = ' ' "Application ID from table TC04
* DATUV = 00000000 "Valid On
* NRFDC = ' ' "Find with alternative application only if NRFD
* STLAN = ' ' "BOM usage
TPLNR = "Functional location number
WERKS = "Plant

TABLES
STKOB_WA = "Work area (int. table) for STKOB
STZUB_WA = "Work area (int. table) for STZUB
TPSTB_WA = "Work area TPST

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



IMPORTING Parameters details for CS_ALT_SELECT_TPL

CAPID - Application ID from table TC04

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)

NRFDC - Find with alternative application only if NRFD

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

STLAN - BOM usage

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

TPLNR - Functional location number

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

WERKS - Plant

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

TABLES Parameters details for CS_ALT_SELECT_TPL

STKOB_WA - Work area (int. table) for STKOB

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

STZUB_WA - Work area (int. table) for STZUB

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

TPSTB_WA - Work area TPST

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

EXCEPTIONS details

BOM_NOT_ACTIVE - BOM not active (status)

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

BOM_NOT_FOUND - (Specific) BOM not found

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

NO_ALT_FOUND - No alternative found: BOM not valid

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

NO_BOM_FOUND - No BOMs 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_TPL 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_stkob_wa  TYPE STANDARD TABLE OF CS01_STKOB_TAB, "   
lv_bom_not_active  TYPE CS01_STKOB_TAB, "   
lv_datuv  TYPE STKOB-DATUV, "   00000000
lt_stzub_wa  TYPE STANDARD TABLE OF CS01_STZUB_TAB, "   
lv_bom_not_found  TYPE CS01_STZUB_TAB, "   
lv_nrfdc  TYPE CSDATA-XFELD, "   SPACE
lt_tpstb_wa  TYPE STANDARD TABLE OF CS01_TPSTB_TAB, "   
lv_no_alt_found  TYPE CS01_TPSTB_TAB, "   
lv_stlan  TYPE TPSTB-STLAN, "   SPACE
lv_no_bom_found  TYPE TPSTB, "   
lv_tplnr  TYPE TPSTB-TPLNR, "   
lv_werks  TYPE TPSTB-WERKS. "   

  CALL FUNCTION 'CS_ALT_SELECT_TPL'  "NOTRANSL: Stücklistenkopfdaten (TechnischerPlatzStückliste)
    EXPORTING
         CAPID = lv_capid
         DATUV = lv_datuv
         NRFDC = lv_nrfdc
         STLAN = lv_stlan
         TPLNR = lv_tplnr
         WERKS = lv_werks
    TABLES
         STKOB_WA = lt_stkob_wa
         STZUB_WA = lt_stzub_wa
         TPSTB_WA = lt_tpstb_wa
    EXCEPTIONS
        BOM_NOT_ACTIVE = 1
        BOM_NOT_FOUND = 2
        NO_ALT_FOUND = 3
        NO_BOM_FOUND = 4
. " CS_ALT_SELECT_TPL




ABAP code using 7.40 inline data declarations to call FM CS_ALT_SELECT_TPL

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 XFELD FROM CSDATA INTO @DATA(ld_nrfdc).
DATA(ld_nrfdc) = ' '.
 
 
 
"SELECT single STLAN FROM TPSTB INTO @DATA(ld_stlan).
DATA(ld_stlan) = ' '.
 
 
"SELECT single TPLNR FROM TPSTB INTO @DATA(ld_tplnr).
 
"SELECT single WERKS FROM TPSTB INTO @DATA(ld_werks).
 


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!