This package allows you to interact with sap psp elements from table 963.
Classes
PspElement
Methods
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
PspElement.__enter__ |
|
The |
Enter the context. |
|
PspElement.__eq__ |
other: Another |
|
Check if a PspElement is equal to another |
|
PspElement.__exit__ |
exc_type: Exception type
|
|
The |
|
PspElement.__init__ |
uuid: UUID |
|
Initialize a new |
|
PspElement.can_be_deleted |
show_error_dialog: Shows a dialog message when the element cannot be deleted |
|
Check if this |
|
PspElement.create_child_psp_element |
attributes: Dictionary of attribute/value pairs in DT 563 to set |
|
Create a child PspElement. It will belong to the same project and have its parent property set automatically |
|
PspElement.delete |
|
|
Deletes the record from table 963 |
Classmethods
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
PspElement.create |
attributes: Dictionary of attributes to be passed on to |
The new |
Create a new psp element |
Properties
|
Property |
Getter |
Setter |
Description |
|---|---|---|---|
|
PspElement.amount_of_assigned_tasks |
|
|
The number of tasks assigned to this element |
|
PspElement.amount_of_child_elements |
|
|
The number of child elements assigned to this element |
|
PspElement.has_costs_or_effort_from_sap |
|
|
Returns |
|
PspElement.is_bottom_child_in_structure |
|
|
Returns |
|
PspElement.level |
|
|
Returns the structure level a PspElement is at. The top parent has level 1, its children have level 2, their children have level 3 and so on |
|
PspElement.parent_element_sap_id |
|
|
Returns an ID generated like this: "Projekt-SAP-PSP-Element-ID" |
|
PspElement.parent_psp |
|
|
|
|
PspElement.parent_psp_element |
|
|
Returns a |
|
PspElement.project_id |
|
|
|
|
PspElement.psp_id |
|
|
|
|
PspElement.sap_costs |
|
|
Returns a named tuple with 3 attributes that indicate the costs: planned, actual and remaining |
|
PspElement.sap_effort |
|
|
Returns a named tuple with 3 attributes that indicate the effort: planned, actual and remaining |
|
PspElement.sum_of_costs_of_assigned_resources |
|
|
Returns a named tuple with 3 attributes that indicate the sum of the costs booked on the assigned resources: planned, actual and remaining |
|
PspElement.sum_of_costs_of_assigned_resources_and_own_costs |
|
|
|
|
PspElement.sum_of_effort_of_assigned_resources |
|
|
Returns a named tuple with 3 attributes that indicate the sum of the effort booked on the assigned resources: planned, actual and remaining |
|
PspElement.sum_of_effort_of_assigned_resources_and_own_effort |
|
|
|
|
PspElement.summarized_costs |
|
|
Returns a named tuple with 3 attributes that indicate the sum of the costs imported from SAP combined with the costs booked in PLANTA: planned, actual and remaining |
|
PspElement.summarized_effort |
|
|
Returns a named tuple with 3 attributes that indicate the sum of the effort imported from SAP combined with the costs booked in PLANTA: planned, actual and remaining |
|
PspElement.tasks |
|
|
Return a list of |
Task
Methods
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
Task.__init__ |
project_id: Projekt-ID
|
The |
Initialize a new |
|
Task.assign_psp_element |
psp_element: A |
|
Assign a psp element to a task |
|
Task.can_psp_element_assignment_be_removed |
show_error_dialog: Shows a dialog message when the psp element assignments to this task cannot be removed |
|
Checks if the psp element assignment can be removed from this task |
|
Task.can_psp_element_be_assigned |
psp_element: A |
|
Check if a psp element can be assigned to this task |
|
Task.clear_psp_element_assignment |
|
|
Remove the psp element assignment from this task |
Classmethods
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
Task.from_dtp_record |
task_dtp_record: A DtpRecord from table 463 |
A |
Create a |
Properties
|
Property |
Getter |
Setter |
Description |
|---|---|---|---|
|
Task.amount_of_child_tasks |
|
|
Returns the number of tasks below this |
|
Task.assigned_psp_element |
|
|
Returns |
|
Task.has_costs_or_effort |
|
|
Returns |
|
Task.has_psp_assignment_in_status_report |
|
|
Returns |
|
Task.sap_structure |
|
|
|
|
Task.summary_task |
|
|
Functions
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
get_all_psp_elements_of_project |
project_id: Projekt-ID |
A list of |
Fetch all SAP PSP elements assigned to the tasks of this project |