Fonction SAP BAPI_NETWORK_COMP_ADD - Add to BOR Object Network, Subobject Material Component Method

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NUMBER BAPI_NETWORK_LIST-NETWORK C 12 Network Number

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameter

Paramètre Reférence Long. Facultatif Description
E_MESSAGE_TABLE BAPI_METH_MESSAGE 340 Message Table for BAPIs (Project System)
I_COMPONENTS_ADD BAPI_NETWORK_COMP_ADD 479 BAPI Structure for Adding Material Components

Functionality
The BAPI BAPI_NETWORK_COMP_ADD adds a list of material components(I_COMPONENTS_ADD) to a network (NUMBER). Therefore it is possible tocreate multiple network components for the network object with onesingle call. The Project System determines the order. The caller canspecify the components in any order.
The BAPI can be called repeatedly until a LUW is completed with theBAPI Commit Work. Since maintenance of the network structures iscarried out
in other BAPIs, it is assumed that the corresponding activites alreadyexist in the database for the components.
The following cases are exceptions:
Configurable material
Discontinued material
Alternative items
It is not possible to create a long text for a material component usinga BAPI. For externally procured components with a material number, thesystem creates a long text from the item text(BAPI_NETWORK_COMP_ADD-ITEM_TEXT) in the background and transfers it tothe purchase requisition.

Notes
Transfer
You should always specify the network number NUMBER. The systemtransfers component data to the table I_COMPONENTS_ADD. You shouldalways specify the following for each components:
a. To which activity the component should be added
b. The procurement type (network reservation, WBS reservation...). Seethe data element documentation for TYPE_OF_PUR_RESV.
Return
If an error occurs in processing you see an error message in the returnparameter RETURN.
After calling, you see the messages that were generated duringprocessing in the table E_MESSAGE_TABLE.

Further information
For more information, see the SAP Library under Project System ->Structures -> Interfaces to the Project System -> PS-EPS Interface toExternal Project Software.

Description
Return code with error message

Value range
In the case of an error, the following message is returned:
Type ID Number Message
E CN 770 Errors occured during processing
In this case, you can find more information about the cause of theerror in the table E_MESSAGE_TABLE.

Description
Number that uniquely identifies a network within a client.

Description
If errors occur when you add components, the system issues thecorresponding object and error message in this table.
Table structure:
Method,,,,,,,,Data type CHAR,,Field length 32
Objekt-Typ,,,,,,,,Data type CHAR,,Field length 32
SAP internal object key,,Data type CHAR,,Field length 90
SAP external object key,,Data type CHAR,,Field length 90
Message identification,,,,Data type CHAR,,Field length 20
Message number,,,,Data type CHAR,,Field length 3
Message type,,,,,,Data type CHAR,,Field length 1
Message text,,,,,,Data type CHAR,,Field length 72
The method and the object type are unique in this case and thereforethese fields are not filled.
The SAP external object key is componsed of the activity number, theitem number, the material number, and the plant.

Description
The system transfers the detail information for adding networkcomponents in this structure.
Fields:
ACTIVITY ,, ,,,,Activity number network and standard network (use EN)
TYPE_OF_PUR_RESV,,,,Procurement type (use EN)
These are defined as required entry fields.
For information about the meaning of the individual parameters, see thecorresponding data element documentation. To do so, double-click the adata element in the structure and then choose the Documentationfunction key.

979942BAPI_NETWORK_COMP_ADD -> Batch field not populated
973936BAPI_NETWORK_COMP_ADD -> Error message 00 058