Ansicht
Dokumentation

/CUM/BAPI_CUDESIGN_MAINTAIN - CU: BAPI maintain CU design

/CUM/BAPI_CUDESIGN_MAINTAIN - CU: BAPI maintain CU design

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

Functionality

This BAPI is used for maintaining a CU design. A CU design consist of a design header and a hierarchy of CU instances (CUI's). This hierarchy must contain at least the top CUI which must be a virtual CUI. The CUI hierarchy must be consistent.

If a new CUI is created or added it must have an internal number (INTCUNR) (CUGUID) and the internal number of te superior CUI (SUPCUNR).

If an existing CUI is maintained the fields CUGUID and SUPCUGUID must be filled. All virtual CUI's must have the flag VIRTUAL. If a CUI contains a BOM-CU then all necessary items CU's must also be defined. When creating a new design all CUI's must have the flag VBKZ set to 'I'. When maintaing a CU design the CUI's can have different update flag depending on if a new CUI is added or is changed or should be deleted. All CUI's not contained in the table IT_AFCU will be deleted from DB. An existing CUI must be filled with CUGUID and SUPCUGUID.

While changing a design all fields in the header without the technical fields must be filled. If one field is not filled then it will be cleared in DB. The kind of maintainance will be defined in the field VBKZ.

A design can only be deleted if the status allows it. In particular a design can not be deleted if an order was created from it.

For each CUI also the charcteristics must be filled in the table IT_CUI_AUSP. For each virtual CUI's addittionally there must be one entry in the table IT_VCUI. In both table the fields INTCUNR (resp. CUGUID) must be filled to get the link to the CUI.

Example

Notes

Further information





Parameters

ES_CUDESIGN
ET_RETURN
E_DESNUM
IS_CUDESIGN
IT_AFCU
IT_CUI_AUSP
IT_VCUI
I_BUFFER_CU_MASTER
I_CHECK_CHARVAL
I_MODE
I_PROCESS_CUI
RETURN

Exceptions

Function Group

/SAPLCUDESIGN

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2092 Date: 20240523 Time: 082000     sap01-206 ( 84 ms )