Ansicht
Dokumentation
/DSCSAG/MAT_BOM_SELECT - RFC enabled wrapper for CSAP_MAT_BOM_SELECT with errorhandling
Fill RESBD Structure from EBP Component Structure SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
Use this function module to select BOMs for a material or for a material, plant and/or BOM usage.
Please note the following information:
- Plant '* ': Default setting
All BOMs are selected for the material concerned.
Plant '0001': Only the BOMs in plant 0001 are selected.
Plant ' ': Only the group BOM is selected.
- FL_MATERIAL_CHECK 'Check for material existence'
The system checks whether the material entered exists.
- FL_FOREIGN_KEY_CHECK 'Carry out external key check'
The system checks whether the plant and BOM usage exist.
Example
*---- Table of material BOMs
data: begin of tmst2 occurs 0.
include structure mast_api02.
data: end of tmst2.
*- Initialize database log
call function 'CALO_INIT_API'
exceptions
log_object_not_found = 1
log_sub_object_not_found = 2
other_error = 3
others = 4.
*- Select material BOMs
call function 'CSAP_MAT_BOM_SELECT'
exporting
material = 'MAT100'
* plant = "optional entry
* bom_usage = "optional entry
importing
fl_warning = flg_warning
tables
t_mast = tmst2
exceptions
error = 1.
if sy-subrc eq 1.
*---- An error occurred (no BOM selected or no BOM exists for
* material)
* Please see log
endif.
Notes
Further information
Parameters
BOM_RETURNSBOM_USAGE
ET_MAT_BOM_HDR_F4
FL_FOREIGN_KEY_CHECK
FL_MATERIAL_CHECK
GET_STKO
IV_CLIENT_VERSION
IV_F4_VALUES
IV_GET_DELETED_HEADERS
IV_LANG
IV_STKO_VALID_FROM
MATERIAL
PLANT
RETURN
RUNTIME
T_MAST
T_STKO
VERSION_ID
Exceptions
Function Group
SAG/SAPLMATERIALGeneral Material Data ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 2355 Date: 20240419 Time: 034107 sap01-206 ( 33 ms )