GET_SUBTRIB_BASE_AMOUNT SAP Method Determine different base amount for Sub. Trib. from customer
Below is documentation, parameters and attributes of ABAP Method GET_SUBTRIB_BASE_AMOUNT within SAP class IF_J_1BTAX_SUBTRIB_MAX_PRICE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_J_1BTAX_SUBTRIB_MAX_PRICE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
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.The following technical details of method GET_SUBTRIB_BASE_AMOUNT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_SUBTRIB_BASE_AMOUNT
.Name | Type | Data Type | Description | Default Value |
IV_COUNTRY | Importing | TYPE ALAND | Departure country (country from which the goods are sent) | |
IV_CURRENCY | Importing | TYPE WAERS | Currency Key | |
IV_MATKL | Importing | TYPE MATKL | Material Group | |
IV_MATNR | Importing | TYPE MATNR | Material Number | |
IV_MIN_PRICE | Importing | TYPE J_1BTXSTMP | Minimum Price Per Item Is Basis for Substituição Tributária | |
IV_NCM | Importing | TYPE STEUC | Control code for consumption taxes in foreign trade | |
IV_NO_OF_UNITS | Importing | TYPE J_1BTXSTF | Number of units for Sub.Trib. calc. (price per n units) | |
IV_SHIPFROM | Importing | TYPE J_1BTXSHPF | Ship from location (tax region) | |
IV_SHIPTO | Importing | TYPE J_1BTXSHPT | Ship to location (tax region) | |
IV_SUBTRIB_BASE_BEFORE_MIN | Importing | TYPE J_1BBASE | Base amount before minimum rule was applied | |
IV_UNIT | Importing | TYPE J_1BTXSTU | Unit for Sub.Trib. calculation (price per n units) | |
IV_XSUBT | Importing | TYPE J_1BTCST | Customer group for Substituiçao Tributária calculation | |
CV_SUBTRIB_BASE | Changing | TYPE J_1BBASE | Current base amount after minprice comparison |
Exceptions of Method GET_SUBTRIB_BASE_AMOUNT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_J_1BTAX_SUBTRIB_MAX_PRICE.
DATA: lv_CV_SUBTRIB_BASE TYPE J_1BBASE,
lv_IV_COUNTRY TYPE ALAND,
lv_IV_CURRENCY TYPE WAERS,
lv_IV_MATKL TYPE MATKL,
lv_IV_MATNR TYPE MATNR,
lv_IV_MIN_PRICE TYPE J_1BTXSTMP,
lv_IV_NCM TYPE STEUC,
lv_IV_NO_OF_UNITS TYPE J_1BTXSTF,
lv_IV_SHIPFROM TYPE J_1BTXSHPF,
lv_IV_SHIPTO TYPE J_1BTXSHPT,
lv_IV_SUBTRIB_BASE_BEFORE_MIN TYPE J_1BBASE,
lv_IV_UNIT TYPE J_1BTXSTU,
lv_IV_XSUBT TYPE J_1BTCST,
lv_other TYPE c.
CALL METHOD lo_class=>GET_SUBTRIB_BASE_AMOUNT(
EXPORTING
IV_COUNTRY = lv_IV_COUNTRY
IV_CURRENCY = lv_IV_CURRENCY
IV_MATKL = lv_IV_MATKL
IV_MATNR = lv_IV_MATNR
IV_MIN_PRICE = lv_IV_MIN_PRICE
IV_NCM = lv_IV_NCM
IV_NO_OF_UNITS = lv_IV_NO_OF_UNITS
IV_SHIPFROM = lv_IV_SHIPFROM
IV_SHIPTO = lv_IV_SHIPTO
IV_SUBTRIB_BASE_BEFORE_MIN = lv_IV_SUBTRIB_BASE_BEFORE_MIN
IV_UNIT = lv_IV_UNIT
IV_XSUBT = lv_IV_XSUBT
CHANGING
CV_SUBTRIB_BASE = lv_CV_SUBTRIB_BASE ).
Links to Related Class(s)
IF_J_1BT...Full list of available SAP object classes
Search for further information about these or an SAP related objects