SAP CSAP_ORD_BOM_ITEM_SELECT Function Module for NOTRANSL: API Stücklisten: Positionen einer Kundenauftragstückliste selekt









CSAP_ORD_BOM_ITEM_SELECT is a standard csap ord bom item select 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: API Stücklisten: Positionen einer Kundenauftragstückliste selekt 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 csap ord bom item select FM, simply by entering the name CSAP_ORD_BOM_ITEM_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function CSAP_ORD_BOM_ITEM_SELECT 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 'CSAP_ORD_BOM_ITEM_SELECT'"NOTRANSL: API Stücklisten: Positionen einer Kundenauftragstückliste selekt
EXPORTING
* I_STPO = "
ORDER = "
POSITION = "Sales Order Item
* MATERIAL = "Material
* BOM_USAGE = "BOM Usage
* VALID_FROM = "Valid-From Date
* VALID_TO = "Valid-To Date
* FL_MATERIAL_CHECK = 'X' "Check material existence
* FL_FOREIGN_KEY_CHECK = 'X' "Check external key

IMPORTING
FL_WARNING = "Log contains warning messages

TABLES
T_STPO = "BOM Items

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CSAP_ORD_BOM_ITEM_SELECT

I_STPO -

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

ORDER -

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

POSITION - Sales Order Item

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

MATERIAL - Material

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

BOM_USAGE - BOM Usage

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

VALID_FROM - Valid-From Date

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

VALID_TO - Valid-To Date

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

FL_MATERIAL_CHECK - Check material existence

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

FL_FOREIGN_KEY_CHECK - Check external key

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

EXPORTING Parameters details for CSAP_ORD_BOM_ITEM_SELECT

FL_WARNING - Log contains warning messages

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

TABLES Parameters details for CSAP_ORD_BOM_ITEM_SELECT

T_STPO - BOM Items

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

EXCEPTIONS details

ERROR - Processing Terminated

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

Copy and paste ABAP code example for CSAP_ORD_BOM_ITEM_SELECT 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_error  TYPE STRING, "   
lv_i_stpo  TYPE STPO_API02, "   
lt_t_stpo  TYPE STANDARD TABLE OF STPO_API02, "   
lv_fl_warning  TYPE CAPIFLAG-FLWARNING, "   
lv_order  TYPE KDST-VBELN, "   
lv_position  TYPE KDST-VBPOS, "   
lv_material  TYPE CSAP_MBOM-MATNR, "   
lv_bom_usage  TYPE CSAP_MBOM-STLAN, "   
lv_valid_from  TYPE CSAP_MBOM-DATUV, "   
lv_valid_to  TYPE CSAP_MBOM-DATUB, "   
lv_fl_material_check  TYPE CSDATA-XFELD, "   'X'
lv_fl_foreign_key_check  TYPE CSDATA-XFELD. "   'X'

  CALL FUNCTION 'CSAP_ORD_BOM_ITEM_SELECT'  "NOTRANSL: API Stücklisten: Positionen einer Kundenauftragstückliste selekt
    EXPORTING
         I_STPO = lv_i_stpo
         ORDER = lv_order
         POSITION = lv_position
         MATERIAL = lv_material
         BOM_USAGE = lv_bom_usage
         VALID_FROM = lv_valid_from
         VALID_TO = lv_valid_to
         FL_MATERIAL_CHECK = lv_fl_material_check
         FL_FOREIGN_KEY_CHECK = lv_fl_foreign_key_check
    IMPORTING
         FL_WARNING = lv_fl_warning
    TABLES
         T_STPO = lt_t_stpo
    EXCEPTIONS
        ERROR = 1
. " CSAP_ORD_BOM_ITEM_SELECT




ABAP code using 7.40 inline data declarations to call FM CSAP_ORD_BOM_ITEM_SELECT

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 FLWARNING FROM CAPIFLAG INTO @DATA(ld_fl_warning).
 
"SELECT single VBELN FROM KDST INTO @DATA(ld_order).
 
"SELECT single VBPOS FROM KDST INTO @DATA(ld_position).
 
"SELECT single MATNR FROM CSAP_MBOM INTO @DATA(ld_material).
 
"SELECT single STLAN FROM CSAP_MBOM INTO @DATA(ld_bom_usage).
 
"SELECT single DATUV FROM CSAP_MBOM INTO @DATA(ld_valid_from).
 
"SELECT single DATUB FROM CSAP_MBOM INTO @DATA(ld_valid_to).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_fl_material_check).
DATA(ld_fl_material_check) = 'X'.
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_fl_foreign_key_check).
DATA(ld_fl_foreign_key_check) = 'X'.
 


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!