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 ABAP 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 LC_AWTYP Constant Public Type reference (TYPE) AWTYP 'NFWRI' Reference Transaction 20130902
2 LC_CREDIT Constant Private Type reference (TYPE) SHKZG 'H' Debit/Credit Indicator 20130902
3 LC_DEBIT Constant Private Type reference (TYPE) SHKZG 'S' Debit/Credit Indicator 20130902
4 LC_GLVOR Constant Private Type reference (TYPE) GLVOR 'RFBU' Business Transaction 20130902
5 MS_HEADER Instance attribute Private Type reference (TYPE) J_1BNFDOC Nota Fiscal Header 20130902
6 MT_ACCCR Instance attribute Public Type reference (TYPE) ACCCR_T Accounting interface: Currency information 20130902
7 MT_ACCHD Instance attribute Public Type reference (TYPE) ACCHD_T Interface to Accounting: Header Information 20130902
8 MT_ACCIT Instance attribute Public Type reference (TYPE) ACCIT_T Accounting Interface: Item Information 20130902
9 MT_CUST_ACC Instance attribute Private See coding NFWACC customizing non taxes 20130902
10 MT_CUST_ACC_TAX Instance attribute Private See coding NFWACC customizing per tax 20130902
11 MT_ITEM Instance attribute Private Type reference (TYPE) J_1BNFLIN_TAB Nota Fiscal items 20130902
12 MT_ITEM_ADD Instance attribute Private See coding Nota Fiscal items values add 20130902
13 MT_ITEM_TAX Instance attribute Private Type reference (TYPE) J_1BNFSTX_TAB Nota Fiscal taxes 20130902
14 MT_J1BAJ Instance attribute Private See coding Tax group 20130902
15 MT_RETURN Instance attribute Private See coding Result of processing 20130902
16 MV_ACCIT_COUNT Instance attribute Private Type reference (TYPE) I 0 Number of accounting lines 20130902
17 MV_REF_DOC_NO Instance attribute Private Type reference (TYPE) XBLNR Reference Document Number 20130902
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MESSAGE Instance method Private Method Add a message on message container 20130902
2 ADD_SYS_MESSAGE Instance method Private Method Add the system message on message container 20130902
3 CHECK_MATERIAL_ALLOWED Instance method Private Method Check if materials aren't stock control/valuation 20130902
4 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20130902
5 DISPLAY_SIMULATION Instance method Public Method Validate and display a dialog box with results of simulation 20130902
6 FILL_ITEM Instance method Private Method Fill internal accounting table with data prepared from NF 20130902
7 IS_VALID_FOR_ACCOUNTING Static method Public Method Check if NF is accounting related 20130902
8 IS_VALID_FOR_ACCOUNTING_DYN Static method Public Method Check if NF is accounting related (dynpro source tables) 20130902
9 LOAD_CUSTOMIZING Instance method Private Method Load accounting customizing to internal container 20130902
10 LOAD_NF Instance method Public Method Load NF data to instance from NF structures 20130902
11 LOAD_NF_FROM_DB Instance method Public Method Load NF data to instance from database 20130902
12 LOAD_NF_FROM_DISPLAY Instance method Public Method Load NF data to instance from display structures 20130902
13 LOCK_NF Instance method Private Method Lock the NF for saving 20130902
14 POST Instance method Public Method Validate and post accounting document 20130902
15 PREPARE_POSTING Instance method Private Method Fill internal accounting table with data prepared from NF 20130902
16 READ_CUSTOMIZING Instance method Public Method Read accounting customizing for the item/tax 20130902
17 REVERSAL Instance method Public Method Reversal of an accounting document 20130902
18 UNLOCK_NF Instance method Private Method Unlock NF 20130902
19 VALIDATE 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 Importing IV_ID Call by reference Type reference (TYPE) SYMSGID Object ID of Business Event Offered 20130902
2 Importing IV_MESSAGE Call by reference Type reference (TYPE) BAPI_MSG Message Line for CAD Dialog Interface 20130902
3 Importing IV_MESSAGE_V1 Call by reference Type reference (TYPE) ANY Message Variable 20130902
4 Importing IV_MESSAGE_V2 Call by reference Type reference (TYPE) ANY Message Variable 20130902
5 Importing IV_MESSAGE_V3 Call by reference Type reference (TYPE) ANY Message Variable 20130902
6 Importing IV_MESSAGE_V4 Call by reference Type reference (TYPE) ANY Message Variable 20130902
7 Importing IV_NUMBER Call by reference Type reference (TYPE) ANY Message Number 20130902
8 Importing 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 Importing IS_ITEM Call by reference Type reference (TYPE) J_1BNFLIN Nota Fiscal line items 20130902
2 Importing IV_BASE Call by reference Type reference (TYPE) J_1BBASE 0 Tax Base Amount in Document Currency 20130902
3 Importing IV_CREDIT_ACC Call by reference Type reference (TYPE) HKONT Account for credit 20130902
4 Importing IV_DEBIT_ACC Call by reference Type reference (TYPE) HKONT Account for debit 20130902
5 Importing IV_MWSKZ Call by reference Type reference (TYPE) MWSKZ '' Sales Tax Code 20130902
6 Importing IV_TXJCD Call by reference Type reference (TYPE) TXJCD '' Tax Jurisdiction 20130902
7 Importing 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 Returning EV_VALID Value transfer Type reference (TYPE) FLAG General Flag 20130902
2 Importing IS_HEADER Call by reference Type reference (TYPE) J_1BNFDOC Nota Fiscal Header 20130902
3 Importing IT_ITEM Call by reference Type reference (TYPE) J_1BNFLIN_TAB Table of Nota Fiscal Items (J_1BNFLIN) 20130902
4 Importing 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 Returning EV_VALID Value transfer Type reference (TYPE) FLAG Valid for accounting 20130902
2 Importing IS_HEADER Call by reference Type reference (TYPE) J_1BNFDOC Nota Fiscal Header 20130902
3 Importing IT_ITEM Call by reference Type reference (TYPE) ITMF_T_J_1BNFLIN Table of Nota Fiscal Items (J_1BNFLIN) 20130902
4 Importing IT_ITEM_TAX Call by reference Type reference (TYPE) ITMF_T_J_1BDYSTX Table of Nota Fiscal Tax Lines (J_1BNFSTX) 20130902
5 Importing 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 Importing IS_HEADER Call by reference Type reference (TYPE) J_1BNFDOC Nota Fiscal Header 20130902
2 Importing IT_ITEM Call by reference Type reference (TYPE) J_1BNFLIN_TAB Table of Nota Fiscal Items (J_1BNFLIN) 20130902
3 Importing IT_ITEM_TAX Call by reference Type reference (TYPE) J_1BNFSTX_TAB Table of Nota Fiscal Tax Lines (J_1BNFSTX) 20130902
4 Importing 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 Importing 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 Importing IS_HEADER Call by reference Type reference (TYPE) J_1BNFDOC Nota Fiscal Header 20130902
2 Importing IT_ITEM Call by reference Type reference (TYPE) ITMF_T_J_1BNFLIN Table of Nota Fiscal Items (J_1BNFLIN) 20130902
3 Importing 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 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20130902
2 Importing IV_COMMIT Call by reference Type reference (TYPE) FLAG ABAP_FALSE Trigger commit after posting 20130902
3 Importing IV_LOCK Call by reference Type reference (TYPE) FLAG ABAP_FALSE Handle lock of NF document 20130902
4 Importing 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 Changing CS_CUST_ACC Call by reference Type reference (TYPE) ITMF_D_NFACCT Nota fiscal writer configurable accounts 20130902
2 Changing CS_CUST_ACC_TAX Call by reference Type reference (TYPE) ITMF_D_NFACCTTAX Nota fiscal writer configurable accounts for taxes 20130902
3 Importing IV_BRANCH Call by reference Type reference (TYPE) J_1BBRANC_ Business Place 20130902
4 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20130902
5 Importing IV_ITMTYPE Call by reference Type reference (TYPE) J_1BITMTYP Nota Fiscal Item Type 20130902
6 Importing IV_MATUSE Call by reference Type reference (TYPE) J_1BMATUSE Usage of the material 20130902
7 Importing IV_NFTYPE Call by reference Type reference (TYPE) J_1BNFTYPE Nota Fiscal Type 20130902
8 Importing 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 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20130902
2 Importing IV_COMMIT Call by reference Type reference (TYPE) FLAG Commit after reversal 20130902
3 Importing IV_LOCK Call by reference Type reference (TYPE) FLAG Lock NF document 20130902
4 Importing 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 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20130902
2 Exporting EV_VALID Call by reference Type reference (TYPE) FLAG General Flag 20130902
3 Importing IV_MAINTENANCE Call by reference Type reference (TYPE) FLAG Maintenance screen 20130902
4 Importing 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