SAP ABAP Class CL_FAGL_R_OBJ_CO_SERVICES_SEG (Reorganization Segment: Service Class for CO Objects)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI-GL-REO (Application Component) General Ledger Reorganization
     FAGL_REORGANIZATION_SEG_E (Package) New GL - Segment Reorganization
Properties
Class CL_FAGL_R_OBJ_CO_SERVICES_SEG  
Short Description Reorganization Segment: Service Class for CO Objects    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FAGL_REORGANIZATION_SEG_E   New GL - Segment Reorganization 
Created 20110202   SAP 
Last change 20130531   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)
2 CL_FAGL_R_OBJ_CO_SERVICES_SEG Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no interface implemented.
Friends
Class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GT_RG_PRCTR_BUFFER Static Attribute Private Type reference (TYPE) FAGL_RANGE_T_PRCTR Range Table for Profit Centers 20110209
2 GT_RG_SEGMENT_BUFFER Static Attribute Private Type reference (TYPE) FAGL_RANGE_T_SEGMENT Range Table for Segment 20110209
3 GV_AUFNR_FOR_DERIVE Static Attribute Private Type reference (TYPE) AUFNR Order Number 20110512
Methods
# Method Level Visibility Method type Description Created on
1 APPEND_MESSAGE Static method Public Method Append Message 20110204
2 APPEND_MESSAGE2 Static method Public Method Append Message 2 20110304
3 APPEND_SY_MESSAGE Static method Public Method Append System Message 20110323
4 APPEND_SY_MESSAGE2 Static method Public Method Append System Message 2 20110323
5 CHANGE_SETTLEMENT_RULE Static method Public Method Change Settlement Rule 20110204
6 COPA_IS_ACTIVE Static method Public Method Is CO-PA active and segment enabled 20110204
7 GET_COPA_SEGMENT_FIELD Static method Public Method Get Segment Fieldname from CO-PA 20110218
8 GET_FIELD_RANGE Static method Public Method Get Field Range 20110204
9 GET_OBJECT_LEVEL Static method Public Method Get Object Level 20110302
10 GET_OBJECT_LEVEL_IN_SETTLEMENT Static method Public Method Get the Object Level from within a settlement 20110304
11 GET_OPERATING_CONCERN Static method Public Method Get Operating Concern 20110218
12 GET_RESTRICTIONS_GENERAL Static method Public Method Read General Restrictions 20110202
13 GET_RG_PRCTR_FROM_SEGMENT Static method Public Method Get Profit Center Ranges from Segments 20110209
14 GET_RG_PRCTR_FROM_SUPERIOR Static method Public Method Get Profit Center Ranges from Superior Object 20110222
15 GET_SEGMENT_FROM_COPA Static method Public Method Get w/rederive Segment/Profit Center from CO-PA 20110221
16 GET_SEGMENT_FROM_SETTLEMENT Static method Public Method Get w/rederive Segment/Profit Center from Settlement 20110302
17 REORG_DATE_TO_PERIOD_CONVERT Static method Public Method Determine Period and Fiscal Year from Reorganization Date 20110205
18 ROLLBACK_CHANGEDOC_SEQUENCE Static method Public Method Change Documents: Reset Logical Unit of Work 20110205
19 SET_AUFNR_FOR_DERIVE Static method Public Method Set Order Number for Derivation 20110512
20 SUBTRACT_MONTHS_FROM_DATE Static method Public Method Add Months to Date 20110205
Events
Class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GTY_S_PASEGMENT Public See coding 20110228 BEGIN OF gty_s_pasegment, "Important assignment in PA for segment paobjnr TYPE rkeobjnr, prctr TYPE prctr, segment TYPE fb_segment, END OF gty_s_pasegment
2 GTY_S_PRSEG_COMB Public See coding 20110302 BEGIN OF gty_s_prseg_comb, prctr TYPE prctr, segment TYPE fb_segment, END OF gty_s_prseg_comb
3 GTY_T_ERKRS Public See coding 20110218 gty_t_erkrs TYPE TABLE OF erkrs
4 GTY_T_PASEGMENT Public See coding 20110228 gty_t_pasegment TYPE SORTED TABLE OF gty_s_pasegment WITH UNIQUE KEY paobjnr
5 GTY_T_PRSEG_COMB Public See coding 20110302 gty_t_prseg_comb TYPE standard TABLE OF gty_s_prseg_comb
Method Signatures

