SAP Function Modules

BBP_TAX_MAP_WITH_BADI SAP Function module - Badi-Aufruf fr das Mapping







BBP_TAX_MAP_WITH_BADI is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BBP_TAX_MAP_WITH_BADI into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_PDH_TAX
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BBP_TAX_MAP_WITH_BADI - BBP TAX MAP WITH BADI





CALL FUNCTION 'BBP_TAX_MAP_WITH_BADI' "Badi-Aufruf fr das Mapping
  EXPORTING
    iv_tax_tool =               " bbp_tax_dest-tax_sys  Tool fr die Steuerberechnung
    is_bbp_header =             " bbp_pds_header  Schnittstelle Kopf-Daten Beschaffungs-Beleg
  TABLES
    it_bbp_item =               " bbp_pds_item  Schnittstelle Positions-Daten Beschaffungs-Beleg
    it_bbp_tax =                " bbp_pds_tax   Steuern
    it_bbp_partner =            " bbp_pds_partner  Geschftspartner
    it_bbp_acc =                " bbp_pds_acc   Kontierung
*   ct_ext_item =               " bbps_tax_cal_item_in00
*   ct_r3_item =                " bbp_tax_comm  Kommunikationsstruktur zum R/3
*   ct_tte_header =             " ttepdt_header_com_tt
*   ct_tte_item =               " ttepdt_item_com_tt
*   ct_tte_tranprop =           " ttepdt_tranprop_com_tt
*   ct_tte_orgunit =            " ttepdt_orgunit_com_tt
*   ct_tte_itempart =           " ttepdt_itempart_com_tt
*   ct_tte_pricel =             " ttepdt_pricel_com_tt
*   ct_tte_taxdate =            " ttepdt_taxdate_com_tt
*   ct_tte_taxevent =           " ttepdt_taxevent_com_tt
*   ct_tte_taxel =              " ttepdt_taxel_com_tt
*   ct_tte_taxvalue =           " ttepdt_taxvalue_com_tt
*   ct_tte_product =            " ttepdt_product_com_tt
*   ct_tte_prtaxcl =            " ttepdt_prtaxcl_com_tt
*   ct_tte_prprop =             " ttepdt_prprop_com_tt
*   ct_tte_partner =            " ttepdt_partner_com_tt
*   ct_tte_pataxcl =            " ttepdt_pataxcl_com_tt
*   ct_tte_paprop =             " ttepdt_paprop_com_tt
*   ct_tte_pataxnum =           " ttepdt_pataxnum_com_tt
*   ct_tte_currconv =           " ttepdt_currconv_com_tt
    .  "  BBP_TAX_MAP_WITH_BADI

ABAP code example for Function Module BBP_TAX_MAP_WITH_BADI





