SAP ABAP Class CL_HRPADBE_COMPANY (Institution tables: company class)
Hierarchy
☛
SAP_HRCBE (Software Component) Sub component SAP_HRCBE of SAP_HR
⤷
PA-PA-BE (Application Component) Belgium
⤷
PB12 (Package) HR Master Data: Belgium
⤷
⤷
Properties
| Class | CL_HRPADBE_COMPANY | |
| Short Description | Institution tables: company class | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | PB12 | HR Master Data: Belgium |
| Created | 20020930 | SAP |
| Last change | 20110809 | 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_HRPADBE_COMPANY has no interface implemented.
Friends
Class CL_HRPADBE_COMPANY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | C | 1 | New code execution | 20021002 | ||
| 2 | Constant | Private | Type reference (TYPE) | MOLGA | 12 | Country | 20021002 | ||
| 3 | Instance attribute | Private | Type reference (TYPE) | BTRTL | Associated PSA (old design only) | 20021002 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | T5B9A | Company data from old table | 20021002 | |||
| 5 | Instance attribute | Public | Type reference (TYPE) | T5B1S | Company data from new table | 20021002 | |||
| 6 | Instance attribute | Public | Type reference (TYPE) | P_99S_INST | Institution code | 20020930 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | CDATE | Default Date | 20021002 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | P12_EEGR_MOD | Employee grouping modifier | 20060310 | |||
| 9 | Instance attribute | Private | Type reference (TYPE) | SPRSL | Language of T5B9A | 20021002 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | ABRWT | Flag for the new code | 20021002 | |||
| 11 | Instance attribute | Private | Type reference (TYPE) | PERSA | Associated PA (old design only) | 20021002 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | WINWW | Company Address | 20021002 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Appends data to the details' table (used in get_details). | 20021205 | |
| 2 | Instance method | Private | Method | Appends data to the details' table (used in get_details). | 20021002 | |
| 3 | Instance method | Public | Constructor | CONSTRUCTOR | 20021002 | |
| 4 | Instance method | Public | Method | Gets the address of the company in the specified language. | 20021002 | |
| 5 | Instance method | Public | Method | Get info of the Company ID linked to the company | 20110504 | |
| 6 | Instance method | Public | Method | Gets contribution for financing risk groups based on PC | 20030804 | |
| 7 | Instance method | Public | Method | Gets a table with all the registration numbers of a company. | 20021002 | |
| 8 | Instance method | Public | Method | Search the offical language of the company | 20110324 | |
| 9 | Instance method | Public | Method | Table with reg. nr. history for a certain inst. group | 20050509 |
Events
Class CL_HRPADBE_COMPANY has no event.
Types
Class CL_HRPADBE_COMPANY has no local type.
Method Signatures
Method ACTIVE_EMPLOYEES_FSF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ACTIVE_AT30THJUNE | Call by reference | Type reference (TYPE) | RSZE1 | Active persons at june 30th | 20021205 | |||
| 2 | ACTIVE_PERS | Call by reference | Type reference (TYPE) | RSZE2 | Mean number of active persons | 20021205 | |||
| 3 | REF_YEAR | Call by reference | Type reference (TYPE) | RSZAA | Reference year; when missing the date in constructor is used | 20021205 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | For the specified ref.year and comp. gr. no record was found | 20021205 |
Method APPEND_TO_REL_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CHG_DATE | Call by reference | Type reference (TYPE) | CDATE | Date | 20021002 | |||
| 2 | CHG_RELATIONSHIP | Call by reference | Type reference (TYPE) | P12_REL_COMP_INST | Relationships between companies and institutions | 20021002 | |||
| 3 | CHG_REL_TABLE | Call by reference | Type reference (TYPE) | P12_REL_COMP_INST_TABL | The relationship table | 20021002 | |||
| 4 | IMP_INST_GROUP | Call by reference | Type reference (TYPE) | P_99S_INSTGR | Institutional group | 20021002 | |||
| 5 | IMP_INST_ID | Call by reference | Type reference (TYPE) | INSTL | Institution code | 20021002 | |||
| 6 | IMP_REGNO | Call by reference | Type reference (TYPE) | P12_REGNO | Registration number in front of social institutions | 20021002 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | No company defined with this code | 20021002 | ||
| 2 | No institution defined with this code | 20021002 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_COMP_CODE | Call by reference | Type reference (TYPE) | BUKRS | Company code - the instancing basis | 20021002 | |||
| 2 | IMP_DATE | Call by reference | Type reference (TYPE) | CDATE | Date taken as default if no time dep is specified in methods | 20021002 | |||
| 3 | IMP_LANG | Call by reference | Type reference (TYPE) | SPRSL | Language of T5B9A/temporary not to use in new design | 20021002 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Constant 'INSRE' not found in table T511K | 20021002 | ||
| 2 | No company defined with this code | 20021002 | ||
| 3 | No company defined in this language | 20021002 | ||
| 4 | For this company there are no pers. area/subareas defined | 20021002 |
Method GET_ADDRESS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CHG_DATE | Call by reference | Type reference (TYPE) | CDATE | address at this date; not used yet | 20021002 | |||
| 2 | CHG_LANGUAGE | Call by reference | Type reference (TYPE) | SPRSL | language of the address version | 20021002 | |||
| 3 | EXP_ADDRESS | Call by reference | Type reference (TYPE) | ADDR1_VAL | address structure | 20021002 | |||
| 4 | EXP_COMPANY_NAME | Call by reference | Type reference (TYPE) | P12_TEXT60 | Name of the company | 20021002 | |||
| 5 | IMP_OWN | Call by reference | Type reference (TYPE) | BOOLEAN | Set this to true to get own company address not the mother | 20041210 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error when reading the address values | 20021002 | ||
| 2 | International versions are not enabled. | 20021002 | ||
| 3 | The address is not defined at all. | 20021002 | ||
| 4 | The address is not defined in this language. | 20021002 | ||
| 5 | No address for this company in T001 | 20021002 | ||
| 6 | The mapping table is not customized (T5B1V). | 20021002 | ||
| 7 | No nation for this language in table T5B1V | 20021002 |
Method GET_COMPANY_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXP_ADDRESS | Call by reference | Type reference (TYPE) | ADDR1_VAL | Address return structure | 20110504 | |||
| 2 | EXP_COMPANY_ID_NAME | Call by reference | Type reference (TYPE) | CHAR20 | 60 character text long | 20110504 | |||
| 3 | IMP_DATE | Call by reference | Type reference (TYPE) | CDATE | Date | 20110504 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | There is no address linked to the Company ID | 20110504 | ||
| 2 | There is no name that exists for the Company ID | 20110504 | ||
| 3 | The company has not a Company ID assigned | 20110504 |
Method GET_CONTRIB_FOR_RSK_GROUPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BEGPC | Call by reference | Type reference (TYPE) | BEGPC | PC (paritaar comite) work comission | 20030804 | |||
| 2 | DATE | Call by reference | Type reference (TYPE) | CDATE | Validity date | 20030804 | |||
| 3 | NO_CPGR_POS | Call by reference | Type reference (TYPE) | BOOLEAN | 'X' | When not found, reselection of data with no company grouping | 20041007 | ||
| 4 | RSZRI | Call by reference | Type reference (TYPE) | RSZRI | Calculation of contribution to "Riskgroup" | 20030804 | |||
| 5 | RSZTX | Call by reference | Type reference (TYPE) | RSZTX | Contribution rate for riskgroups | 20030804 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Missing entry in t5bv9 | 20041007 |
Method GET_DETAILS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CHG_DATE | Call by reference | Type reference (TYPE) | CDATE | Details/reg.no's at date DATE | 20021002 | |||
| 2 | EXP_DETAILS | Call by reference | Type reference (TYPE) | P12_REL_COMP_INST_TABL | Relationships between a company and institutions | 20021002 | |||
| 3 | IMP_INSTG | Call by reference | Type reference (TYPE) | P_99S_INSTGR | Institutional group | 20060310 | |||
| 4 | IMP_PERSG | Call by reference | Type reference (TYPE) | PERSG | Employee Group | 20060310 | |||
| 5 | IMP_PERSK | Call by reference | Type reference (TYPE) | PERSK | Employee Subgroup | 20060310 | |||
| 6 | IV_PERNR | Call by reference | Type reference (TYPE) | P_PERNR | Personnel Number | 20090810 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | No data was defined for this company | 20021002 | ||
| 2 | No relationships defined with any social institution | 20021002 |
Method GET_OFFICIAL_LANGUAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXP_LANGUAGE | Call by reference | Type reference (TYPE) | LANGU | Language Key | 20110324 | |||
| 2 | IMP_PERNR | Call by reference | Type reference (TYPE) | PERNR_D | Personnel Number | 20110324 |
Method GET_OFFICIAL_LANGUAGE on class CL_HRPADBE_COMPANY has no exception.
Method GET_REGNO_HISTORY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BEGDA | Call by reference | Type reference (TYPE) | BEGDA | '01012005' | Start Date | 20050509 | ||
| 2 | ENDDA | Call by reference | Type reference (TYPE) | ENDDA | '31129999' | End Date | 20050509 | ||
| 3 | IMP_PERSG | Call by reference | Type reference (TYPE) | PERSG | Employee Group | 20060310 | |||
| 4 | IMP_PERSK | Call by reference | Type reference (TYPE) | PERSK | Employee Subgroup | 20060310 | |||
| 5 | INST_GROUP | Call by reference | Type reference (TYPE) | T5F99IG-INSTG | Institutional group | 20050509 | |||
| 6 | TAB_HISTORY | Call by reference | Type reference (TYPE) | PBE04_TAB_REGNO_HISTORY | History of the relationship with a certain institution | 20050509 |
Method GET_REGNO_HISTORY on class CL_HRPADBE_COMPANY has no exception.
History
| Last changed by/on | SAP | 20110809 |
| SAP Release Created in | 500 |