Method APPEND_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE Reorganization: Messages 20110204
2 Importing IV_IS_CUSTOMIZABLE Call by reference Type reference (TYPE) ABAP_BOOL 20110324
3 Importing IV_MSGID Call by reference Type reference (TYPE) SYMSGID Message Class 20110204
4 Importing IV_MSGNO Call by reference Type reference (TYPE) SYMSGNO Message Number 20110204
5 Importing IV_MSGTY Call by reference Type reference (TYPE) SYMSGTY Message Type 20110204
6 Importing IV_MSGV1 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110204
7 Importing IV_MSGV2 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110204
8 Importing IV_MSGV3 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110204
9 Importing IV_MSGV4 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110204
10 Importing IV_OBJ_INDEX Call by reference Type reference (TYPE) FAGL_R_OBJ_INDEX Reference to Index of an Object in the Object List 20110204

Method APPEND_MESSAGE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method APPEND_MESSAGE2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE2 Reorganization: Messages 20110304
2 Importing IV_IS_CUSTOMIZABLE Call by reference Type reference (TYPE) ABAP_BOOL 20110324
3 Importing IV_MSGID Call by reference Type reference (TYPE) SYMSGID Message Class 20110304
4 Importing IV_MSGNO Call by reference Type reference (TYPE) SYMSGNO Message Number 20110304
5 Importing IV_MSGTY Call by reference Type reference (TYPE) SYMSGTY Message Type 20110304
6 Importing IV_MSGV1 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110304
7 Importing IV_MSGV2 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110304
8 Importing IV_MSGV3 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110304
9 Importing IV_MSGV4 Call by reference Type reference (TYPE) SYMSGV Message Variable 20110304
10 Importing IV_XIGNORE Call by reference Type reference (TYPE) FAGL_R_XMSG_IGNORE 20110304

Method APPEND_MESSAGE2 on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method APPEND_SY_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE Reorganization: Messages 20110323
2 Importing IV_IS_CUSTOMIZABLE Call by reference Type reference (TYPE) ABAP_BOOL 20110324
3 Importing IV_OBJ_INDEX Call by reference Type reference (TYPE) FAGL_R_OBJ_INDEX Reference to Index of an Object in the Object List 20110323

Method APPEND_SY_MESSAGE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method APPEND_SY_MESSAGE2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE2 Reorganization: Messages 20110323
2 Importing IV_IS_CUSTOMIZABLE Call by reference Type reference (TYPE) ABAP_BOOL 20110324

Method APPEND_SY_MESSAGE2 on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method CHANGE_SETTLEMENT_RULE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE Reorganization: Messages 20110204
2 Exporting EV_ERROR Call by reference Type reference (TYPE) ABAP_BOOL Error occurred? 20110204
3 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110204
4 Importing IV_OBJNR Call by reference Type reference (TYPE) J_OBJNR Object Number 20110204
5 Importing IV_OBJ_INDEX Call by reference Type reference (TYPE) FAGL_R_OBJ_INDEX Reference to Index of an Object in the Object List 20110204
6 Importing IV_OBJ_KEY1 Call by reference Type reference (TYPE) SYMSGV Object Key 1 for Messages 20110204
7 Importing IV_OBJ_KEY2 Call by reference Type reference (TYPE) SYMSGV Object Key 2 for Messages 20110204
8 Importing IV_OBJ_TEXT Call by reference Type reference (TYPE) SYMSGV Text of Object Type for Messages 20110204
9 Importing IV_PRCTR Call by reference Type reference (TYPE) PRCTR Profit Center 20110223
10 Importing IV_REORG_DATE Call by reference Type reference (TYPE) FAGL_R_DATE Reorganization Date 20110204
11 Importing IV_REORG_PERIOD Call by reference Type reference (TYPE) POPER Period 20110204
12 Importing IV_REORG_YEAR Call by reference Type reference (TYPE) GJAHR Fiscal Year 20110204
13 Importing IV_SEGMENT_NEW Call by reference Type reference (TYPE) FB_SEGMENT Segment 20110204
14 Importing IV_UPDATE Call by reference Type reference (TYPE) ABAP_BOOL Update Run 20110204

Method CHANGE_SETTLEMENT_RULE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method COPA_IS_ACTIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_IS_ACTIVE Call by reference Type reference (TYPE) ABAP_BOOL 20110221
2 Exporting EV_SEGMENT_ENABLED Call by reference Type reference (TYPE) ABAP_BOOL 20110221
3 Importing IT_RG_KOKRS Call by reference Type reference (TYPE) FAGL_RANGE_T_KOKRS Range Table for Controlling Area 20110204

Method COPA_IS_ACTIVE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_COPA_SEGMENT_FIELD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FIELDNAME Call by reference Type reference (TYPE) FIELDNAME Field Name 20110218
2 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Operating concern 20110218
# Exception Resumable Description Created on
1 NOT_FOUND 20110218

