SAP ABAP Class CL_CIAP_FI (Nota fiscal writer with accounting)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
FI-LOC (Application Component) Localization
⤷
INT_TMF_CIAP (Package) TMF Integration Features: CIAP
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | TD_CIAP_FI | Test Double for CL_CIAP_FI | 20131118 |
Properties
| Class | CL_CIAP_FI | |
| Short Description | Nota fiscal writer with accounting | |
| Super Class | ||
| Instantiability of a Class | 1 | Protected |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | INT_TMF_CIAP | TMF Integration Features: CIAP |
| Created | 20130930 | SAP |
| Last change | 20140121 | 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_CIAP_FI has no interface implemented.
Friends
Class CL_CIAP_FI has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Protected | Object reference (TYPE REF TO) | CL_CIAP_FI | Nota fiscal writer with accounting | 20131118 | |||
| 2 | Constant | Public | Type reference (TYPE) | AWTYP | 'NFWRI' | 20131118 | |||
| 3 | Constant | Public | Type reference (TYPE) | GLVOR | 'RFBU' | Business Transaction | 20131118 | ||
| 4 | Constant | Public | Type reference (TYPE) | C | 'H' | 20131118 | |||
| 5 | Constant | Public | Type reference (TYPE) | C | 'S' | 20131118 | |||
| 6 | Constant | Public | Type reference (TYPE) | GLVOR | 'RFBU' | 20131118 | |||
| 7 | Constant | Public | Type reference (TYPE) | BKTXT | 'CIAP Quota auto. FI Post' | Document Header Text | 20131118 | ||
| 8 | Constant | Public | Type reference (TYPE) | BSCHL | '70' | Posting Key | 20131118 | ||
| 9 | Constant | Public | Type reference (TYPE) | BSCHL | '40' | Posting Key | 20131118 | ||
| 10 | Constant | Public | Type reference (TYPE) | BSCHL | '50' | Posting Key | 20131118 | ||
| 11 | Constant | Public | Type reference (TYPE) | AWTYP | 'CIAP' | Reference Transaction | 20131118 | ||
| 12 | Constant | Public | Type reference (TYPE) | MWSKZ | '**' | Tax Code not applicable | 20131118 | ||
| 13 | Instance attribute | Public | Type reference (TYPE) | ACCHD | Interface to Accounting: Header Information | 20131118 | |||
| 14 | Instance attribute | Private | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | |||
| 15 | Instance attribute | Public | Type reference (TYPE) | ACCCR_T | Accounting interface: Currency information | 20131118 | |||
| 16 | Instance attribute | Public | Type reference (TYPE) | ACCIT_T | Accounting Interface: Item Information | 20131118 | |||
| 17 | Instance attribute | Private | See coding | NFWACC customizing non taxes | 20131118 | ||||
| 18 | Instance attribute | Private | See coding | NFWACC customizing per tax | 20131118 | ||||
| 19 | Instance attribute | Private | Type reference (TYPE) | J_1BNFLIN_TAB | Nota Fiscal items | 20131118 | |||
| 20 | Instance attribute | Private | Type reference (TYPE) | J_1BNFSTX_TAB | Nota Fiscal taxes | 20131118 | |||
| 21 | Instance attribute | Private | See coding | Tax group | 20131118 | ||||
| 22 | Instance attribute | Private | See coding | Result of processing | 20131118 | ||||
| 23 | Instance attribute | Private | Type reference (TYPE) | I | 0 | Number of accounting lines | 20131118 | ||
| 24 | Instance attribute | Private | Type reference (TYPE) | XBLNR | Reference Document Number | 20131118 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Checks for rounding errors in balance | 20131118 | |
| 2 | Instance method | Public | Method | Validate and post accounting document | 20131118 | |
| 3 | Instance method | Public | Method | Fill the FI Account Table with relevant values | 20131118 | |
| 4 | Instance method | Private | Method | Fill FI document header attributes | 20131118 | |
| 5 | Instance method | Private | Method | Fill internal accounting table with data prepared from NF | 20131118 | |
| 6 | Static method | Public | Method | Returns class instance (singleton) | 20131118 | |
| 7 | Instance method | Public | Method | Fill internal accounting table with data prepared from NF | 20131118 |
Events
Class CL_CIAP_FI has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TTY_FI_ACCOUNT_POST | Public | See coding | 20131118 | tty_fi_account_post TYPE TABLE OF ty_fi_account_post
|
||
| 2 | TY_FI_ACCOUNT_POST | Public | See coding | 20131118 | BEGIN OF ty_fi_account_post,
account TYPE saknr,
value TYPE wertv8,
debit_credit TYPE shkzg,
posting_key TYPE bschl,
END OF ty_fi_account_post
|
||
| 3 | TY_TAXES | Public | See coding | 20131118 | BEGIN OF ty_taxes,
taxtyp TYPE j_1btaxtyp,
taxgrp TYPE j_1btaxgrp,
base TYPE j_1bbase,
taxval TYPE j_1btaxval,
mwskz TYPE mwskz,
konts TYPE hkont,
konth TYPE hkont,
END OF ty_taxes
|
Method Signatures
Method CHECK_ROUNDING_ERROR Signature
Method CHECK_ROUNDING_ERROR on class CL_CIAP_FI has no parameter.
Method CHECK_ROUNDING_ERROR on class CL_CIAP_FI has no exception.
Method CREATE_AND_COMMIT_TO_DB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_FI_DOCNUM | Value transfer | Type reference (TYPE) | BELNR_D | 20131118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception class for fails calling AC_DOCUMENT_CREATE. | 20131118 |
Method FILL_FI_ACCOUNT_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_FI_ACCOUNT | Call by reference | Type reference (TYPE) | TTY_FI_ACCOUNT_POST | FI Account table | 20131118 | |||
| 2 | IO_QUOTA | Call by reference | Object reference (TYPE REF TO) | CL_CIAP_QUOTA | CIAP class for quotas. | 20131118 | |||
| 3 | IO_RECORD | Call by reference | Object reference (TYPE REF TO) | CL_CIAP_RECORD | Class for a CIAP record | 20131118 |
Method FILL_FI_ACCOUNT_TABLE on class CL_CIAP_FI has no exception.
Method FILL_FI_HEADER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COMPANY_CODE | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131118 | |||
| 2 | IV_REFERENCE_ID | Call by reference | Type reference (TYPE) | AWREF | Reference Document Number | 20131118 |
Method FILL_FI_HEADER on class CL_CIAP_FI has no exception.
Method FILL_ITEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BASE | Call by reference | Type reference (TYPE) | J_1BBASE | 0 | Tax Base Amount in Document Currency | 20131118 | ||
| 2 | IV_COST_CENTER | Call by reference | Type reference (TYPE) | KOSTL | Cost Center | 20131118 | |||
| 3 | IV_DEBCRE_FLAG | Call by reference | Type reference (TYPE) | FLAG | Indicates if it is debit or credit | 20131118 | |||
| 4 | IV_FI_ACCOUNT | Call by reference | Type reference (TYPE) | HKONT | Account for debit | 20131118 | |||
| 5 | IV_POSTING_KEY | Call by reference | Type reference (TYPE) | BSCHL | Posting Key | 20131118 | |||
| 6 | IV_TAX_CODE | Call by reference | Type reference (TYPE) | MWSKZ | Sales Tax Code | 20131118 | |||
| 7 | IV_TAX_JUR_CODE | Call by reference | Type reference (TYPE) | TXJCD | Tax Jurisdiction | 20131118 | |||
| 8 | IV_TRANSACTION_TYPE | Call by reference | Type reference (TYPE) | RMVCT | Transaction Type | 20131118 | |||
| 9 | IV_VALUE | Call by reference | Type reference (TYPE) | WERTV8 | Amount | 20131118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception class for missing customizing on view TABW_ALL | 20131118 |
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_INSTANCE | Value transfer | Object reference (TYPE REF TO) | CL_CIAP_FI | Nota fiscal writer with accounting | 20131118 |
Method GET_INSTANCE on class CL_CIAP_FI has no exception.
Method PREPARE_POSTING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_RECORD | Call by reference | Object reference (TYPE REF TO) | CL_CIAP_RECORD | Class for a CIAP record | 20131118 | |||
| 2 | IT_FI_ACCOUNT | Call by reference | Type reference (TYPE) | TTY_FI_ACCOUNT_POST | Table of accounts and values | 20131118 | |||
| 3 | IV_REFERENCE_ID | Call by reference | Type reference (TYPE) | AWREF | Reference Document Number | 20131118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception class for missing customizing on view TABW_ALL | 20131118 | ||
| 2 | No customizing maintained for quota | 20131118 |
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in |