/CUM/BAPI_CUDESIGN_MAINTAIN - CU: BAPI maintain CU design

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Functionality

This BAPI is used for maintaining a CU design. A CU design consist of a design header and a hierarchyof 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 musthave 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 designthe CUI's can have different update flag depending on if a new CUI is added or is changed or shouldbe 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'saddittionally 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

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

ROGBILLS - Synchronize billing plans   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.


Length: 1967 Date: 20120524 Time: 044303     triton ( 107 ms )