CRP_CALC_B SAP Method CRP Calculation for Material Issues









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

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


Parameters of Method CRP_CALC_B

.

NameTypeData TypeDescriptionDefault Value
I_MKPFImportingTYPE
MKPF
Document Header, Material Document
I_MSEGImportingTYPE
MSEG
Document Segment, Material
I_YCURTPImportingTYPE
CURTP_S_MB
Table for YCURTP in SAPLMBGB
C_BEMCRChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_BESTDChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_BMCR2ChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_DM07MChangingTYPE
DM07M
Fields for Dialog Control - Module Pool SAPMM07M
C_IDEVCChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_SHBEMCRChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SHBMCR2ChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SHIDEVCChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SMBMCR2ChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_VERBRChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_BEMCRChangingTYPE
DMBTR_CS
Amount in Local Currency
C_BESTDChangingTYPE
DMBTR_CS
Amount in Local Currency
C_BMCR2ChangingTYPE
DMBTR_CS
Amount in Local Currency
C_IDEVCChangingTYPE
DMBTR_CS
Amount in Local Currency
C_VERBRChangingTYPE
DMBTR_CS
Amount in Local Currency



Exceptions of Method CRP_CALC_B

AMOUNT_OUT_OF_RANGE - The Calculated Foreign currency Amount Is too Big to Fit

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_BADI_JVA_MBGB.
DATA: lv_C_BEMCR TYPE BSEG-DMBTR,
lv_C_BESTD TYPE BSEG-DMBTR,
lv_C_BMCR2 TYPE BSEG-DMBTR,
lv_C_DM07M TYPE DM07M,
lv_C_IDEVC TYPE BSEG-DMBTR,
lv_C_SHBEMCR TYPE BSEG-SHKZG,
lv_C_SHBMCR2 TYPE BSEG-SHKZG,
lv_C_SHIDEVC TYPE BSEG-SHKZG,
lv_C_SMBMCR2 TYPE BSEG-SHKZG,
lv_C_VERBR TYPE BSEG-DMBTR,
lv_I_MKPF TYPE MKPF,
lv_I_MSEG TYPE MSEG,
lv_I_YCURTP TYPE CURTP_S_MB,
lv_C_BEMCR TYPE DMBTR_CS,
lv_C_BESTD TYPE DMBTR_CS,
lv_C_BMCR2 TYPE DMBTR_CS,
lv_C_IDEVC TYPE DMBTR_CS,
lv_C_VERBR TYPE DMBTR_CS,
lv_other TYPE c.

CALL METHOD lo_class=>CRP_CALC_B(
EXPORTING
I_MKPF = lv_I_MKPF
I_MSEG = lv_I_MSEG
I_YCURTP = lv_I_YCURTP
CHANGING
C_BEMCR = lv_C_BEMCR
C_BESTD = lv_C_BESTD
C_BMCR2 = lv_C_BMCR2
C_DM07M = lv_C_DM07M
C_IDEVC = lv_C_IDEVC
C_SHBEMCR = lv_C_SHBEMCR
C_SHBMCR2 = lv_C_SHBMCR2
C_SHIDEVC = lv_C_SHIDEVC
C_SMBMCR2 = lv_C_SMBMCR2
C_VERBR = lv_C_VERBR
C_BEMCR = lv_C_BEMCR
C_BESTD = lv_C_BESTD
C_BMCR2 = lv_C_BMCR2
C_IDEVC = lv_C_IDEVC
C_VERBR = lv_C_VERBR ).

Links to Related Class(s)

IF_EX_BA...
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!