SAP ABAP IMG Activity WTY_POSTING_DATA (BAdI: Data Change before Calling FI-BAPI)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   LO-WTY (Application Component) Warranty Claim Processing
     ISAUTO_WTY (Package) Warranty Processing
IMG Activity
ID WTY_POSTING_DATA BAdI: Data Change before Calling FI-BAPI  
Transaction Code S_EE5_50000273   (empty) 
Created on 20091022    
Customizing Attributes WTY_POSTING_DATA   BAdI: Data Change before Calling FI-BAPI 
Customizing Activity WTY_POSTING_DATA   BAdI: Data Change before Calling FI-BAPI 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WTY_POSTING_DATA    

Use

You can use this Business Add-In (BAdI) in the Warranty Claims Processing (LO-WTY) component.

In the warranty claim you can call actions for posting financial documents. The system uses BAPI_ACC_DOCUMENT_CHECK to check the financial documents and posts them using BAPI_ACC_DOCUMENT_POST. The import parameters are filled by the actions.

You can use this BAdI to change the values for some import parameters directly before the BAPI is called.

The BAdI contains the following methods:

  • HEADER_DATA_CHANGE

    You can use this method to change the header data of the accounting document. The system transfers this data in the parameter DOCUMENTHEADER to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

  • GL_ACCOUNT_DATA_CHANGE

    You can use this method to change the data in the G/L account line of the accounting document. The system transfers this data in the parameter ACCOUNTGL to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

  • AR_DATA_CHANGE

    You can use this method to change the data in the customer line of the accounting document. The system transfers this data in the parameter ACCOUNTRECEIVABLE to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

  • AP_DATA_CHANGE

    You can use this method to change the data in the vendor line of the accounting document. The system transfers this data in the parameter ACCOUNTPAYABLE to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

  • EXTERNAL_TAX_SYSTEM

    You can use this method to control the following functions:

    • You can call pricing right before posting the accounting document. The system transfers the pricing type in parameter CV_KSTEU and uses parameter CV_DO_PRICING = X to start the pricing call. If an external tax system is connected, you must have already carried out pricing at least once before posting the accounting document and have already transferred the relevant data to the interface class. Prior to this, the system uses function module CHECK_EXTERNAL_TAX_DOC_EXISTS to check if the CV_DO_PRICING parameter has been set.
    • If you want the document number of the accounting document and not the warranty claim number to be transferred as the reference number (DOC_NUMBER) to the external system, you must set parameter CV_FI_DOC_NO to value X.
  • SET_PARNR_FOR_POSTING

    You can use this method to change the partner number and the tax jurisdiction before calling BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

    It makes sense to change the partner number if, for example, you want to use a payer in the claim version for FI posting that is different than the partner. The system usually determines the tax jurisdiction using the partner number. If you set the EV_TXJCD parameter, the system can determine a different tax jurisdiction.

    The example implementation of the BAdI with class CL_EXM_IM_WTY_POSTING_DATA shows how the system determines the partner of the warranty claim document.

  • WITH_HOLDING_TAX_DATA_CHANGE

    You can use this method to change the withholding tax data of the accounting document. The system transfers this data in the parameter ACCOUNTWT to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

  • BAPI_EXTENSION_DATA_CHANGE

    You can use this method to change your customer-specific fields of the accounting document. The system transfers this data in the parameter EXTENSION2 to BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST.

Requirements

You use FI posting actions (A040 - A043, A049 - A054) in the warranty claim

Standard settings

This BAdI does not have a default implementation.

Activities

Procedure for Implementing BAdIs

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-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 WTY_POSTING_DATA 0 ALN0000451 Warranty Claim Processing 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20091022 
SAP Release Created in 605