ABAP OO Class Methods

CALCULATE_TAX SAP Method - Fill taxinterface called from CREATE_NF_ITEM







Below is documentation, parameters and attributes of ABAP Method CALCULATE_TAX within SAP class J1BCONSI. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name J1BCONSI into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

J1BCONSI

Method Name

CALCULATE_TAX

Method Type

Instance Method:   This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


I_WERKS " Plant TYPE WERKS_D
I_WAERS " Currency Key TYPE WAERS
I_TXJCD " Tax Jurisdiction TYPE TXJCD
I_SHKZG " Debit/Credit Indicator TYPE SHKZG
I_MENGE " Quantity TYPE MENGE_D
I_MEINS " Base Unit of Measure TYPE MEINS
I_MATNR " Material Number TYPE MATNR
I_MATKL " Material group TYPE MATKL
I_LIFNR " Account Number of Vendor or Creditor TYPE LIFNR
I_LAND1 " Country Key TYPE LAND1
I_KPOSN " Condition item number TYPE KPOSN
I_KALSM " Procedure (pricing, output control, acct. det., costing,...) TYPE KALSM_D
I_DMBTR " Amount in local currency TYPE DMBTR
I_BUKRS " Company Code TYPE BUKRS
I_BUDAT " Posting date TYPE J_1BPSTDAT
I_BLDAT " Document date TYPE J_1BDOCDAT

Exceptions:



Example ABAP coding


This is a private Method so the below code can only be executed from within the class itself. I.e. You could access it from another method of the class.


DATA:
ld_I_WERKS TYPE WERKS_D ,
ld_I_WAERS TYPE WAERS ,
ld_I_TXJCD TYPE TXJCD ,
ld_I_SHKZG TYPE SHKZG ,
ld_I_MENGE TYPE MENGE_D ,
ld_I_MEINS TYPE MEINS ,
ld_I_MATNR TYPE MATNR ,
ld_I_MATKL TYPE MATKL ,
ld_I_LIFNR TYPE LIFNR ,
ld_I_LAND1 TYPE LAND1 ,
ld_I_KPOSN TYPE KPOSN ,
ld_I_KALSM TYPE KALSM_D ,
ld_I_DMBTR TYPE DMBTR ,
ld_I_BUKRS TYPE BUKRS ,
ld_I_BUDAT TYPE J_1BPSTDAT ,
ld_I_BLDAT TYPE J_1BDOCDAT.

" ld_I_WERKS = "
" ld_I_WAERS = "
" ld_I_TXJCD = "
" ld_I_SHKZG = "
" ld_I_MENGE = "
" ld_I_MEINS = "
" ld_I_MATNR = "
" ld_I_MATKL = "
" ld_I_LIFNR = "
" ld_I_LAND1 = "
" ld_I_KPOSN = "
" ld_I_KALSM = "
" ld_I_DMBTR = "
" ld_I_BUKRS = "
" ld_I_BUDAT = "
" ld_I_BLDAT = "

DATA: lo_J1BCONSI TYPE REF TO J1BCONSI .
CALL METHOD lo_J1BCONSI->CALCULATE_TAX(
EXPORTING
I_WERKS = ld_I_WERKS
I_WAERS = ld_I_WAERS
I_TXJCD = ld_I_TXJCD
I_SHKZG = ld_I_SHKZG
I_MENGE = ld_I_MENGE
I_MEINS = ld_I_MEINS
I_MATNR = ld_I_MATNR
I_MATKL = ld_I_MATKL
I_LIFNR = ld_I_LIFNR
I_LAND1 = ld_I_LAND1
I_KPOSN = ld_I_KPOSN
I_KALSM = ld_I_KALSM
I_DMBTR = ld_I_DMBTR
I_BUKRS = ld_I_BUKRS
I_BUDAT = ld_I_BUDAT
I_BLDAT = ld_I_BLDAT ).