The ABAP code below is a full code listing to execute function module BBP_TAX_MAP_WITH_BADI including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_it_bbp_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM,"TABLES PARAM
wa_it_bbp_item  LIKE LINE OF it_it_bbp_item ,
it_it_bbp_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX,"TABLES PARAM
wa_it_bbp_tax  LIKE LINE OF it_it_bbp_tax ,
it_it_bbp_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_it_bbp_partner  LIKE LINE OF it_it_bbp_partner ,
it_it_bbp_acc  TYPE STANDARD TABLE OF BBP_PDS_ACC,"TABLES PARAM
wa_it_bbp_acc  LIKE LINE OF it_it_bbp_acc ,
it_ct_ext_item  TYPE STANDARD TABLE OF BBPS_TAX_CAL_ITEM_IN00,"TABLES PARAM
wa_ct_ext_item  LIKE LINE OF it_ct_ext_item ,
it_ct_r3_item  TYPE STANDARD TABLE OF BBP_TAX_COMM,"TABLES PARAM
wa_ct_r3_item  LIKE LINE OF it_ct_r3_item ,
it_ct_tte_header  TYPE STANDARD TABLE OF TTEPDT_HEADER_COM_TT,"TABLES PARAM
wa_ct_tte_header  LIKE LINE OF it_ct_tte_header ,
it_ct_tte_item  TYPE STANDARD TABLE OF TTEPDT_ITEM_COM_TT,"TABLES PARAM
wa_ct_tte_item  LIKE LINE OF it_ct_tte_item ,
it_ct_tte_tranprop  TYPE STANDARD TABLE OF TTEPDT_TRANPROP_COM_TT,"TABLES PARAM
wa_ct_tte_tranprop  LIKE LINE OF it_ct_tte_tranprop ,
it_ct_tte_orgunit  TYPE STANDARD TABLE OF TTEPDT_ORGUNIT_COM_TT,"TABLES PARAM
wa_ct_tte_orgunit  LIKE LINE OF it_ct_tte_orgunit ,
it_ct_tte_itempart  TYPE STANDARD TABLE OF TTEPDT_ITEMPART_COM_TT,"TABLES PARAM
wa_ct_tte_itempart  LIKE LINE OF it_ct_tte_itempart ,
it_ct_tte_pricel  TYPE STANDARD TABLE OF TTEPDT_PRICEL_COM_TT,"TABLES PARAM
wa_ct_tte_pricel  LIKE LINE OF it_ct_tte_pricel ,
it_ct_tte_taxdate  TYPE STANDARD TABLE OF TTEPDT_TAXDATE_COM_TT,"TABLES PARAM
wa_ct_tte_taxdate  LIKE LINE OF it_ct_tte_taxdate ,
it_ct_tte_taxevent  TYPE STANDARD TABLE OF TTEPDT_TAXEVENT_COM_TT,"TABLES PARAM
wa_ct_tte_taxevent  LIKE LINE OF it_ct_tte_taxevent ,
it_ct_tte_taxel  TYPE STANDARD TABLE OF TTEPDT_TAXEL_COM_TT,"TABLES PARAM
wa_ct_tte_taxel  LIKE LINE OF it_ct_tte_taxel ,
it_ct_tte_taxvalue  TYPE STANDARD TABLE OF TTEPDT_TAXVALUE_COM_TT,"TABLES PARAM
wa_ct_tte_taxvalue  LIKE LINE OF it_ct_tte_taxvalue ,
it_ct_tte_product  TYPE STANDARD TABLE OF TTEPDT_PRODUCT_COM_TT,"TABLES PARAM
wa_ct_tte_product  LIKE LINE OF it_ct_tte_product ,
it_ct_tte_prtaxcl  TYPE STANDARD TABLE OF TTEPDT_PRTAXCL_COM_TT,"TABLES PARAM
wa_ct_tte_prtaxcl  LIKE LINE OF it_ct_tte_prtaxcl ,
it_ct_tte_prprop  TYPE STANDARD TABLE OF TTEPDT_PRPROP_COM_TT,"TABLES PARAM
wa_ct_tte_prprop  LIKE LINE OF it_ct_tte_prprop ,
it_ct_tte_partner  TYPE STANDARD TABLE OF TTEPDT_PARTNER_COM_TT,"TABLES PARAM
wa_ct_tte_partner  LIKE LINE OF it_ct_tte_partner ,
it_ct_tte_pataxcl  TYPE STANDARD TABLE OF TTEPDT_PATAXCL_COM_TT,"TABLES PARAM
wa_ct_tte_pataxcl  LIKE LINE OF it_ct_tte_pataxcl ,
it_ct_tte_paprop  TYPE STANDARD TABLE OF TTEPDT_PAPROP_COM_TT,"TABLES PARAM
wa_ct_tte_paprop  LIKE LINE OF it_ct_tte_paprop ,
it_ct_tte_pataxnum  TYPE STANDARD TABLE OF TTEPDT_PATAXNUM_COM_TT,"TABLES PARAM
wa_ct_tte_pataxnum  LIKE LINE OF it_ct_tte_pataxnum ,
it_ct_tte_currconv  TYPE STANDARD TABLE OF TTEPDT_CURRCONV_COM_TT,"TABLES PARAM
wa_ct_tte_currconv  LIKE LINE OF it_ct_tte_currconv .


