DO_ACCOUNT_DETERMINATION SAP Method Account determination for document items
Below is documentation, parameters and attributes of ABAP Method DO_ACCOUNT_DETERMINATION within SAP class IF_MEV_ACC_DETERMINATION_MM. 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_MEV_ACC_DETERMINATION_MM 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 DO_ACCOUNT_DETERMINATION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method DO_ACCOUNT_DETERMINATION
.Name | Type | Data Type | Description | Default Value |
IV_BUKRS | Importing | TYPE BUKRS | Company Code | |
IV_BWTAR | Importing | TYPE BWTAR_D | Material Master View on Valuation Records | |
IV_KTOSL | Importing | TYPE KTOSL | ||
IV_MATNR | Importing | TYPE MATNR | Material Number | |
IV_SHKZG | Importing | TYPE SHKZG | ||
IV_WERKS | Importing | TYPE WERKS_D | Plant Table for National (Centrally Agreed) Contracts | |
EV_ACCOUNT | Exporting | TYPE SAKNR | G/L Account Number | |
EV_ACCOUNT_TYPE | Exporting | TYPE KOART | Account Type | |
EV_POSTING_KEY | Exporting | TYPE BSCHH | Posting Key | |
EV_TAX_CODE | Exporting | TYPE MWSKZ_NSTV | Input Tax Code for Non-Taxable Transactions | |
EV_VALUATION_AREA | Exporting | TYPE BWKEY | Valuation Area | |
EV_VALUATION_CLASS | Exporting | TYPE BKLAS | Valuation Class | |
EV_VALUATION_GRPG_CODE | Exporting | TYPE BWMOD | Valuation Grouping Code |
Exceptions of Method DO_ACCOUNT_DETERMINATION
CX_CMM_DB_ACCESS - Commodity Management: Error in invoice anticipationExample ABAP coding
DATA: lo_class TYPE REF TO IF_MEV_ACC_DETERMINATION_MM.
DATA: lv_EV_ACCOUNT TYPE SAKNR,
lv_EV_ACCOUNT_TYPE TYPE KOART,
lv_EV_POSTING_KEY TYPE BSCHH,
lv_EV_TAX_CODE TYPE MWSKZ_NSTV,
lv_EV_VALUATION_AREA TYPE BWKEY,
lv_EV_VALUATION_CLASS TYPE BKLAS,
lv_EV_VALUATION_GRPG_CODE TYPE BWMOD,
lv_IV_BUKRS TYPE BUKRS,
lv_IV_BWTAR TYPE BWTAR_D,
lv_IV_KTOSL TYPE KTOSL,
lv_IV_MATNR TYPE MATNR,
lv_IV_SHKZG TYPE SHKZG,
lv_IV_WERKS TYPE WERKS_D,
lv_other TYPE c.
CALL METHOD lo_class=>DO_ACCOUNT_DETERMINATION(
EXPORTING
IV_BUKRS = lv_IV_BUKRS
IV_BWTAR = lv_IV_BWTAR
IV_KTOSL = lv_IV_KTOSL
IV_MATNR = lv_IV_MATNR
IV_SHKZG = lv_IV_SHKZG
IV_WERKS = lv_IV_WERKS
IMPORTING
EV_ACCOUNT = lv_EV_ACCOUNT
EV_ACCOUNT_TYPE = lv_EV_ACCOUNT_TYPE
EV_POSTING_KEY = lv_EV_POSTING_KEY
EV_TAX_CODE = lv_EV_TAX_CODE
EV_VALUATION_AREA = lv_EV_VALUATION_AREA
EV_VALUATION_CLASS = lv_EV_VALUATION_CLASS
EV_VALUATION_GRPG_CODE = lv_EV_VALUATION_GRPG_CODE ).
Links to Related Class(s)
IF_MEV_A...Full list of available SAP object classes
Search for further information about these or an SAP related objects