SAP ABAP Class CL_GRAPH_TYPE_SIMPLE (Helper class for BusinessDocFlow service)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
SD-SLS-ES (Application Component) Enterprise Services in Sales
⤷
OPS_SE_GEN (Package) Service Enabling ERP OPS (generic services)
⤷
⤷
Properties
| Class | CL_GRAPH_TYPE_SIMPLE | |
| Short Description | Helper class for BusinessDocFlow service | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | OPS_SE_GEN | Service Enabling ERP OPS (generic services) |
| Created | 20081014 | SAP |
| Last change | 20100310 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_GRAPH_TYPE_SIMPLE has no interface implemented.
Friends
Class CL_GRAPH_TYPE_SIMPLE has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | See coding | 20081014 | |||||
| 2 | Instance attribute | Private | Type reference (TYPE) | TY_RELATIONSHIP_T | 20081014 | ||||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | IF_GRAPH_BUSDOCFLWERP_AUTH | IF for authorization check for documents in document flow | 20081204 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | any nodes added | 20090406 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Adds a connection to the graph. | 20081014 | |
| 2 | Instance method | Public | Method | adds a node to the graph | 20090406 | |
| 3 | Instance method | Public | Method | change the type for specified documents | 20090519 | |
| 4 | Instance method | Private | Method | Recursively check if ref node is reachable from node. | 20081014 | |
| 5 | Instance method | Public | Method | removes the not supported documents from the graph | 20090526 | |
| 6 | Instance method | Public | Constructor | 20081014 | ||
| 7 | Instance method | Public | Method | get the graph as a DocumentFlow | 20081014 | |
| 8 | Instance method | Private | Method | calculates the hlevel starting from a node. | 20081014 | |
| 9 | Instance method | Public | Method | set creation time for a node | 20081110 |
Events
Class CL_GRAPH_TYPE_SIMPLE has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_NODE | Private | See coding | 20081014 | BEGIN OF ty_node,
doc TYPE ty_relationship,
level TYPE dflow_level,
parents LIKE lt_dummy_relship,
children LIKE lt_dummy_relship,
date TYPE erdat,
time TYPE erzet,
END OF ty_node
|
||
| 2 | TY_NODE_RELATION | Public | See coding | 20081014 | begin of ty_node_relation,
from_doc_id type AUFNR,
from_doc_item_id type POSNR,
from_doc_type type SAPPLCO_BUS_TRANS_TYPE_CODE,
from_year type mjahr,
from_hlevel type i,
date type erdat,
time type erzet,
to_doc_id type AUFNR,
to_doc_item_id type POSNR,
to_doc_type type SAPPLCO_BUS_TRANS_TYPE_CODE,
to_year type mjahr,
to_hlevel type i,
end of ty_node_relation
|
||
| 3 | TY_NODE_RELATION_T | Public | See coding | 20081014 | ty_node_relation_t type standard table of ty_node_relation
|
||
| 4 | TY_NODE_T | Private | See coding | 20081014 | ty_node_t TYPE STANDARD TABLE OF ty_node
|
||
| 5 | TY_RELATIONSHIP | Private | See coding | 20081014 | BEGIN OF ty_relationship,
doc_id TYPE aufnr,
doc_item_id TYPE posnr,
doc_year TYPE mjahr,
doc_type TYPE sapplco_bus_trans_type_code,
END OF ty_relationship
|
||
| 6 | TY_RELATIONSHIP_T | Private | See coding | 20081014 | ty_relationship_t TYPE STANDARD TABLE OF ty_relationship
|
Method Signatures
Method ADD_CONN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_CHILD_CREATED | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20090512 | ||||
| 2 | EV_PARENT_CREATED | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20090512 | ||||
| 3 | IV_CHILD_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | 20081014 | ||||
| 4 | IV_CHILD_ID | Call by reference | Type reference (TYPE) | AUFNR | 20081014 | ||||
| 5 | IV_CHILD_ITEM_ID | Call by reference | Type reference (TYPE) | POSNR | 000000 | 20081014 | |||
| 6 | IV_CHILD_YEAR | Call by reference | Type reference (TYPE) | MJAHR | 0000 | Year for which levy is to be carried out | 20090105 | ||
| 7 | IV_DATE | Call by reference | Type reference (TYPE) | ERDAT | Date on Which Record Was Created | 20081104 | |||
| 8 | IV_PARENT_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | 20081014 | ||||
| 9 | IV_PARENT_ID | Call by reference | Type reference (TYPE) | AUFNR | 20081014 | ||||
| 10 | IV_PARENT_ITEM_ID | Call by reference | Type reference (TYPE) | POSNR | 000000 | 20081014 | |||
| 11 | IV_PARENT_YEAR | Call by reference | Type reference (TYPE) | MJAHR | 0000 | Year for which levy is to be carried out | 20090105 | ||
| 12 | IV_TIME | Call by reference | Type reference (TYPE) | ERZET | Entry time | 20081104 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20081014 | |||
| 2 | 20081014 | |||
| 3 | 20081014 | |||
| 4 | 20081014 |
Method ADD_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | ERDAT | Date on Which Record Was Created | 20090406 | |||
| 2 | IV_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | 20090406 | ||||
| 3 | IV_ID | Call by reference | Type reference (TYPE) | AUFNR | 20090406 | ||||
| 4 | IV_ITEM_ID | Call by reference | Type reference (TYPE) | POSNR | 000000 | 20090406 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | ERZET | Entry time | 20090406 | |||
| 6 | IV_YEAR | Call by reference | Type reference (TYPE) | MJAHR | 0000 | Year for which levy is to be carried out | 20090406 |
Method ADD_NODE on class CL_GRAPH_TYPE_SIMPLE has no exception.
Method CHANGE_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FOUND | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20090519 | ||||
| 2 | IV_NEW_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | Proxy Data Element (Generated) | 20090519 | |||
| 3 | IV_OLD_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | Proxy Data Element (Generated) | 20090519 |
Method CHANGE_TYPE on class CL_GRAPH_TYPE_SIMPLE has no exception.
Method CHECK_CIRCLE_IN_GRAPH_RECUR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_NODE | Call by reference | Type reference (TYPE) | TY_NODE | 20081014 | ||||
| 2 | IS_REF_NODE | Call by reference | Type reference (TYPE) | TY_NODE | 20081014 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20081014 |
Method CLEAR_GRAPH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AUTH_CHECK | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20090526 |
Method CLEAR_GRAPH on class CL_GRAPH_TYPE_SIMPLE has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_AUTH_CHECK | Call by reference | Object reference (TYPE REF TO) | IF_GRAPH_BUSDOCFLWERP_AUTH | IF for authorization check for documents in document flow | 20081204 | |||
| 2 | IV_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | 20081014 | ||||
| 3 | IV_ID | Call by reference | Type reference (TYPE) | AUFNR | 20081014 | ||||
| 4 | IV_ITEM_ID | Call by reference | Type reference (TYPE) | POSNR | 20081014 | ||||
| 5 | IV_YEAR | Call by reference | Type reference (TYPE) | MJAHR | 0000 | Material Document Year | 20090105 |
Method CONSTRUCTOR on class CL_GRAPH_TYPE_SIMPLE has no exception.
Method GET_GRAPH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_GRAPH | Call by reference | Type reference (TYPE) | TY_NODE_RELATION_T | 20081014 | ||||
| 2 | IV_AUTH_CHECK | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20090108 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Standard Message Fault | 20090105 |
Method RECALC_HLEVEL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_NODE | Call by reference | Type reference (TYPE) | TY_NODE | 20081014 |
Method RECALC_HLEVEL on class CL_GRAPH_TYPE_SIMPLE has no exception.
Method SET_TIME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | ERDAT | 20081110 | ||||
| 2 | IV_DOC_TYPE | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_TRANS_TYPE_CODE | Proxy Data Element (Generated) | 20081110 | |||
| 3 | IV_ID | Call by reference | Type reference (TYPE) | AUFNR | 20081110 | ||||
| 4 | IV_ITEM_ID | Call by reference | Type reference (TYPE) | POSNR | 000000 | 20081110 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | ERZET | 20081110 | ||||
| 6 | IV_YEAR | Call by reference | Type reference (TYPE) | MJAHR | 0000 | Material Document Year | 20090105 |
Method SET_TIME on class CL_GRAPH_TYPE_SIMPLE has no exception.
History
| Last changed by/on | SAP | 20100310 |
| SAP Release Created in | 605 |