SELECT single TAX_SYS
FROM BBP_TAX_DEST
INTO @DATA(ld_iv_tax_tool).

DATA(ld_is_bbp_header) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bbp_item to it_it_bbp_item.

"populate fields of struture and append to itab
append wa_it_bbp_tax to it_it_bbp_tax.

"populate fields of struture and append to itab
append wa_it_bbp_partner to it_it_bbp_partner.

"populate fields of struture and append to itab
append wa_it_bbp_acc to it_it_bbp_acc.

"populate fields of struture and append to itab
append wa_ct_ext_item to it_ct_ext_item.

"populate fields of struture and append to itab
append wa_ct_r3_item to it_ct_r3_item.

"populate fields of struture and append to itab
append wa_ct_tte_header to it_ct_tte_header.

"populate fields of struture and append to itab
append wa_ct_tte_item to it_ct_tte_item.

"populate fields of struture and append to itab
append wa_ct_tte_tranprop to it_ct_tte_tranprop.

"populate fields of struture and append to itab
append wa_ct_tte_orgunit to it_ct_tte_orgunit.

"populate fields of struture and append to itab
append wa_ct_tte_itempart to it_ct_tte_itempart.

"populate fields of struture and append to itab
append wa_ct_tte_pricel to it_ct_tte_pricel.

"populate fields of struture and append to itab
append wa_ct_tte_taxdate to it_ct_tte_taxdate.

"populate fields of struture and append to itab
append wa_ct_tte_taxevent to it_ct_tte_taxevent.

"populate fields of struture and append to itab
append wa_ct_tte_taxel to it_ct_tte_taxel.

"populate fields of struture and append to itab
append wa_ct_tte_taxvalue to it_ct_tte_taxvalue.

"populate fields of struture and append to itab
append wa_ct_tte_product to it_ct_tte_product.

"populate fields of struture and append to itab
append wa_ct_tte_prtaxcl to it_ct_tte_prtaxcl.

"populate fields of struture and append to itab
append wa_ct_tte_prprop to it_ct_tte_prprop.

"populate fields of struture and append to itab
append wa_ct_tte_partner to it_ct_tte_partner.

"populate fields of struture and append to itab
append wa_ct_tte_pataxcl to it_ct_tte_pataxcl.

"populate fields of struture and append to itab
append wa_ct_tte_paprop to it_ct_tte_paprop.

"populate fields of struture and append to itab
append wa_ct_tte_pataxnum to it_ct_tte_pataxnum.

