AddItem Method

This method adds an item to a specified port, creating a new instance of an item. If you want to change the quantity of an existing instance of an item, use SetItemQuantity.

Input Arguments

  • ObjId. The unique identifier of the complex object header.

  • RootId. The unique identifier of the complex object root.

  • (Optional) Version. Version arguments are used only when testing a customizable product version that is different from the currently released version.

  • (Optional) AutoResolve. Automatically resolves port cardinality violations. The default is N.

  • Prod Item Id. Product Id. This is S_ISS_SUB_OBJ.SUB_OBJ_ID (in other words CFG_MODEL_ID of referred product).

  • Name. The name of the item.

  • Product Id. The product id in S_PROD_INT table.

  • Port Item Id. Port or domain information. This is:

    • S_ISS_SUB_OBJ.PAR_REL_ID if this field is not null. Port has type Domain of class or dynamic class relationships

    • S_ISS_SUB_OBJ.ORIG_ID if S_ISS_SUB_OBJ.PAR_REL_ID is null. Port has type Product (S_ISS_SUB_OBJ.SUB_OBJ_TYPE_CD = Product)

  • Quantity. The item quantity.

  • List Price. The item list price from Pricing Manager, which can be empty.

  • Current Price. The current price from Pricing Manager, which can be empty.

  • Parent Path. The path is the object's Integration ID of the Parent Line Item where this additem call will be acted on.

Output Arguments

None.