Method GET_FIELD_RANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RANGE Call by reference Type reference (TYPE) STANDARD TABLE 20110204
2 Importing IT_TRANGE Call by reference Type reference (TYPE) FAGL_R_T_TRANGE Reorg: Table Name and SEL-OPT Table for Each Field Name 20110204
3 Importing IV_FIELDNAME Call by reference Type reference (TYPE) FIELDNAME Field Name 20110204
4 Importing IV_TABNAME Call by reference Type reference (TYPE) TABNAME Table Name 20110204
# Exception Resumable Description Created on
1 NOT_FOUND 20110204

Method GET_OBJECT_LEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LEVEL Call by reference Type reference (TYPE) I Object Level 20110302
2 Importing IO_FW_CALLBACK Call by reference Object reference (TYPE REF TO) IF_FAGL_R_FW_CALLBACK Reorganization: Callback to Framework 20110302
3 Importing IT_RG_SEGMENT Call by reference Type reference (TYPE) FAGL_RANGE_T_SEGMENT Range Table for Segment 20110323
4 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110302
5 Importing IV_OBJ_TYPE_CALLER Call by reference Type reference (TYPE) FAGL_R_OBJ_TYPE Object Type of the calling instance 20120824
6 Importing IV_PRCTR Call by reference Type reference (TYPE) PRCTR Profit Center 20110323
7 Importing IV_SEGMENT Call by reference Type reference (TYPE) FB_SEGMENT Segment for Segmental Reporting 20110323
8 Importing IV_SEGMENT_OLD Call by reference Type reference (TYPE) FB_SEGMENT Segment for Segmental Reporting 20110323
# Exception Resumable Description Created on
1 INCONSISTENCIES Inconsistencies 20110302

Method GET_OBJECT_LEVEL_IN_SETTLEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGE Call by reference Type reference (TYPE) FAGL_R_T_MESSAGE2 Reorganization: Messages (Without Index) 20110325
2 Exporting ET_PASEGMENT Call by reference Type reference (TYPE) CL_FAGL_R_OBJ_CO_SERVICES_SEG=>GTY_T_PASEGMENT 20110304
3 Exporting EV_ERROR_RAISED Call by reference Type reference (TYPE) ABAP_BOOL Error raised 20110325
4 Exporting EV_LEVEL Call by reference Type reference (TYPE) I Object Level 20110304
5 Importing IO_FW_CALLBACK Call by reference Object reference (TYPE REF TO) IF_FAGL_R_FW_CALLBACK Reorganization: Callback to Framework 20110304
6 Importing IT_RG_SEGMENT Call by reference Type reference (TYPE) FAGL_RANGE_T_SEGMENT Range Table for Segment 20110304
7 Importing IV_COOBJNR Call by reference Type reference (TYPE) OBJPO Object number at item level 20110304
8 Importing IV_DATE Call by reference Type reference (TYPE) FAGL_R_DATE Reorganization Date 20110304
9 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110304
10 Importing IV_OBJ_TYPE_CALLER Call by reference Type reference (TYPE) FAGL_R_OBJ_TYPE Object type of calling instance 20120824
11 Importing IV_PRCTR Call by reference Type reference (TYPE) PRCTR Profit Center 20110304
12 Importing IV_PROCESSING_LEVEL Call by reference Type reference (TYPE) I Processsing Level 20110325
13 Importing IV_SEGMENT_OLD Call by reference Type reference (TYPE) FB_SEGMENT Segment for Segmental Reporting 20110304

Method GET_OBJECT_LEVEL_IN_SETTLEMENT on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_OPERATING_CONCERN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ERKRS Call by reference Type reference (TYPE) CL_FAGL_R_OBJ_CO_SERVICES_SEG=>GTY_T_ERKRS CO Area list 20110218
2 Importing IT_RG_KOKRS Call by reference Type reference (TYPE) FAGL_RANGE_T_KOKRS Range Table for Controlling Area 20110218
3 Importing IV_ACTIVE Call by reference Type reference (TYPE) ABAP_BOOL 'X' 20110218

Method GET_OPERATING_CONCERN on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_RESTRICTIONS_GENERAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RG_BUKRS Call by reference Type reference (TYPE) FAGL_RANGE_T_BUKRS Range Table for Company Codes 20110202
2 Exporting ET_RG_KOKRS Call by reference Type reference (TYPE) FAGL_RANGE_T_KOKRS Range Table for Controlling Area 20110202
3 Exporting ET_RG_SEGMENT Call by reference Type reference (TYPE) FAGL_RANGE_T_SEGMENT Range Table for Segment 20110202
4 Importing IT_RESTRICTION_GENERAL Call by reference Type reference (TYPE) FAGL_R_T_TRANGE Reorg: Table Name and SEL-OPT Table for Each Field Name 20110202