"populate fields of struture and append to itab
append wa_ct_tte_currconv to it_ct_tte_currconv. . CALL FUNCTION 'BBP_TAX_MAP_WITH_BADI' EXPORTING iv_tax_tool = ld_iv_tax_tool is_bbp_header = ld_is_bbp_header TABLES it_bbp_item = it_it_bbp_item it_bbp_tax = it_it_bbp_tax it_bbp_partner = it_it_bbp_partner it_bbp_acc = it_it_bbp_acc * ct_ext_item = it_ct_ext_item * ct_r3_item = it_ct_r3_item * ct_tte_header = it_ct_tte_header * ct_tte_item = it_ct_tte_item * ct_tte_tranprop = it_ct_tte_tranprop * ct_tte_orgunit = it_ct_tte_orgunit * ct_tte_itempart = it_ct_tte_itempart * ct_tte_pricel = it_ct_tte_pricel * ct_tte_taxdate = it_ct_tte_taxdate * ct_tte_taxevent = it_ct_tte_taxevent * ct_tte_taxel = it_ct_tte_taxel * ct_tte_taxvalue = it_ct_tte_taxvalue * ct_tte_product = it_ct_tte_product * ct_tte_prtaxcl = it_ct_tte_prtaxcl * ct_tte_prprop = it_ct_tte_prprop * ct_tte_partner = it_ct_tte_partner * ct_tte_pataxcl = it_ct_tte_pataxcl * ct_tte_paprop = it_ct_tte_paprop * ct_tte_pataxnum = it_ct_tte_pataxnum * ct_tte_currconv = it_ct_tte_currconv . " BBP_TAX_MAP_WITH_BADI
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_iv_tax_tool  TYPE BBP_TAX_DEST-TAX_SYS ,
it_it_bbp_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM ,
wa_it_bbp_item  LIKE LINE OF it_it_bbp_item,
ld_is_bbp_header  TYPE BBP_PDS_HEADER ,
it_it_bbp_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX ,
wa_it_bbp_tax  LIKE LINE OF it_it_bbp_tax,
it_it_bbp_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_it_bbp_partner  LIKE LINE OF it_it_bbp_partner,
it_it_bbp_acc  TYPE STANDARD TABLE OF BBP_PDS_ACC ,
wa_it_bbp_acc  LIKE LINE OF it_it_bbp_acc,
it_ct_ext_item  TYPE STANDARD TABLE OF BBPS_TAX_CAL_ITEM_IN00 ,
wa_ct_ext_item  LIKE LINE OF it_ct_ext_item,
it_ct_r3_item  TYPE STANDARD TABLE OF BBP_TAX_COMM ,
wa_ct_r3_item  LIKE LINE OF it_ct_r3_item,
it_ct_tte_header  TYPE STANDARD TABLE OF TTEPDT_HEADER_COM_TT ,
wa_ct_tte_header  LIKE LINE OF it_ct_tte_header,
it_ct_tte_item  TYPE STANDARD TABLE OF TTEPDT_ITEM_COM_TT ,
wa_ct_tte_item  LIKE LINE OF it_ct_tte_item,
it_ct_tte_tranprop  TYPE STANDARD TABLE OF TTEPDT_TRANPROP_COM_TT ,
wa_ct_tte_tranprop  LIKE LINE OF it_ct_tte_tranprop,
it_ct_tte_orgunit  TYPE STANDARD TABLE OF TTEPDT_ORGUNIT_COM_TT ,
wa_ct_tte_orgunit  LIKE LINE OF it_ct_tte_orgunit,
it_ct_tte_itempart  TYPE STANDARD TABLE OF TTEPDT_ITEMPART_COM_TT ,
wa_ct_tte_itempart  LIKE LINE OF it_ct_tte_itempart,
it_ct_tte_pricel  TYPE STANDARD TABLE OF TTEPDT_PRICEL_COM_TT ,
wa_ct_tte_pricel  LIKE LINE OF it_ct_tte_pricel,
it_ct_tte_taxdate  TYPE STANDARD TABLE OF TTEPDT_TAXDATE_COM_TT ,
wa_ct_tte_taxdate  LIKE LINE OF it_ct_tte_taxdate,
it_ct_tte_taxevent  TYPE STANDARD TABLE OF TTEPDT_TAXEVENT_COM_TT ,
wa_ct_tte_taxevent  LIKE LINE OF it_ct_tte_taxevent,
it_ct_tte_taxel  TYPE STANDARD TABLE OF TTEPDT_TAXEL_COM_TT ,
wa_ct_tte_taxel  LIKE LINE OF it_ct_tte_taxel,
it_ct_tte_taxvalue  TYPE STANDARD TABLE OF TTEPDT_TAXVALUE_COM_TT ,
wa_ct_tte_taxvalue  LIKE LINE OF it_ct_tte_taxvalue,
it_ct_tte_product  TYPE STANDARD TABLE OF TTEPDT_PRODUCT_COM_TT ,
wa_ct_tte_product  LIKE LINE OF it_ct_tte_product,
it_ct_tte_prtaxcl  TYPE STANDARD TABLE OF TTEPDT_PRTAXCL_COM_TT ,
wa_ct_tte_prtaxcl  LIKE LINE OF it_ct_tte_prtaxcl,
it_ct_tte_prprop  TYPE STANDARD TABLE OF TTEPDT_PRPROP_COM_TT ,
wa_ct_tte_prprop  LIKE LINE OF it_ct_tte_prprop,
it_ct_tte_partner  TYPE STANDARD TABLE OF TTEPDT_PARTNER_COM_TT ,
wa_ct_tte_partner  LIKE LINE OF it_ct_tte_partner,
it_ct_tte_pataxcl  TYPE STANDARD TABLE OF TTEPDT_PATAXCL_COM_TT ,
wa_ct_tte_pataxcl  LIKE LINE OF it_ct_tte_pataxcl,
it_ct_tte_paprop  TYPE STANDARD TABLE OF TTEPDT_PAPROP_COM_TT ,
wa_ct_tte_paprop  LIKE LINE OF it_ct_tte_paprop,
it_ct_tte_pataxnum  TYPE STANDARD TABLE OF TTEPDT_PATAXNUM_COM_TT ,
wa_ct_tte_pataxnum  LIKE LINE OF it_ct_tte_pataxnum,
it_ct_tte_currconv  TYPE STANDARD TABLE OF TTEPDT_CURRCONV_COM_TT ,
wa_ct_tte_currconv  LIKE LINE OF it_ct_tte_currconv.


