AMOUNTS_CALCULATE SAP Method Calculation of Delivery Costs' Shares









Below is documentation, parameters and attributes of ABAP Method AMOUNTS_CALCULATE within SAP class IF_EX_MRM_UDC_DISTRIBUTE. 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_EX_MRM_UDC_DISTRIBUTE 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 AMOUNTS_CALCULATE can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method AMOUNTS_CALCULATE

.

NameTypeData TypeDescriptionDefault Value
I_BEZNKImportingTYPE
RBKP-BEZNK
Unplanned Delivery Costs
I_BUKRSImportingTYPE
RBKP-BUKRS
Company Code
I_DRSEGImportingTYPE
MMCR_TDRSEG
Invoice Items
I_IVTYPImportingTYPE
RBKP-IVTYP
Origin of a Logistics Invoice Document
I_UMRECHNENImportingTYPE
BOOLE-BOOLE
Is Conversion to Local Currency Necessary?
I_WAERSImportingTYPE
RBKP-WAERS
Currency Key
I_WWERTImportingTYPE
BKPF-WWERT
Posting Date (in Document)
I_XRECHImportingTYPE
RBKP-XRECH
Indicator: Post Invoice
E_DRSEG_UDCExportingTYPE
MRMBD_TAB_DRSEG_UDC
Delivery Costs' Shares of the Items



Exceptions of Method AMOUNTS_CALCULATE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_MRM_UDC_DISTRIBUTE.
DATA: lv_E_DRSEG_UDC TYPE MRMBD_TAB_DRSEG_UDC,
lv_I_BEZNK TYPE RBKP-BEZNK,
lv_I_BUKRS TYPE RBKP-BUKRS,
lv_I_DRSEG TYPE MMCR_TDRSEG,
lv_I_IVTYP TYPE RBKP-IVTYP,
lv_I_UMRECHNEN TYPE BOOLE-BOOLE,
lv_I_WAERS TYPE RBKP-WAERS,
lv_I_WWERT TYPE BKPF-WWERT,
lv_I_XRECH TYPE RBKP-XRECH,
lv_other TYPE c.

CALL METHOD lo_class=>AMOUNTS_CALCULATE(
EXPORTING
I_BEZNK = lv_I_BEZNK
I_BUKRS = lv_I_BUKRS
I_DRSEG = lv_I_DRSEG
I_IVTYP = lv_I_IVTYP
I_UMRECHNEN = lv_I_UMRECHNEN
I_WAERS = lv_I_WAERS
I_WWERT = lv_I_WWERT
I_XRECH = lv_I_XRECH
IMPORTING
E_DRSEG_UDC = lv_E_DRSEG_UDC ).

Links to Related Class(s)

IF_EX_MR...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!