SAP ABAP IMG Activity VATDATE_RULES (Define and Check Tax Reporting Date)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       FBAS (Package) Financial accounting 'Basis'
IMG Activity
ID VATDATE_RULES Define and Check Tax Reporting Date  
Transaction Code S_EB5_05000023   (empty) 
Created on 20081114    
Customizing Attributes VATDATE_VALUES   Define and Check Tax Reporting Date 
Customizing Activity VATDATE_VALUES   Define and Check Tax Reporting Date 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name VATDATE_VALUES    

Use

You use this Business Add-In (BAdI) in the Financial Accounting (FI)component to have the system propose a value for the tax reporting date field during document entry.

The method VATDATE_DETERMINE determines the default value proposed on the screen, for example, during document entry in the dialog box for taxes. The method VATDATE_DETERMINE proposes the posting date, the document date, or another value according to customer-defined rules.

You can change this date in the transaction for changing documents (FB02). But first you need to allow for the date to be changed in Customizing for Document Change Rules under Document Change Rules, Document Header. You can use the method VATDATE_CHECK of this BAdI to verify the changes to the tax reporting date in the document.

Requirements

Standard settings

The BAdI is activated in the standard delivery. The default implementation takes effect only after you activate the function for the tax reporting date in Customizing for the global parameters of the company code. To do this, go to Enter Global Parameters and set Tax Reporting Date Active.

The standard programs of Financial Accounting only call up the method VATDATE_CHECK.

In Financial Accounting, the BAdI is implemented in the following places:

  • Function group TAX1 (taxes)
  • Program SAPMF05A (entry of accounting documents)
  • Program SAPMF05L (display and change of financial accounting documents)
  • Function group RWCL (general interface to accounting)
  • Function group SAPLFCJ_PROCESS_MANAGER (cash journal)

The default implementation for Releases starting at SAP ERP 6.0 is called VATDATE_VALUES_DEFAULT_SAP.

Within the default implementation, the system always calls the method VATDATE_DETERMINE when the document requires a tax reporting date (VATDATE) but no value is available or a value could not yet be entered. By default, the system proposes either the posting date or the document date. Which date the system proposes depends on your Customizing settings for the company code, which you make under Assign Company Code to Document Date for Tax Determination.

Method VATDATE_CHECK checks whether a provided value, a proposed value, or an entered value fulfills certain conditions or rules.

You also can create your own implementation in which these special rules are defined. The standard rule states that the tax reporting date (VATDATE) must not be prior to the posting date and the document date. If it is earlier, the system issues the message FF785; you can change this message in Message Control.

The BAdI is not filter-dependent. And it is not usable more than once.

Activities

After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

  1. In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.

    The screen for creating BAdI implementations is now displayed.

  2. Enter a short text for the implementation in the Short text for implementation field.
  3. From the tab index, choose Interface.

    The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.

  4. Save your entries, and assign the implementation to a development class.
  5. Place the cursor on the method, and double-click to enter method processing.
  6. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  7. Save and implement your code. Return to the Edit Implementation screen.
  8. Save the entries on the Edit Implementation screen.

    Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

  9. Choose Activate

    The code you stored in the method will be run when the application program is executed.

Example

See also

Methods:

Determine Tax Reporting Date (VATDATE_DETERMINE)

Check Tax Reporting Date (VATDATE_CHECK)

SAP Note: 1232484

Business Attributes
ASAP Roadmap ID 105   Define functions and processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG VATDATE_VALUES 0 HLA0009200 Financial Accounting 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20081218 
SAP Release Created in 605