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
.| Name | Type | Data Type | Description | Default Value |
| I_MKPF | Importing | TYPE MKPF | Document Header, Material Document | |
| I_MSEG | Importing | TYPE MSEG | Document Segment, Material | |
| I_YCURTP | Importing | TYPE CURTP_S_MB | Table for YCURTP in SAPLMBGB | |
| C_BEMCR | Changing | TYPE BSEG-DMBTR | Amount in Local Currency | |
| C_BESTD | Changing | TYPE BSEG-DMBTR | Amount in Local Currency | |
| C_BMCR2 | Changing | TYPE BSEG-DMBTR | Amount in Local Currency | |
| C_DM07M | Changing | TYPE DM07M | Fields for Dialog Control - Module Pool SAPMM07M | |
| C_IDEVC | Changing | TYPE BSEG-DMBTR | Amount in Local Currency | |
| C_SHBEMCR | Changing | TYPE BSEG-SHKZG | Debit/Credit Indicator | |
| C_SHBMCR2 | Changing | TYPE BSEG-SHKZG | Debit/Credit Indicator | |
| C_SHIDEVC | Changing | TYPE BSEG-SHKZG | Debit/Credit Indicator | |
| C_SMBMCR2 | Changing | TYPE BSEG-SHKZG | Debit/Credit Indicator | |
| C_VERBR | Changing | TYPE BSEG-DMBTR | Amount in Local Currency | |
| C_BEMCR | Changing | TYPE DMBTR_CS | Amount in Local Currency | |
| C_BESTD | Changing | TYPE DMBTR_CS | Amount in Local Currency | |
| C_BMCR2 | Changing | TYPE DMBTR_CS | Amount in Local Currency | |
| C_IDEVC | Changing | TYPE DMBTR_CS | Amount in Local Currency | |
| C_VERBR | Changing | TYPE 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 FitExample 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