Ansicht
Dokumentation

BAPI_MATVAL_DEBIT_CREDIT - Debit/Credit Material

BAPI_MATVAL_DEBIT_CREDIT - Debit/Credit Material

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

With this Business Application Programming Interface (BAPI), you can debit and credit materials retroactively and at the current date:

  • If you have activated the material ledger, you can debit and credit materials independently of each another in up to three currencies or valuations.
  • If you have not activated the material ledger, you can debit and credit materials only in the company code currency and with legal valuation.

The system makes the following postings:

  • For materials with the standard price it posts the revaluation amount to a price difference account.
  • For materials with average moving price, it posts the revaluation amount depending on the reference quantity to a price difference account or to a material stock account.

Note

You can define that the account determination is made independently of the price change reason. For additional information, see the documentation for Customizing of Materials Management under Valuation and Account Assignment -> Reasons for Price Changes.

Example

The reference quantity of a material that has been valuated with the moving average price amounts to 100 pieces, the inventory quantity amounts to 50 pieces with an inventory value of EUR 500. With a subsequent debit of EUR 100, EUR 50 is posted to the inventory account and EUR 50 to the price difference account.

Notes

The function of this BAPI corresponds to the function that is available to you from the SAP Easy Access screen under Logistics -> Materials Management -> Valuation -> Change in Material Price -> Debit/Credit Material (transaction MR22).

If you use this BAPI, the system checks authorization object K_MLPR_VA with activity 44 (Mark).

Further information





Parameters

DEBITCREDITDOCUMENT
DOC_TEXT
MATERIAL
MATERIAL_DEBIT_CREDIT
MATERIAL_EVG
MATERIAL_LONG
POSTING_DATE
REASON_CODE
REF_DOC_NO
RETURN
VALUATIONAREA
VALUATIONTYPE

Exceptions

Function Group

CKMLSENDDEBICREDI

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3616 Date: 20240523 Time: 180527     sap01-206 ( 52 ms )