SAP CS_BT_DOSTB_READ Function Module for NOTRANSL: Belegstrukturen DOSTB und STZUB für Stücklistentransaktionen auf
CS_BT_DOSTB_READ is a standard cs bt dostb read 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: Belegstrukturen DOSTB und STZUB für Stücklistentransaktionen auf 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 bt dostb read FM, simply by entering the name CS_BT_DOSTB_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CSBT
Program Name: SAPLCSBT
Main Program: SAPLCSBT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CS_BT_DOSTB_READ 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_BT_DOSTB_READ'"NOTRANSL: Belegstrukturen DOSTB und STZUB für Stücklistentransaktionen auf.
EXPORTING
* EDOKAR = ' ' "
* EDOKNR = ' ' "
* EDOKTL = ' ' "
* EDOKVR = ' ' "
* ESTLAL = ' ' "Alternative
* ESTLNR = ' ' "
ETRTYP = "Transaction type
IMPORTING
ASTLAL = "Alternative
ASTZUB = "Document structure STZU (time-iindependetn data)
STZU_LOCK_USER = "
STZU_LOCK_SYST = "
STZU_LOCK_UNAME = "
EXCEPTIONS
DOST_FOUND = 1 DOST_NRFD = 2 STZU_NRFD = 3 STLAL_FOUND = 4 STLAL_NOT_FOUND = 5
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_SAPLCSBT_001 Order BOM (Knowledge Based): Set Status at Fix
IMPORTING Parameters details for CS_BT_DOSTB_READ
EDOKAR -
Data type: DOSTB-DOKARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKNR -
Data type: DOSTB-DOKNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKTL -
Data type: DOSTB-DOKTLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKVR -
Data type: DOSTB-DOKVRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ESTLAL - Alternative
Data type: DOSTB-STLALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ESTLNR -
Data type: DOST-STLNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ETRTYP - Transaction type
Data type: TCS05-TRTYPOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CS_BT_DOSTB_READ
ASTLAL - Alternative
Data type: STKO-STLALOptional: No
Call by Reference: No ( called with pass by value option)
ASTZUB - Document structure STZU (time-iindependetn data)
Data type: STZUBOptional: No
Call by Reference: No ( called with pass by value option)
STZU_LOCK_USER -
Data type: CSDATA-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
STZU_LOCK_SYST -
Data type: CSDATA-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
STZU_LOCK_UNAME -
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DOST_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DOST_NRFD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STZU_NRFD - No BOM found for BOM number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STLAL_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STLAL_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CS_BT_DOSTB_READ 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_astlal | TYPE STKO-STLAL, " | |||
lv_edokar | TYPE DOSTB-DOKAR, " SPACE | |||
lv_dost_found | TYPE DOSTB, " | |||
lv_astzub | TYPE STZUB, " | |||
lv_edoknr | TYPE DOSTB-DOKNR, " SPACE | |||
lv_dost_nrfd | TYPE DOSTB, " | |||
lv_edoktl | TYPE DOSTB-DOKTL, " SPACE | |||
lv_stzu_nrfd | TYPE DOSTB, " | |||
lv_stzu_lock_user | TYPE CSDATA-XFELD, " | |||
lv_edokvr | TYPE DOSTB-DOKVR, " SPACE | |||
lv_stlal_found | TYPE DOSTB, " | |||
lv_stzu_lock_syst | TYPE CSDATA-XFELD, " | |||
lv_estlal | TYPE DOSTB-STLAL, " SPACE | |||
lv_stlal_not_found | TYPE DOSTB, " | |||
lv_stzu_lock_uname | TYPE SY-UNAME, " | |||
lv_estlnr | TYPE DOST-STLNR, " SPACE | |||
lv_etrtyp | TYPE TCS05-TRTYP. " |
  CALL FUNCTION 'CS_BT_DOSTB_READ' "NOTRANSL: Belegstrukturen DOSTB und STZUB für Stücklistentransaktionen auf |
EXPORTING | ||
EDOKAR | = lv_edokar | |
EDOKNR | = lv_edoknr | |
EDOKTL | = lv_edoktl | |
EDOKVR | = lv_edokvr | |
ESTLAL | = lv_estlal | |
ESTLNR | = lv_estlnr | |
ETRTYP | = lv_etrtyp | |
IMPORTING | ||
ASTLAL | = lv_astlal | |
ASTZUB | = lv_astzub | |
STZU_LOCK_USER | = lv_stzu_lock_user | |
STZU_LOCK_SYST | = lv_stzu_lock_syst | |
STZU_LOCK_UNAME | = lv_stzu_lock_uname | |
EXCEPTIONS | ||
DOST_FOUND = 1 | ||
DOST_NRFD = 2 | ||
STZU_NRFD = 3 | ||
STLAL_FOUND = 4 | ||
STLAL_NOT_FOUND = 5 | ||
. " CS_BT_DOSTB_READ |
ABAP code using 7.40 inline data declarations to call FM CS_BT_DOSTB_READ
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 STLAL FROM STKO INTO @DATA(ld_astlal). | ||||
"SELECT single DOKAR FROM DOSTB INTO @DATA(ld_edokar). | ||||
DATA(ld_edokar) | = ' '. | |||
"SELECT single DOKNR FROM DOSTB INTO @DATA(ld_edoknr). | ||||
DATA(ld_edoknr) | = ' '. | |||
"SELECT single DOKTL FROM DOSTB INTO @DATA(ld_edoktl). | ||||
DATA(ld_edoktl) | = ' '. | |||
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_stzu_lock_user). | ||||
"SELECT single DOKVR FROM DOSTB INTO @DATA(ld_edokvr). | ||||
DATA(ld_edokvr) | = ' '. | |||
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_stzu_lock_syst). | ||||
"SELECT single STLAL FROM DOSTB INTO @DATA(ld_estlal). | ||||
DATA(ld_estlal) | = ' '. | |||
"SELECT single UNAME FROM SY INTO @DATA(ld_stzu_lock_uname). | ||||
"SELECT single STLNR FROM DOST INTO @DATA(ld_estlnr). | ||||
DATA(ld_estlnr) | = ' '. | |||
"SELECT single TRTYP FROM TCS05 INTO @DATA(ld_etrtyp). | ||||
Search for further information about these or an SAP related objects