SAP ABAP Class CL_ACT_DISTRIBUTION_CO (Distribution of Activity Differences to Receiver Groups)
Hierarchy
☛
EA-FIN (Software Component) EA-FIN
⤷
CO-OM-ACT (Application Component) Activity Types
⤷
CO_OM_ACT (Package) Enhancements for Activity Allocation
⤷
⤷
Properties
| Class | CL_ACT_DISTRIBUTION_CO | |
| Short Description | Distribution of Activity Differences to Receiver Groups | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CO_OM_ACT | Enhancements for Activity Allocation |
| Created | 20000627 | SAP |
| Last change | 20110908 | 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_ACT_DISTRIBUTION_CO has no interface implemented.
Friends
Class CL_ACT_DISTRIBUTION_CO has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | SYTABIX | 250 | Index of Internal Tables | 20080729 | ||
| 2 | Constant | Private | Type reference (TYPE) | CO_WRTTP | '04' | Value Type | 20000718 | ||
| 3 | Constant | Private | Type reference (TYPE) | AWTYP | 'KADO' | Reference Transaction | 20000719 | ||
| 4 | Constant | Private | Type reference (TYPE) | J_OBART | 'OR' | Object Type | 20020729 | ||
| 5 | Constant | Private | Type reference (TYPE) | CO_VORGANG | 'RKL' | CO Business Transaction | 20000719 | ||
| 6 | Instance attribute | Public | Type reference (TYPE) | CO_BELNR | Document Number | 20001017 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | DATAB | Start Date for Distribution Run | 20000627 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | DATBI | End Date for Distribution Run | 20000627 | |||
| 9 | Instance attribute | Public | Type reference (TYPE) | ACT_DISTRIBUTION_T | Transfer table Distribution Activity Differences | 20000627 | |||
| 10 | Instance attribute | Public | Type reference (TYPE) | BAPIRET2_T | Return Parameter Table | 20001023 | |||
| 11 | Instance attribute | Public | Type reference (TYPE) | GJAHR | Fiscal Year | 20000627 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | INFO_STRUC | Detail Parameters | 20000718 | |||
| 13 | Instance attribute | Private | Type reference (TYPE) | IONRA | General Object Number and Object Keys | 20080729 | |||
| 14 | Instance attribute | Public | Type reference (TYPE) | J_OBJNR | Sender of Activity Allocations | 20000627 | |||
| 15 | Instance attribute | Public | Type reference (TYPE) | VERSN | Version | 20000627 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Include new entry in list for CO document | 20080729 | |
| 2 | Instance method | Private | Method | Check Whether Update Possible | 20080729 | |
| 3 | Instance method | Private | Method | Check Whether Update Possible | 20080729 | |
| 4 | Instance method | Public | Constructor | Constructor | 20000627 | |
| 5 | Instance method | Private | Method | Unit of Measure Conversion if Necessary | 20020729 | |
| 6 | Instance method | Public | Method | Provides Default Distribution | 20000627 | |
| 7 | Instance method | Public | Method | Provides Default Time Interval | 20000627 | |
| 8 | Instance method | Private | Method | Inclusion of a CO Line Item in Proposed Distribution | 20020729 | |
| 9 | Instance method | Private | Method | Update of an Individual CO Document | 20080729 | |
| 10 | Instance method | Private | Method | Post CO Document(s) | 20080729 | |
| 11 | Instance method | Private | Method | Check Whether Update Possible for Individual CO Document | 20080729 | |
| 12 | Instance method | Public | Method | Posts an Activity Distribution | 20000627 | |
| 13 | Instance method | Private | Method | Quantity A - Quantity B | 20020729 | |
| 14 | Instance method | Private | Method | Add Quantities | 20020729 |
Events
Class CL_ACT_DISTRIBUTION_CO has no event.
Types
Class CL_ACT_DISTRIBUTION_CO has no local type.
Method Signatures
Method ADD_ITEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_DOC_ITEM | Call by reference | Type reference (TYPE) | BAPIAAITM_T | Line items: activity allocation - BAPI's actual postings | 20080729 | |||
| 2 | IS_AT_DUV | Value transfer | Type reference (TYPE) | ACT_DISTRIBUTION_S | Übergabestruktur Verteilung Leistungsdifferenzen | 20080729 | |||
| 3 | IS_DOC_ITEM_TEMP | Value transfer | Type reference (TYPE) | BAPIAAITM | Line items: activity allocation - BAPI's actual postings | 20080729 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler | 20080729 |
Method CHECK_CO_DOCUMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_DOC_ITEM_ALL | Call by reference | Type reference (TYPE) | BAPIAAITM_T | Line items: activity allocation - BAPI's actual postings | 20080729 | |||
| 2 | IS_DOC_HEADER | Value transfer | Type reference (TYPE) | BAPIDOCHDRP | Document header: post act. alloc. - BAPI's actual postings | 20080729 | |||
| 3 | IS_DOC_ITEM_TEMP | Value transfer | Type reference (TYPE) | BAPIAAITM | Line items: activity allocation - BAPI's actual postings | 20080729 | |||
| 4 | IT_AT_DUV | Value transfer | Type reference (TYPE) | ACT_DISTRIBUTION_T | Übergabestruktur Verteilung Leistungsdifferenzen | 20080729 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler | 20080729 |
Method CHECK_CO_DOCUMENT_SINGLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_DOC_HEADER | Value transfer | Type reference (TYPE) | BAPIDOCHDRP | Document header: post act. alloc. - BAPI's actual postings | 20080729 | |||
| 2 | IT_DOC_ITEM | Value transfer | Type reference (TYPE) | BAPIAAITM_T | Line items: activity allocation - BAPI's actual postings | 20080729 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler | 20080729 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FYEAR | Call by reference | Type reference (TYPE) | GJAHR | Geschäftsjahr | 20000712 | |||
| 2 | I_SENDER | Call by reference | Type reference (TYPE) | J_OBJNR | Objektnummer | 20000712 | |||
| 3 | I_VERSN | Call by reference | Type reference (TYPE) | VERSN | Version | 20000712 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Objekt nicht gefunden | 20000627 | ||
| 2 | Nur Kostenstelle/Leistungsart oder Geschäftsprozess erlaubt | 20000718 |
Method CONVERT_UNIT_OF_QTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_QUANTITY_IN | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 2 | I_UNIT_IN | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 3 | I_UNIT_OUT | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 4 | R_QUANTITY_OUT | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 |
Method CONVERT_UNIT_OF_QTY on class CL_ACT_DISTRIBUTION_CO has no exception.
Method GET_DEFAULT_DISTRIBUTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATE_FROM | Call by reference | Type reference (TYPE) | DATAB | Datum gültig ab | 20000627 | |||
| 2 | I_DATE_TO | Call by reference | Type reference (TYPE) | DATBI | Datum gültig bis | 20000627 | |||
| 3 | I_QUANTITY | Call by reference | Type reference (TYPE) | MEGXXX | Menge gesamt | 20000627 | |||
| 4 | I_UNIT | Call by reference | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20000627 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kein gültiger Empfänger gefunden | 20000627 | ||
| 2 | Fehler bei der Mengenumrechnung | 20000719 | ||
| 3 | Zeitinterval liegt nicht im gewählten Geschäftsjahr. | 20000718 |
Method GET_DEFAULT_TIME_INTERVALL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_DATE_FROM | Call by reference | Type reference (TYPE) | DATAB | Datum gültig ab | 20000627 | |||
| 2 | E_DATE_TO | Call by reference | Type reference (TYPE) | DATBI | Datum gültig bis | 20000627 | |||
| 3 | I_DATE_TO | Call by reference | Type reference (TYPE) | DATBI | Datum gültig bis | 20000718 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Vorschlagsdatum liegt nicht im vorgesehenen Geschäftsjahr | 20000718 |
Method INCLUDE_CO_LINE_ITEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_DISTRIBUTION | Call by reference | Type reference (TYPE) | ACT_DISTRIBUTION_T | Übergabetabelle Verteilung Leistungsdifferenzen | 20020729 | |||
| 2 | C_POSNR | Call by reference | Type reference (TYPE) | POSNR_DIST | Laufende Nummer für die Verteilung auf Kontierungsobjekte | 20020729 | |||
| 3 | C_TOTAL_QTY | Call by reference | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 4 | C_UNIT_TOT_QTY | Call by reference | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 5 | IS_COVP | Value transfer | Type reference (TYPE) | COVP | Generierte Tabelle zum View COVP | 20020729 |
Method INCLUDE_CO_LINE_ITEM on class CL_ACT_DISTRIBUTION_CO has no exception.
Method MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ID_ID | Value transfer | Type reference (TYPE) | SYMSGID | 'C+' | Nachrichten, Nachrichtenklasse | 20080729 | ||
| 2 | ID_MESSAGE_V1 | Value transfer | Type reference (TYPE) | SYMSGV | Nachrichten, Nachrichtenvariable | 20080729 | |||
| 3 | ID_MESSAGE_V2 | Value transfer | Type reference (TYPE) | SYMSGV | Nachrichten, Nachrichtenvariable | 20080729 | |||
| 4 | ID_MESSAGE_V3 | Value transfer | Type reference (TYPE) | SYMSGV | Nachrichten, Nachrichtenvariable | 20080729 | |||
| 5 | ID_MESSAGE_V4 | Value transfer | Type reference (TYPE) | SYMSGV | Nachrichten, Nachrichtenvariable | 20080729 | |||
| 6 | ID_NUMBER | Value transfer | Type reference (TYPE) | SYMSGNO | '099' | Nachrichten, Nachrichtennummer | 20080729 | ||
| 7 | ID_TYPE | Value transfer | Type reference (TYPE) | BAPI_MTYPE | 'E' | Meldungstyp: S Success, E Error, W Warning, I Info, A Abort | 20080729 |
Method MESSAGE on class CL_ACT_DISTRIBUTION_CO has no exception.
Method POST_CO_DOCUMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_DOC_HEADER | Value transfer | Type reference (TYPE) | BAPIDOCHDRP | Document Header: Post Act. Alloc. - BAPI's Actual Postings | 20080729 | |||
| 2 | IT_DOC_ITEM_ALL | Value transfer | Type reference (TYPE) | BAPIAAITM_T | Line items: activity allocation - BAPI's actual postings | 20080729 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler | 20080729 |
Method POST_CO_DOCUMENT_SINGLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_DOC_HEADER | Value transfer | Type reference (TYPE) | BAPIDOCHDRP | Document header: post act. alloc. - BAPI's actual postings | 20080729 | |||
| 2 | IT_DOC_ITEM | Value transfer | Type reference (TYPE) | BAPIAAITM_T | Line items: activity allocation - BAPI's actual postings | 20080729 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler | 20080729 |
Method POST_DISTRIBUTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_CKMLDUVACT_DOC_NO | Value transfer | Type reference (TYPE) | CKMLDUV_BELNR | Belegnummer einer Leistungserfassung zur Verteilung | 20020308 | |||
| 2 | I_CKMLDUVACT_YEAR | Value transfer | Type reference (TYPE) | GJAHR | Geschäftsjahr | 20020308 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler beim Erzeugen der Buchung | 20000627 |
Method SUBTRACT_QTY_B_FROM_A Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_QTY_A | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 2 | I_QTY_B | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 3 | I_UNIT_A | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 4 | I_UNIT_B | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 5 | I_UNIT_SUM | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 6 | R_SUM | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 |
Method SUBTRACT_QTY_B_FROM_A on class CL_ACT_DISTRIBUTION_CO has no exception.
Method SUM_UP_QTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_QTY_1 | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 2 | I_QTY_2 | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 | |||
| 3 | I_UNIT_1 | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 4 | I_UNIT_2 | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 5 | I_UNIT_SUM | Value transfer | Type reference (TYPE) | MEINH | Mengeneinheit für Anzeige | 20020729 | |||
| 6 | R_SUM | Value transfer | Type reference (TYPE) | MEGXXX | Menge gesamt | 20020729 |
Method SUM_UP_QTY on class CL_ACT_DISTRIBUTION_CO has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 46C |