Method GET_RESTRICTIONS_GENERAL on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_RG_PRCTR_FROM_SEGMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RG_KOKRS Call by reference Type reference (TYPE) FAGL_RANGE_T_KOKRS Range Table for Controlling Area 20110209
2 Importing IT_RG_SEGMENT Call by reference Type reference (TYPE) FAGL_RANGE_T_SEGMENT Range Table for Segment 20110209
3 Returning RT_RG_PRCTR Value transfer Type reference (TYPE) FAGL_RANGE_T_PRCTR Range Table for Profit Centers 20110209

Method GET_RG_PRCTR_FROM_SEGMENT on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_RG_PRCTR_FROM_SUPERIOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SUP_OBJECT Call by reference Type reference (TYPE) FAGL_R_T_OBJECT_SUP 20110222
2 Importing IV_SUP_OBJ_TYPE Call by reference Type reference (TYPE) FAGL_R_OBJ_TYPE_SUP 20110222
3 Returning RT_RG_PRCTR Value transfer Type reference (TYPE) FAGL_RANGE_T_PRCTR Range Table for Profit Centers 20110222

Method GET_RG_PRCTR_FROM_SUPERIOR on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method GET_SEGMENT_FROM_COPA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PRCTR Call by reference Type reference (TYPE) PRCTR Profit Center 20110221
2 Exporting EV_SEGMENT Call by reference Type reference (TYPE) FB_SEGMENT Segment for Segmental Reporting 20110221
3 Importing IV_DATE Call by reference Type reference (TYPE) FAGL_R_DATE Reorganization Date 20110302
4 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110221
5 Importing IV_PAOBJNR Call by reference Type reference (TYPE) RKEOBJNR Profitability Segment Number (CO-PA) 20110221
6 Importing IV_SEGMENT_VALUE Call by reference Type reference (TYPE) FB_SEGMENT Segment for Segmental Reporting 20110401
7 Importing IV_WITH_DERIVATION Call by reference Type reference (TYPE) ABAP_BOOL Request adding derivation to retrieval 20110302
# Exception Resumable Description Created on
1 ERROR 20110221
2 NOT_FOUND 20110221

Method GET_SEGMENT_FROM_SETTLEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PASEGMENT Call by reference Type reference (TYPE) CL_FAGL_R_OBJ_CO_SERVICES_SEG=>GTY_T_PASEGMENT Profit Center/Segment Info 20110302
2 Importing IV_COOBJNR Call by reference Type reference (TYPE) OBJPO Object number at item level 20110302
3 Importing IV_DATE Call by reference Type reference (TYPE) SY-DATUM 20110302
4 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110302
5 Importing IV_WITH_DERIVATION Call by reference Type reference (TYPE) ABAP_BOOL Add derivation to retrieval 20110302
# Exception Resumable Description Created on
1 ERROR 20110302
2 NOT_FOUND 20110302

Method REORG_DATE_TO_PERIOD_CONVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_REORG_PERIOD Call by reference Type reference (TYPE) POPER Reorganization Period 20110205
2 Exporting EV_REORG_YEAR Call by reference Type reference (TYPE) GJAHR Reorganization Fiscal Year 20110205
3 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS Controlling Area 20110205
4 Importing IV_REORG_DATE Call by reference Type reference (TYPE) FAGL_R_DATE Reorganization Date 20110205

Method REORG_DATE_TO_PERIOD_CONVERT on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method ROLLBACK_CHANGEDOC_SEQUENCE Signature

Method ROLLBACK_CHANGEDOC_SEQUENCE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no parameter.
Method ROLLBACK_CHANGEDOC_SEQUENCE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method SET_AUFNR_FOR_DERIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_AUFNR Call by reference Type reference (TYPE) AUFNR Order Number 20110512

Method SET_AUFNR_FOR_DERIVE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.

Method SUBTRACT_MONTHS_FROM_DATE 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) DATS Old Date 20110205
2 Importing IV_MONTHS Call by reference Type reference (TYPE) FAGL_R_TRVOG_MONTHS Number of Months to Be Deducted 20110205
3 Returning RV_DATE Value transfer Type reference (TYPE) DATS New Date 20110205

Method SUBTRACT_MONTHS_FROM_DATE on class CL_FAGL_R_OBJ_CO_SERVICES_SEG has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 606