Ansicht
Dokumentation

CSEP_MAT_BOM_SELECT_CHANGE - API Bills of Material: Select BOM(s)

CSEP_MAT_BOM_SELECT_CHANGE - API Bills of Material: Select BOM(s)

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

With this module you can select bills of material (BOMs) for a material
or for a material, plant, and/or BOM usage.

Note:

  • Plant = '* ': Default setting
    All BOMs are selected for the material
    Plant = '0001': Only BOMs for in plant 0001 selected
    Plant = ' ': Only group BOMs selected
  • FL_MATERIAL_CHECK 'Check material existence'
    The system checks whether the specified material exists.
  • FL_FOREIGN_KEY_CHECK 'Carry out foreign key check'
    The system checks whether the plant and BOM usage exist.

Example

*---- Material BOMs table
data: begin of tmst2 occurs 0.
include structure mast_api02.
data: end of tmst2.


*- Open 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.
*---- Error occurred (No BOM selection or no BOM exists for the
* material)
* Evaluate log
endif.

Notes

Further information





Parameters

CHANGE_NO
T_BOM_HEADER
T_BOM_HEADER_REV

Exceptions

ERROR

Function Group

CSEP

BAL_S_LOG - Application Log: Log header data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2028 Date: 20240523 Time: 112632     sap01-206 ( 22 ms )