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 ABAP 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 GRAPH Instance attribute Private See coding 20081014
2 LT_DUMMY_RELSHIP Instance attribute Private Type reference (TYPE) TY_RELATIONSHIP_T 20081014
3 MO_AUTH_CHECK Instance attribute Private Object reference (TYPE REF TO) IF_GRAPH_BUSDOCFLWERP_AUTH IF for authorization check for documents in document flow 20081204
4 NODES Instance attribute Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE any nodes added 20090406
Methods
# Method Level Visibility Method type Description Created on
1 ADD_CONN Instance method Public Method Adds a connection to the graph. 20081014
2 ADD_NODE Instance method Public Method adds a node to the graph 20090406
3 CHANGE_TYPE Instance method Public Method change the type for specified documents 20090519
4 CHECK_CIRCLE_IN_GRAPH_RECUR Instance method Private Method Recursively check if ref node is reachable from node. 20081014
5 CLEAR_GRAPH Instance method Public Method removes the not supported documents from the graph 20090526
6 CONSTRUCTOR Instance method Public Constructor 20081014
7 GET_GRAPH Instance method Public Method get the graph as a DocumentFlow 20081014
8 RECALC_HLEVEL Instance method Private Method calculates the hlevel starting from a node. 20081014
9 SET_TIME 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 Exporting EV_CHILD_CREATED Call by reference Type reference (TYPE) ABAP_BOOL 20090512
2 Exporting EV_PARENT_CREATED Call by reference Type reference (TYPE) ABAP_BOOL 20090512
3 Importing IV_CHILD_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE 20081014
4 Importing IV_CHILD_ID Call by reference Type reference (TYPE) AUFNR 20081014
5 Importing IV_CHILD_ITEM_ID Call by reference Type reference (TYPE) POSNR 000000 20081014
6 Importing IV_CHILD_YEAR Call by reference Type reference (TYPE) MJAHR 0000 Year for which levy is to be carried out 20090105
7 Importing IV_DATE Call by reference Type reference (TYPE) ERDAT Date on Which Record Was Created 20081104
8 Importing IV_PARENT_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE 20081014
9 Importing IV_PARENT_ID Call by reference Type reference (TYPE) AUFNR 20081014
10 Importing IV_PARENT_ITEM_ID Call by reference Type reference (TYPE) POSNR 000000 20081014
11 Importing IV_PARENT_YEAR Call by reference Type reference (TYPE) MJAHR 0000 Year for which levy is to be carried out 20090105
12 Importing IV_TIME Call by reference Type reference (TYPE) ERZET Entry time 20081104
# Exception Resumable Description Created on
1 CIRCLE 20081014
2 CONNECTION_EXISTS 20081014
3 NO_PARENT 20081014
4 SELF_REFERENCE 20081014

Method ADD_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) ERDAT Date on Which Record Was Created 20090406
2 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE 20090406
3 Importing IV_ID Call by reference Type reference (TYPE) AUFNR 20090406
4 Importing IV_ITEM_ID Call by reference Type reference (TYPE) POSNR 000000 20090406
5 Importing IV_TIME Call by reference Type reference (TYPE) ERZET Entry time 20090406
6 Importing 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 Exporting FOUND Call by reference Type reference (TYPE) ABAP_BOOL 20090519
2 Importing IV_NEW_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE Proxy Data Element (Generated) 20090519
3 Importing 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 Importing IS_NODE Call by reference Type reference (TYPE) TY_NODE 20081014
2 Importing IS_REF_NODE Call by reference Type reference (TYPE) TY_NODE 20081014
# Exception Resumable Description Created on
1 CIRCLE 20081014

Method CLEAR_GRAPH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing 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 Importing 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 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE 20081014
3 Importing IV_ID Call by reference Type reference (TYPE) AUFNR 20081014
4 Importing IV_ITEM_ID Call by reference Type reference (TYPE) POSNR 20081014
5 Importing 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 Exporting ET_GRAPH Call by reference Type reference (TYPE) TY_NODE_RELATION_T 20081014
2 Importing IV_AUTH_CHECK Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20090108
# Exception Resumable Description Created on
1 CX_SAPPLCO_STANDARD_MSG_FAULT Standard Message Fault 20090105

Method RECALC_HLEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing 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 Importing IV_DATE Call by reference Type reference (TYPE) ERDAT 20081110
2 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) SAPPLCO_BUS_TRANS_TYPE_CODE Proxy Data Element (Generated) 20081110
3 Importing IV_ID Call by reference Type reference (TYPE) AUFNR 20081110
4 Importing IV_ITEM_ID Call by reference Type reference (TYPE) POSNR 000000 20081110
5 Importing IV_TIME Call by reference Type reference (TYPE) ERZET 20081110
6 Importing 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