SAP ABAP Class CL_POSITIONSERVICE_TRQ (Treasury: Quantity Ledger: Position Service)
Hierarchy
☛
EA-FINSERV (Software Component) SAP Enterprise Extension Financial Services
⤷
FIN-FSCM-TRM-TM (Application Component) Transaction Manager
⤷
FTR_QUANTITY_LEDGER (Package) Treasury: Quantity Ledger
⤷
⤷
Properties
| Class | CL_POSITIONSERVICE_TRQ | |
| Short Description | Treasury: Quantity Ledger: Position Service | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | FTR_QUANTITY_LEDGER | Treasury: Quantity Ledger |
| Created | 19990823 | SAP |
| Last change | 20050428 | 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_POSITIONSERVICE_TRQ has no interface implemented.
Friends
Class CL_POSITIONSERVICE_TRQ has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_POSITIONSERVICE_TRQ | Singleton of Position Service | 19990901 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | TRQY_POSITION_OBJ | Position Table for Short Position Check | 19991221 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | TRQY_POSITION_W_STATE | Position Table for Generation of Business Transactions | 19991221 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Checks all Relevant Lots for Short Positions | 20000518 | |
| 2 | Instance method | Private | Method | Checks all Relevant Positions for Short Positions | 20030414 | |
| 3 | Instance method | Public | Method | Checks for Concurrent Long and Short Positions | 19991221 | |
| 4 | Static method | Public | Constructor | Class Constructor | 19990901 | |
| 5 | Static method | Public | Method | Gets the Singleton 'Position Service' | 19990901 | |
| 6 | Instance method | Public | Method | Extends Positions and Business Transactions | 19991221 | |
| 7 | Instance method | Private | Method | Generates a New Position | 19991220 | |
| 8 | Instance method | Public | Method | Gets Exactly One Position for Selector | 19991221 | |
| 9 | Instance method | Public | Method | Gets Lot Quantities at Key Date | 20010308 | |
| 10 | Instance method | Private | Method | Gets next Position for Position Extension | 20000111 | |
| 11 | Instance method | Public | Method | Gets TRQ Positions | 20040405 | |
| 12 | Instance method | Public | Method | Gets TAB_POSITIONS_FOR_COLLECT Attribute | 20030618 | |
| 13 | Instance method | Public | Method | Determines TRL Position Values for TRQ Position | 20040406 | |
| 14 | Instance method | Public | Method | Initializes all Attributes | 20000131 | |
| 15 | Instance method | Public | Method | Gets all Positions for Incomplete Selector | 20000105 | |
| 16 | Instance method | Public | Method | Registers Positions for Short Position Check | 19991221 | |
| 17 | Instance method | Private | Method | Registers Position for Business Transaction Extension | 20000111 | |
| 18 | Instance method | Private | Method | Helps when Generating Positions and Business Transactions | 20000111 |
Events
Class CL_POSITIONSERVICE_TRQ has no event.
Types
Class CL_POSITIONSERVICE_TRQ has no local type.
Method Signatures
Method CHECK_LOTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_MIGRATION_CAT | Call by reference | Type reference (TYPE) | TPM_MIGRATION_CAT | Migrationstyp | 20001219 | |||
| 2 | IM_PROTOCOL | Value transfer | Object reference (TYPE REF TO) | CL_PROTOCOL_HANDLER_TRP | Protokoll-Handler | 20000518 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | negative Quantität ist aufgetreten | 20000524 |
Method CHECK_MIXED_LONG_SHORT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_COMPANY_CODE | Value transfer | Type reference (TYPE) | BUKRS | Buchungskreis | 20030414 | |||
| 2 | IM_MIGRATION_CAT | Value transfer | Type reference (TYPE) | TPM_MIGRATION_CAT | Migrationstyp | 20030414 | |||
| 3 | IM_PROTOCOL | Value transfer | Object reference (TYPE REF TO) | CL_PROTOCOL_HANDLER_TRP | Protokoll-Handler | 20030414 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Sowohl positive als auch negative Bestände vorhanden | 20030414 |
Method CHECK_POSITIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_COMPANY_CODE | Value transfer | Type reference (TYPE) | BUKRS | Buchungskreis | 20030414 | |||
| 2 | IM_MIGRATION_CAT | Value transfer | Type reference (TYPE) | TPM_MIGRATION_CAT | Migrationstyp | 20001215 | |||
| 3 | IM_PROTOCOL | Value transfer | Object reference (TYPE REF TO) | CL_PROTOCOL_HANDLER_TRP | Protokoll-Handler | 20000111 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | negative Quantität ist aufgetreten | 20000524 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_POSITIONSERVICE_TRQ has no parameter.
Method CLASS_CONSTRUCTOR on class CL_POSITIONSERVICE_TRQ has no exception.
Method CLS_GET_POSITIONSERVICE_TRQ Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_POSITIONSERVICE_TRQ | Value transfer | Object reference (TYPE REF TO) | CL_POSITIONSERVICE_TRQ | Singleton des Positionservice | 19990901 |
Method CLS_GET_POSITIONSERVICE_TRQ on class CL_POSITIONSERVICE_TRQ has no exception.
Method COLLECT_BUSTRANS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_TAB_BUSTRANS | Call by reference | Type reference (TYPE) | TRQY_BUSTRANS_OBJ | Tabelle mit ergänzten Geschäftsvorfällen | 20000110 | |||
| 2 | IM_BUSTRANS | Call by reference | Object reference (TYPE REF TO) | CL_BUSINESS_TRANSACTION_TRQ | zu ergänzender Geschäftsvorfall | 20000105 | |||
| 3 | IM_POSITION | Call by reference | Object reference (TYPE REF TO) | IF_POSITION_TRQ | Startposition | 20000105 |
Method COLLECT_BUSTRANS on class CL_POSITIONSERVICE_TRQ has no exception.
Method CREATE_PERSISTENT_POSITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_SELECTOR | Call by reference | Object reference (TYPE REF TO) | CL_FLOW_SELECTOR_DIF | Flowselektor | 19991220 | |||
| 2 | RE_IF_POSITION | Value transfer | Object reference (TYPE REF TO) | IF_POSITION_TRQ | TRQ-Position | 19991220 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | fehlendes Customizing: kein Anlegen möglich | 20000105 | ||
| 2 | Positionserzeugungssperre: kein Anlegen möglich | 20000105 |
Method FIND_SINGLE_POSITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_SELECTOR | Call by reference | Object reference (TYPE REF TO) | CL_FLOW_SELECTOR_DIF | Flowselektor | 19991221 | |||
| 2 | RE_IF_POSITION | Value transfer | Object reference (TYPE REF TO) | IF_POSITION_TRQ | TRQ-Position | 19991221 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | es kann keine Position gefunden bzw. erzeugt werden | 20000105 |
Method GET_LOT_QUANTITY_FOR_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_DATE | Value transfer | Type reference (TYPE) | TPM_POSITION_DATE | Bestandsvaluta | 20010308 | |||
| 2 | IM_FLG_INCLUSIVE | Value transfer | Type reference (TYPE) | XFELD | 'X' | Berechnung inklusive/exklusive des Stichtags | 20010308 | ||
| 3 | IM_TAB_POSITIONS | Value transfer | Type reference (TYPE) | TRQY_POSITION_OBJ | Positionstabelle | 20010308 | |||
| 4 | RE_TAB_LOT_QUANTITY | Value transfer | Type reference (TYPE) | TRQY_LOT_W_QUANTITY | Tabelle mit Lots und Quantitäten | 20010308 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler ist aufgetreten | 20010308 |
Method GET_NEXT_POSITION_FOR_COLLECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_POSITION | Value transfer | Object reference (TYPE REF TO) | IF_POSITION_TRQ | nächste Position | 20000111 |
Method GET_NEXT_POSITION_FOR_COLLECT on class CL_POSITIONSERVICE_TRQ has no exception.
Method GET_POSITIONS_BY_DIFF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_RANGES | Call by reference | Type reference (TYPE) | DIFS_SELECTION_RANGES | Ranges über Differenzierungswerte für DB-Selektion | 20040405 | |||
| 2 | RE_TAB_POSITION | Value transfer | Type reference (TYPE) | TRQY_POSITION_OBJ | Treasury: Tabelle mit Mengenbuchbeständen (Objekte) | 20040405 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler ist aufgetreten | 20040405 |
Method GET_TAB_POSITIONS_FOR_COLLECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | TRQY_POSITION_W_STATE | Zu verarbeitende Positionen | 20030618 |
Method GET_TAB_POSITIONS_FOR_COLLECT on class CL_POSITIONSERVICE_TRQ has no exception.
Method GET_VALUES_FOR_POSITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_AMORT_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Amorized Cost Betrag | 20040505 | |||
| 2 | EX_AMORT_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Währung des Amorized Cost Betrags | 20040505 | |||
| 3 | EX_AMORT_DATE | Value transfer | Type reference (TYPE) | TPM_POSITION_DATE | Datum letzte Änderung | 20040505 | |||
| 4 | EX_AMORT_VAL_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Amorized Cost Betrag in Bewertungswährung | 20050418 | |||
| 5 | EX_AMORT_VAL_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Bewertungswährung | 20050418 | |||
| 6 | EX_AQUI_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Betrag in Bewertungswährung | 20040406 | |||
| 7 | EX_AQUI_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Bewertungswährung | 20040406 | |||
| 8 | EX_AQUI_VAL_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Anschaffungswert in Bewertungswährung | 20050418 | |||
| 9 | EX_AQUI_VAL_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Bewertungswährung | 20050418 | |||
| 10 | EX_BOOK_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Betrag in Bewertungswährung | 20040406 | |||
| 11 | EX_BOOK_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Bewertungswährung | 20040406 | |||
| 12 | EX_BOOK_VAL_AMT | Value transfer | Type reference (TYPE) | TPM_VALUATION_AMT | Buchwert in Bewertungswährung | 20050418 | |||
| 13 | EX_BOOK_VAL_CURR | Value transfer | Type reference (TYPE) | TPM_VALUATION_CURR | Bewertungswährung | 20050418 | |||
| 14 | EX_NOMINAL_AMT | Value transfer | Type reference (TYPE) | TPM_NOMINAL_AMT | Nominalbetrag | 20040406 | |||
| 15 | EX_NOMINAL_CURR | Value transfer | Type reference (TYPE) | TPM_NOMINAL_CURR | Währung des Nominals | 20040406 | |||
| 16 | EX_NOMINAL_ORG_AMT | Value transfer | Type reference (TYPE) | TPM_NOMINAL_ORG_AMT | Ursprünglicher Nominalbetrag | 20041112 | |||
| 17 | EX_UNITS | Value transfer | Type reference (TYPE) | TPM_UNITS | Stücke | 20040406 | |||
| 18 | IM_INCL_DELETABLE | Value transfer | Type reference (TYPE) | TPM_INCL_SIGN | '1' | '1' =incl (mit Plansätzen), '2' =excl (ohne Plansätze) | 20040406 | ||
| 19 | IM_POSITION | Call by reference | Object reference (TYPE REF TO) | IF_POSITION_TRQ | Treasury: Mengenbuchbestand | 20040406 | |||
| 20 | IM_POSITION_DATE | Value transfer | Type reference (TYPE) | TPM_POSITION_DATE | Bestandsvaluta | 20040406 | |||
| 21 | IM_VAL_AREA | Value transfer | Type reference (TYPE) | TPM_VAL_AREA | '001' | Bewertungsbereich | 20040406 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler ist aufgetreten | 20040406 |
Method INITIALIZE Signature
Method INITIALIZE on class CL_POSITIONSERVICE_TRQ has no parameter.
Method INITIALIZE on class CL_POSITIONSERVICE_TRQ has no exception.
Method READ_POSITIONS_BY_SELECTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_SELECTOR | Call by reference | Object reference (TYPE REF TO) | CL_FLOW_SELECTOR_DIF | Flowselektor | 20000105 | |||
| 2 | RE_TAB_POSITIONS | Value transfer | Type reference (TYPE) | TRQY_POSITION_OBJ | Tabelle mit Positionsobjekten | 20000105 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | keine Position gefunden | 20000105 | ||
| 2 | Flowselektor initial | 20000105 |
Method REGISTER_POSITIONS_FOR_CHECK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_DATE | Call by reference | Type reference (TYPE) | TPM_POSITION_DATE | Datum, ab dem der Check laufen soll | 19991222 | |||
| 2 | IM_TAB_FLOWGROUPS | Call by reference | Type reference (TYPE) | TRQY_FLOWGROUP_OBJ | Tabelle mit Flowgroups | 19991221 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Registrierungsdatum ist initial | 20000105 |
Method REGISTER_POSITION_FOR_COLLECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_POSITION | Call by reference | Object reference (TYPE REF TO) | IF_POSITION_TRQ | einzelne Position | 20000111 | |||
| 2 | IM_TAB_POSITIONS | Call by reference | Type reference (TYPE) | TRQY_POSITION_OBJN | Tabelle mit Positionen | 20000111 |
Method REGISTER_POSITION_FOR_COLLECT on class CL_POSITIONSERVICE_TRQ has no exception.
Method SUPPLEMENT_POSITIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_POSITION | Call by reference | Object reference (TYPE REF TO) | IF_POSITION_TRQ | Ausgangsposition | 20000111 |
Method SUPPLEMENT_POSITIONS on class CL_POSITIONSERVICE_TRQ has no exception.
History
| Last changed by/on | SAP | 20050428 |
| SAP Release Created in |