📚 SAP Business One SDK Help

DeleteProfitCenter Method
See Also  Example
pIProfitCenterParams
The key of the profit center to be deleted.

Description

Deletes an existing profit center.

The profit center is specified by its key (PrcCode), which is contained in the ProfitCenterParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteProfitCenter( _
   ByVal pIProfitCenterParams As ProfitCenterParams _
) 

Parameters

pIProfitCenterParams
The key of the profit center to be deleted.

Remarks

If the profit center is system defined or is linked to a distribution rule, the profit center cannot be deleted.

A profit center is system defined if the Locked field in the OPRC table is set to Y.

Example

Deleting a profit center (Visual Basic)Copy Code
oPCParams.CenterCode = "Code"
oPCService.DeleteProfitCenter(oPCParams)

See Also