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
⤷ 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 | ABAP | 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 | GO_INSTANCE | Static Attribute | Protected | Object reference (TYPE REF TO) | CL_CIAP_FI | Nota fiscal writer with accounting | 20131118 | ||
2 | MC_AWTYP | Constant | Public | Type reference (TYPE) | AWTYP | 'NFWRI' | 20131118 | ||
3 | MC_BUSINESS_TRANS | Constant | Public | Type reference (TYPE) | GLVOR | 'RFBU' | Business Transaction | 20131118 | |
4 | MC_CREDIT | Constant | Public | Type reference (TYPE) | C | 'H' | 20131118 | ||
5 | MC_DEBIT | Constant | Public | Type reference (TYPE) | C | 'S' | 20131118 | ||
6 | MC_GLVOR | Constant | Public | Type reference (TYPE) | GLVOR | 'RFBU' | 20131118 | ||
7 | MC_HEADER_TEXT | Constant | Public | Type reference (TYPE) | BKTXT | 'CIAP Quota auto. FI Post' | Document Header Text | 20131118 | |
8 | MC_KEY_ASSET | Constant | Public | Type reference (TYPE) | BSCHL | '70' | Posting Key | 20131118 | |
9 | MC_KEY_ICMS_PAY | Constant | Public | Type reference (TYPE) | BSCHL | '40' | Posting Key | 20131118 | |
10 | MC_KEY_ICMS_RECOVER | Constant | Public | Type reference (TYPE) | BSCHL | '50' | Posting Key | 20131118 | |
11 | MC_REFERENCE_TRANS | Constant | Public | Type reference (TYPE) | AWTYP | 'CIAP' | Reference Transaction | 20131118 | |
12 | MC_TAX_CODE_NA | Constant | Public | Type reference (TYPE) | MWSKZ | '**' | Tax Code not applicable | 20131118 | |
13 | MS_ACCHD | Instance attribute | Public | Type reference (TYPE) | ACCHD | Interface to Accounting: Header Information | 20131118 | ||
14 | MS_HEADER | Instance attribute | Private | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
15 | MT_ACCCR | Instance attribute | Public | Type reference (TYPE) | ACCCR_T | Accounting interface: Currency information | 20131118 | ||
16 | MT_ACCIT | Instance attribute | Public | Type reference (TYPE) | ACCIT_T | Accounting Interface: Item Information | 20131118 | ||
17 | MT_CUST_ACC | Instance attribute | Private | See coding | NFWACC customizing non taxes | 20131118 | |||
18 | MT_CUST_ACC_TAX | Instance attribute | Private | See coding | NFWACC customizing per tax | 20131118 | |||
19 | MT_ITEM | Instance attribute | Private | Type reference (TYPE) | J_1BNFLIN_TAB | Nota Fiscal items | 20131118 | ||
20 | MT_ITEM_TAX | Instance attribute | Private | Type reference (TYPE) | J_1BNFSTX_TAB | Nota Fiscal taxes | 20131118 | ||
21 | MT_J1BAJ | Instance attribute | Private | See coding | Tax group | 20131118 | |||
22 | MT_RETURN | Instance attribute | Private | See coding | Result of processing | 20131118 | |||
23 | MV_ACCIT_COUNT | Instance attribute | Private | Type reference (TYPE) | I | 0 | Number of accounting lines | 20131118 | |
24 | MV_REF_DOC_NO | Instance attribute | Private | Type reference (TYPE) | XBLNR | Reference Document Number | 20131118 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CHECK_ROUNDING_ERROR | Instance method | Public | Method | Checks for rounding errors in balance | 20131118 |
2 | CREATE_AND_COMMIT_TO_DB | Instance method | Public | Method | Validate and post accounting document | 20131118 |
3 | FILL_FI_ACCOUNT_TABLE | Instance method | Public | Method | Fill the FI Account Table with relevant values | 20131118 |
4 | FILL_FI_HEADER | Instance method | Private | Method | Fill FI document header attributes | 20131118 |
5 | FILL_ITEM | Instance method | Private | Method | Fill internal accounting table with data prepared from NF | 20131118 |
6 | GET_INSTANCE | Static method | Public | Method | Returns class instance (singleton) | 20131118 |
7 | PREPARE_POSTING | 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 | Returning | RV_FI_DOCNUM | Value transfer | Type reference (TYPE) | BELNR_D | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CIAP_AC_DOCUMENT_CREATE | 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 | Exporting | ET_FI_ACCOUNT | Call by reference | Type reference (TYPE) | TTY_FI_ACCOUNT_POST | FI Account table | 20131118 | ||
2 | Importing | IO_QUOTA | Call by reference | Object reference (TYPE REF TO) | CL_CIAP_QUOTA | CIAP class for quotas. | 20131118 | ||
3 | Importing | 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 | Importing | IV_COMPANY_CODE | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131118 | ||
2 | Importing | 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 | Importing | IV_BASE | Call by reference | Type reference (TYPE) | J_1BBASE | 0 | Tax Base Amount in Document Currency | 20131118 | |
2 | Importing | IV_COST_CENTER | Call by reference | Type reference (TYPE) | KOSTL | Cost Center | 20131118 | ||
3 | Importing | IV_DEBCRE_FLAG | Call by reference | Type reference (TYPE) | FLAG | Indicates if it is debit or credit | 20131118 | ||
4 | Importing | IV_FI_ACCOUNT | Call by reference | Type reference (TYPE) | HKONT | Account for debit | 20131118 | ||
5 | Importing | IV_POSTING_KEY | Call by reference | Type reference (TYPE) | BSCHL | Posting Key | 20131118 | ||
6 | Importing | IV_TAX_CODE | Call by reference | Type reference (TYPE) | MWSKZ | Sales Tax Code | 20131118 | ||
7 | Importing | IV_TAX_JUR_CODE | Call by reference | Type reference (TYPE) | TXJCD | Tax Jurisdiction | 20131118 | ||
8 | Importing | IV_TRANSACTION_TYPE | Call by reference | Type reference (TYPE) | RMVCT | Transaction Type | 20131118 | ||
9 | Importing | IV_VALUE | Call by reference | Type reference (TYPE) | WERTV8 | Amount | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CIAP_FI_DOCUMENT_TYPE | 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 | Returning | 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 | Importing | IO_RECORD | Call by reference | Object reference (TYPE REF TO) | CL_CIAP_RECORD | Class for a CIAP record | 20131118 | ||
2 | Importing | IT_FI_ACCOUNT | Call by reference | Type reference (TYPE) | TTY_FI_ACCOUNT_POST | Table of accounts and values | 20131118 | ||
3 | Importing | IV_REFERENCE_ID | Call by reference | Type reference (TYPE) | AWREF | Reference Document Number | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CIAP_FI_DOCUMENT_TYPE | Exception class for missing customizing on view TABW_ALL | 20131118 | |
2 | CX_CIAP_QUOTA_CUSTOMIZING | No customizing maintained for quota | 20131118 |
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in |