Ansicht
Dokumentation

/DSCSAG/CDESK_BOM_WIZARD - Material BOM Wizard from CDESK

/DSCSAG/CDESK_BOM_WIZARD - Material BOM Wizard from CDESK

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to display simple material BOMs. You cannot display BOM groups (for example, all variants of a variant BOM). as in transaction CS03.

Current restrictions:

  • You cannot display long texts.
  • You cannot display sub-items.
  • You cannot display classification data of BOM items for batches.
  • You can only display one alternative or variant. You cannot enter an alternative for module CSAP_MAT_BOM_READ, so you always see alternative 01.

Example

*---- Tabelle Stücklistenkopfdaten
data: begin of tstk2 occurs 0.
include structure stko_api02.
data: end of tstk2.
*---- Tabelle Stücklistenpositionen
data: begin of tstp2 occurs 0.
include structure stpo_api02.
data: end of tstp2.

*---- Tabellen für Beziehungswissen:
* Basisdaten
data: begin of tdep_data occurs 0.
include structure csdep_data.
data: end of tdep_data.
* Beschreibung
data: begin of tdep_descr occurs 0.
include structure csdep_descr.
data: end of tdep_descr.
* Source
data: begin of tdep_source occurs 0.
include structure csdep_source.
data: end of tdep_source.
* Reihenfolge
data: begin of tdep_order occurs 0.
include structure csdep_order.
data: end of tdep_order.
* Dokumentation
data: begin of tdep_doc occurs 0.
include structure csdep_doc.
data: end of tdep_doc.

data: flg_warning like capiflag-flwarning.


*- Datenbankprotokoll eröffnen
call function 'CALO_INIT_API'
exceptions
log_object_not_found = 1
log_sub_object_not_found = 2
other_error = 3
others = 4.


*- Materialstückliste anzeigen
call function 'CSAP_MAT_BOM_READ'
exporting
material = 'MAT100'
plant = '0001'
bom_usage = '1'
valid_from = '20.12.1996'
* valid_to "Kanneingabe
importing
fl_warning = flg_warning
tables
t_stko = tstk2
t_stpo = tstp2
t_dep_data = tdep_data
t_dep_descr = tdep_descr
t_dep_source = tdep_source
t_dep_order = tdep_order
t_dep_doc = tdep_doc
exceptions
error = 1.

if sy-subrc eq 1.
*---- Fehler aufgetreten (Stückliste kann nicht angezeigt werden)
* Bitte Protokoll auswerten
endif.
if flg_warning eq 'X'.
*---- Bitte Protokoll auswerten. Dieses enthält Informationen, War-
* nungen und Erfolgsmeldungen
Endif.

Notes

Further information





Parameters

ALTERNATIVE
CADGROUP
CADSYSTEM
CDESK_VERSION
CHANGENO
DOCUMENTNUMBER
DOCUMENTPART
DOCUMENTTYPE
DOCUMENTVERSION
ET_CHILD_DOCUMENTS
EXP_ALTERNATIVE
EXP_MATERIAL
EXP_PLANT
EXP_USAGE
FL_CHANGE_IF_UNIQUE
FL_CHANGE_ONLY
FL_CREATE_ONLY
FL_GOTO_TRANSACTION
FL_SHOW_DIALOG_BOM
FL_SHOW_DIALOG_HEAD
FL_SHOW_DIALOG_MULTI_NEW_POS
FL_SHOW_DIALOG_MULTI_OLD_POS
FL_SHOW_DIALOG_NEW_POS
FL_SHOW_DIALOG_POS
IT_ADD_ITEMS
IT_BOMITM_ATTR
IT_INST_METADATA
MATERIAL
PLANT
RETURN
RUNTIME
USAGE
VALIDFROM
VERSION_ID

Exceptions

Function Group

SAG/SAPLMATERIAL

ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4111 Date: 20240426 Time: 133038     sap01-206 ( 44 ms )