SAP ABAP Class ITMF_CL_NF_ACCOUNTING (Nota fiscal writer with accounting)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
FI-LOC (Application Component) Localization
⤷
INT_TMF_NF_ACCT (Package) TMF Integration Features: NF with Accounting Switched Pack
⤷
⤷
Properties
| Class | ITMF_CL_NF_ACCOUNTING | |
| Short Description | Nota fiscal writer with accounting | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | INT_TMF_NF_ACCT | TMF Integration Features: NF with Accounting Switched Pack |
| Created | 20130730 | SAP |
| Last change | 20131127 | 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 ITMF_CL_NF_ACCOUNTING has no interface implemented.
Friends
Class ITMF_CL_NF_ACCOUNTING has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | AWTYP | 'NFWRI' | Reference Transaction | 20130902 | ||
| 2 | Constant | Private | Type reference (TYPE) | SHKZG | 'H' | Debit/Credit Indicator | 20130902 | ||
| 3 | Constant | Private | Type reference (TYPE) | SHKZG | 'S' | Debit/Credit Indicator | 20130902 | ||
| 4 | Constant | Private | Type reference (TYPE) | GLVOR | 'RFBU' | Business Transaction | 20130902 | ||
| 5 | Instance attribute | Private | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20130902 | |||
| 6 | Instance attribute | Public | Type reference (TYPE) | ACCCR_T | Accounting interface: Currency information | 20130902 | |||
| 7 | Instance attribute | Public | Type reference (TYPE) | ACCHD_T | Interface to Accounting: Header Information | 20130902 | |||
| 8 | Instance attribute | Public | Type reference (TYPE) | ACCIT_T | Accounting Interface: Item Information | 20130902 | |||
| 9 | Instance attribute | Private | See coding | NFWACC customizing non taxes | 20130902 | ||||
| 10 | Instance attribute | Private | See coding | NFWACC customizing per tax | 20130902 | ||||
| 11 | Instance attribute | Private | Type reference (TYPE) | J_1BNFLIN_TAB | Nota Fiscal items | 20130902 | |||
| 12 | Instance attribute | Private | See coding | Nota Fiscal items values add | 20130902 | ||||
| 13 | Instance attribute | Private | Type reference (TYPE) | J_1BNFSTX_TAB | Nota Fiscal taxes | 20130902 | |||
| 14 | Instance attribute | Private | See coding | Tax group | 20130902 | ||||
| 15 | Instance attribute | Private | See coding | Result of processing | 20130902 | ||||
| 16 | Instance attribute | Private | Type reference (TYPE) | I | 0 | Number of accounting lines | 20130902 | ||
| 17 | Instance attribute | Private | Type reference (TYPE) | XBLNR | Reference Document Number | 20130902 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Add a message on message container | 20130902 | |
| 2 | Instance method | Private | Method | Add the system message on message container | 20130902 | |
| 3 | Instance method | Private | Method | Check if materials aren't stock control/valuation | 20130902 | |
| 4 | Instance method | Public | Constructor | CONSTRUCTOR | 20130902 | |
| 5 | Instance method | Public | Method | Validate and display a dialog box with results of simulation | 20130902 | |
| 6 | Instance method | Private | Method | Fill internal accounting table with data prepared from NF | 20130902 | |
| 7 | Static method | Public | Method | Check if NF is accounting related | 20130902 | |
| 8 | Static method | Public | Method | Check if NF is accounting related (dynpro source tables) | 20130902 | |
| 9 | Instance method | Private | Method | Load accounting customizing to internal container | 20130902 | |
| 10 | Instance method | Public | Method | Load NF data to instance from NF structures | 20130902 | |
| 11 | Instance method | Public | Method | Load NF data to instance from database | 20130902 | |
| 12 | Instance method | Public | Method | Load NF data to instance from display structures | 20130902 | |
| 13 | Instance method | Private | Method | Lock the NF for saving | 20130902 | |
| 14 | Instance method | Public | Method | Validate and post accounting document | 20130902 | |
| 15 | Instance method | Private | Method | Fill internal accounting table with data prepared from NF | 20130902 | |
| 16 | Instance method | Public | Method | Read accounting customizing for the item/tax | 20130902 | |
| 17 | Instance method | Public | Method | Reversal of an accounting document | 20130902 | |
| 18 | Instance method | Private | Method | Unlock NF | 20130902 | |
| 19 | Instance method | Public | Method | Validate if nota fiscal can be posted | 20130902 |
Events
Class ITMF_CL_NF_ACCOUNTING has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_TAXES | Private | See coding | 20130902 | 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 ADD_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ID | Call by reference | Type reference (TYPE) | SYMSGID | Object ID of Business Event Offered | 20130902 | |||
| 2 | IV_MESSAGE | Call by reference | Type reference (TYPE) | BAPI_MSG | Message Line for CAD Dialog Interface | 20130902 | |||
| 3 | IV_MESSAGE_V1 | Call by reference | Type reference (TYPE) | ANY | Message Variable | 20130902 | |||
| 4 | IV_MESSAGE_V2 | Call by reference | Type reference (TYPE) | ANY | Message Variable | 20130902 | |||
| 5 | IV_MESSAGE_V3 | Call by reference | Type reference (TYPE) | ANY | Message Variable | 20130902 | |||
| 6 | IV_MESSAGE_V4 | Call by reference | Type reference (TYPE) | ANY | Message Variable | 20130902 | |||
| 7 | IV_NUMBER | Call by reference | Type reference (TYPE) | ANY | Message Number | 20130902 | |||
| 8 | IV_TYPE | Call by reference | Type reference (TYPE) | BAPI_MTYPE | Message type: S Success, E Error, W Warning, I Info, A Abort | 20130902 |
Method ADD_MESSAGE on class ITMF_CL_NF_ACCOUNTING has no exception.
Method ADD_SYS_MESSAGE Signature
Method ADD_SYS_MESSAGE on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method ADD_SYS_MESSAGE on class ITMF_CL_NF_ACCOUNTING has no exception.
Method CHECK_MATERIAL_ALLOWED Signature
Method CHECK_MATERIAL_ALLOWED on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method CHECK_MATERIAL_ALLOWED on class ITMF_CL_NF_ACCOUNTING has no exception.
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method CONSTRUCTOR on class ITMF_CL_NF_ACCOUNTING has no exception.
Method DISPLAY_SIMULATION Signature
Method DISPLAY_SIMULATION on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method DISPLAY_SIMULATION on class ITMF_CL_NF_ACCOUNTING has no exception.
Method FILL_ITEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_ITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Nota Fiscal line items | 20130902 | |||
| 2 | IV_BASE | Call by reference | Type reference (TYPE) | J_1BBASE | 0 | Tax Base Amount in Document Currency | 20130902 | ||
| 3 | IV_CREDIT_ACC | Call by reference | Type reference (TYPE) | HKONT | Account for credit | 20130902 | |||
| 4 | IV_DEBIT_ACC | Call by reference | Type reference (TYPE) | HKONT | Account for debit | 20130902 | |||
| 5 | IV_MWSKZ | Call by reference | Type reference (TYPE) | MWSKZ | '' | Sales Tax Code | 20130902 | ||
| 6 | IV_TXJCD | Call by reference | Type reference (TYPE) | TXJCD | '' | Tax Jurisdiction | 20130902 | ||
| 7 | IV_VALUE | Call by reference | Type reference (TYPE) | WERTV8 | 8(15)-character value field with 2 decimal places | 20130902 |
Method FILL_ITEM on class ITMF_CL_NF_ACCOUNTING has no exception.
Method IS_VALID_FOR_ACCOUNTING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALID | Value transfer | Type reference (TYPE) | FLAG | General Flag | 20130902 | |||
| 2 | IS_HEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20130902 | |||
| 3 | IT_ITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Table of Nota Fiscal Items (J_1BNFLIN) | 20130902 | |||
| 4 | IT_ITEM_TAX | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20130902 |
Method IS_VALID_FOR_ACCOUNTING on class ITMF_CL_NF_ACCOUNTING has no exception.
Method IS_VALID_FOR_ACCOUNTING_DYN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALID | Value transfer | Type reference (TYPE) | FLAG | Valid for accounting | 20130902 | |||
| 2 | IS_HEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20130902 | |||
| 3 | IT_ITEM | Call by reference | Type reference (TYPE) | ITMF_T_J_1BNFLIN | Table of Nota Fiscal Items (J_1BNFLIN) | 20130902 | |||
| 4 | IT_ITEM_TAX | Call by reference | Type reference (TYPE) | ITMF_T_J_1BDYSTX | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20130902 | |||
| 5 | IV_ONLY_NOT_POSTED | Call by reference | Type reference (TYPE) | FLAG | ABAP_FALSE | Check Already posted | 20130902 |
Method IS_VALID_FOR_ACCOUNTING_DYN on class ITMF_CL_NF_ACCOUNTING has no exception.
Method LOAD_CUSTOMIZING Signature
Method LOAD_CUSTOMIZING on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method LOAD_CUSTOMIZING on class ITMF_CL_NF_ACCOUNTING has no exception.
Method LOAD_NF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_HEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20130902 | |||
| 2 | IT_ITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Table of Nota Fiscal Items (J_1BNFLIN) | 20130902 | |||
| 3 | IT_ITEM_TAX | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20130902 | |||
| 4 | IV_NEW_DOCNUM | Call by reference | Type reference (TYPE) | J_1BDOCNUM | New document number | 20130902 |
Method LOAD_NF on class ITMF_CL_NF_ACCOUNTING has no exception.
Method LOAD_NF_FROM_DB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DOCNUM | Call by reference | Type reference (TYPE) | J_1BDOCNUM | Document Number | 20130902 |
Method LOAD_NF_FROM_DB on class ITMF_CL_NF_ACCOUNTING has no exception.
Method LOAD_NF_FROM_DISPLAY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_HEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20130902 | |||
| 2 | IT_ITEM | Call by reference | Type reference (TYPE) | ITMF_T_J_1BNFLIN | Table of Nota Fiscal Items (J_1BNFLIN) | 20130902 | |||
| 3 | IT_ITEM_TAX | Call by reference | Type reference (TYPE) | ITMF_T_J_1BDYSTX | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20130902 |
Method LOAD_NF_FROM_DISPLAY on class ITMF_CL_NF_ACCOUNTING has no exception.
Method LOCK_NF Signature
Method LOCK_NF on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method LOCK_NF on class ITMF_CL_NF_ACCOUNTING has no exception.
Method POST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RETURN | Call by reference | Type reference (TYPE) | BAPIRET2_T | Return parameter table | 20130902 | |||
| 2 | IV_COMMIT | Call by reference | Type reference (TYPE) | FLAG | ABAP_FALSE | Trigger commit after posting | 20130902 | ||
| 3 | IV_LOCK | Call by reference | Type reference (TYPE) | FLAG | ABAP_FALSE | Handle lock of NF document | 20130902 | ||
| 4 | IV_UPDATE_REFKEY | Call by reference | Type reference (TYPE) | FLAG | ABAP_FALSE | Update references on NF tables | 20130902 |
Method POST on class ITMF_CL_NF_ACCOUNTING has no exception.
Method PREPARE_POSTING Signature
Method PREPARE_POSTING on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method PREPARE_POSTING on class ITMF_CL_NF_ACCOUNTING has no exception.
Method READ_CUSTOMIZING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_CUST_ACC | Call by reference | Type reference (TYPE) | ITMF_D_NFACCT | Nota fiscal writer configurable accounts | 20130902 | |||
| 2 | CS_CUST_ACC_TAX | Call by reference | Type reference (TYPE) | ITMF_D_NFACCTTAX | Nota fiscal writer configurable accounts for taxes | 20130902 | |||
| 3 | IV_BRANCH | Call by reference | Type reference (TYPE) | J_1BBRANC_ | Business Place | 20130902 | |||
| 4 | IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20130902 | |||
| 5 | IV_ITMTYPE | Call by reference | Type reference (TYPE) | J_1BITMTYP | Nota Fiscal Item Type | 20130902 | |||
| 6 | IV_MATUSE | Call by reference | Type reference (TYPE) | J_1BMATUSE | Usage of the material | 20130902 | |||
| 7 | IV_NFTYPE | Call by reference | Type reference (TYPE) | J_1BNFTYPE | Nota Fiscal Type | 20130902 | |||
| 8 | IV_TAXTYP | Call by reference | Type reference (TYPE) | J_1BTAXTYP | Tax Type | 20130902 |
Method READ_CUSTOMIZING on class ITMF_CL_NF_ACCOUNTING has no exception.
Method REVERSAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RETURN | Call by reference | Type reference (TYPE) | BAPIRET2_T | Return parameter table | 20130902 | |||
| 2 | IV_COMMIT | Call by reference | Type reference (TYPE) | FLAG | Commit after reversal | 20130902 | |||
| 3 | IV_LOCK | Call by reference | Type reference (TYPE) | FLAG | Lock NF document | 20130902 | |||
| 4 | IV_TEST | Call by reference | Type reference (TYPE) | FLAG | Test run | 20130902 |
Method REVERSAL on class ITMF_CL_NF_ACCOUNTING has no exception.
Method UNLOCK_NF Signature
Method UNLOCK_NF on class ITMF_CL_NF_ACCOUNTING has no parameter.
Method UNLOCK_NF on class ITMF_CL_NF_ACCOUNTING has no exception.
Method VALIDATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RETURN | Call by reference | Type reference (TYPE) | BAPIRET2_T | Return parameter table | 20130902 | |||
| 2 | EV_VALID | Call by reference | Type reference (TYPE) | FLAG | General Flag | 20130902 | |||
| 3 | IV_MAINTENANCE | Call by reference | Type reference (TYPE) | FLAG | Maintenance screen | 20130902 | |||
| 4 | IV_TEST | Call by reference | Type reference (TYPE) | FLAG | General Flag | 20130902 |
Method VALIDATE on class ITMF_CL_NF_ACCOUNTING has no exception.
History
| Last changed by/on | SAP | 20131127 |
| SAP Release Created in |