Description
This method creates CBS code under Project or Shell (cost code type as CBS) cost sheet.
Prototype
Public XMLObject createWBS(String shortname,String authcode, string projectNumber, String WBSXML );
Parameters
Parameter | Description |
---|---|
shortname | identifier of the company, company’s short name |
authcode | authentication key for the company, in text string |
projectNumber | identifier of the project or a shell in Unifier |
WBSXML | identifier used for CBS creation XML format |
WBSXML Elements
The following is a list of elements that are supported while creating CBS code. Any other codes that are defined as part of Cost Attribute form will be supported except User and BP Picker
Parameter | Description |
---|---|
<status> | Status is not a required tag when you are sending createWBS message. But if you include this tag then following are the valid values Active: Code will be created with Active status Inactive: Code will be created with Inactive status If you do not send this tag then code will be created without any status which is equivalent to Inactive status. |
<cost_type> | This is not a required tag when you are sending createWBS message. But if you include this tag then following are the valid values Capital: To create CBS of type Capital Expense: To create CBS of type Expense If you do not send this tag then code will be created with Capital as Cost Type. |
<costattribute> | This is not a required tag when you are sending createWBS message. But if you include this tag then send data that is defined as values under Cost Attribute data definition. |
Return Value
See Return Values
Additional Information
You can create CBS Code with a Tree Structure.
getWBSStructure
Use getWBSStructure service to get the CBS attribute structure. The retrieved structure can be used to create new CBS codes. User can define a Cost Attribute form in uDesigner. In order to send XML message to create new Cost codes user has to send data using schema that is generated as output from getCBSStrucutre service.
If the Project or Shell CBS structure is in tree mode, or a parent / child relationship is required, the CBS code passed via the integration interface must concatenate the parent CBS code and child CBS code with "~~" as the delimiter.
If you have multilevel parent child relationship then you have to pass in "~~" as delimiter at all levels to separate parent and child.
Parent will be automatically created when you create child.
CBS Item element will take value of Description element.
This service will only work for Shells with Cost Code: CBS