SELECT single TAX_SYS
FROM BBP_TAX_DEST
INTO ld_iv_tax_tool.


"populate fields of struture and append to itab
append wa_it_bbp_item to it_it_bbp_item.
ld_is_bbp_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bbp_tax to it_it_bbp_tax.

"populate fields of struture and append to itab
append wa_it_bbp_partner to it_it_bbp_partner.

"populate fields of struture and append to itab
append wa_it_bbp_acc to it_it_bbp_acc.

"populate fields of struture and append to itab
append wa_ct_ext_item to it_ct_ext_item.

"populate fields of struture and append to itab
append wa_ct_r3_item to it_ct_r3_item.

"populate fields of struture and append to itab
append wa_ct_tte_header to it_ct_tte_header.

"populate fields of struture and append to itab
append wa_ct_tte_item to it_ct_tte_item.

"populate fields of struture and append to itab
append wa_ct_tte_tranprop to it_ct_tte_tranprop.

"populate fields of struture and append to itab
append wa_ct_tte_orgunit to it_ct_tte_orgunit.

"populate fields of struture and append to itab
append wa_ct_tte_itempart to it_ct_tte_itempart.

"populate fields of struture and append to itab
append wa_ct_tte_pricel to it_ct_tte_pricel.

"populate fields of struture and append to itab
append wa_ct_tte_taxdate to it_ct_tte_taxdate.

"populate fields of struture and append to itab
append wa_ct_tte_taxevent to it_ct_tte_taxevent.

"populate fields of struture and append to itab
append wa_ct_tte_taxel to it_ct_tte_taxel.

"populate fields of struture and append to itab
append wa_ct_tte_taxvalue to it_ct_tte_taxvalue.

"populate fields of struture and append to itab
append wa_ct_tte_product to it_ct_tte_product.

"populate fields of struture and append to itab
append wa_ct_tte_prtaxcl to it_ct_tte_prtaxcl.

"populate fields of struture and append to itab
append wa_ct_tte_prprop to it_ct_tte_prprop.

"populate fields of struture and append to itab
append wa_ct_tte_partner to it_ct_tte_partner.

"populate fields of struture and append to itab
append wa_ct_tte_pataxcl to it_ct_tte_pataxcl.

"populate fields of struture and append to itab
append wa_ct_tte_paprop to it_ct_tte_paprop.

"populate fields of struture and append to itab
append wa_ct_tte_pataxnum to it_ct_tte_pataxnum.

"populate fields of struture and append to itab
append wa_ct_tte_currconv to it_ct_tte_currconv.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_TAX_MAP_WITH_BADI or its description.