cancel
Showing results for 
Search instead for 
Did you mean: 

PO: Badi to change TAX_CODE

RicardoRomero_1
Active Contributor
0 Kudos

Hi all,

Do you know any badi to change the TAX_CODE in the purchase order?


In badi BBP_DOC_CHANGE_BADI there isn't a parameter ET_TAX (type BBPT_PD_TAX). 


I've found some badis but only for internal use of SAP or others without "Multiple use" and a standard implementation (BBP_DET_TAXCODE_BADI). Do I need to deactivate this implementation to create my own implementation?

Is there any other badi for this purpose?

Thanks in advance.

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ricardo,

To change the tax code,please implemenet BADI BBP_DET_TAXCODE_BADI.The documentation for this BADI is:

Short Text

Determine Tax Code

You can implement individual determination of the tax code using Business Add-In BBP_DET_TAXCODE_BADI.

You can extend the current determination (that occurs via the domestic/international indicator and category ID), deviating from the settings in table BBP_DET_TAX_CODE Determine Tax Code for Country/Product Category

Example

The following parameters are available in the DETERMINE_TAX_CODE method (specifying the tax code).

Import

IS_HEADER (header data procurement document interface)

IS_ITEM (item data)

IT_ACC (account assignment)

IT_PARTNER (business partner)

Export

EV_TAX_CODE (sales tax code)

If you need to change any other supplementary tax data like tax jurisidtcion code,you need to implement the badi BBP_TAX_MAP_BADI.Documentation for this BADI is:

You use the Business Add-In BBP_TAX_MAP_BADI to change or supplement entries in the tables that are used for tax calculation.

Several systems are provided for tax calculation. The Enterprise Buyer data is mapped to the structures of the selected system just before calculation. The BAdI is also called at this point so that you are able to add and change the data.

Example

Dependent on the system you select for tax calculation ( Define System for Tax Calculation), use the following methods and their parameters:

MAP_STRUCTURE_R3 (Mapping of the EBP Structures for R/3)

    Import
    IS_BBP_HEADER (Interface header data of procurement document)
    IT_BBP_ITEM (Item data)
    IT_BBP_TAX (Taxes)
    IT_BBP_ACC (Account assignment)
    IT_BBP_PARTNER (Business partner)
    IT_R3_ITEM (Import for calculation in R/3)
    Export
    ET_R3_ITEM (Export for calculation in R/3)

MAP_STRUCTURE_EXTERN (Mapping of the EBP Structures for External Systems)

    Import
    IS_BBP_HEADER (Interface header data of procurement document)
    IT_BBP_ITEM (Item data)
    IT_BBP_TAX (Taxes)
    IT_BBP_ACC (Account assignment)
    IT_BBP_PARTNER (Business partner)
    IT_EXT_ITEM (Import for calculation in external systems)
    Export
    ET_EXT_ITEM (Export for calculation in external systems)

MAP_STRUCTURE_EXTERN (Mapping of the EBP Structures for ERS ( Evaluated Receipt Settlement))

Former Member
0 Kudos

Hi Ricardo,

You have to populate the EV_TAX_CODE value based on your business requirement from which Element(Plant, Shipping Address, Cost Center, Org Unit etc) you need to determine the tax.

If you are trying to change or supplement the Tax Data then pls implement BBP_TAX_MAP_BADI.

Regards,

Satya