CRP_CALC_A SAP Method CRP Calculation for Material transfers









Below is documentation, parameters and attributes of ABAP Method CRP_CALC_A 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_A can also be found below:

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


Parameters of Method CRP_CALC_A

.

NameTypeData TypeDescriptionDefault Value
I_MKPFImportingTYPE
MKPF
Document Header
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_DM07MChangingTYPE
DM07M
Fields for Dialog Control - Module Pool SAPMM07M
C_SHBEMCRChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SHUBEMCChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SMBEMCRChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_SMUBEMCChangingTYPE
BSEG-SHKZG
Debit/Credit Indicator
C_UBEMCChangingTYPE
BSEG-DMBTR
Amount in Local Currency
C_UMBSTChangingTYPE
BSEG-DMBTR
Amount in Local Currency
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_UBEMCChangingTYPE
DMBTR_CS
Amount in Local Currency
C_UMBSTChangingTYPE
DMBTR_CS
Amount in Local Currency
C_VERBRChangingTYPE
DMBTR_CS
Amount in Local Currency



Exceptions of Method CRP_CALC_A

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_DM07M TYPE DM07M,
lv_C_SHBEMCR TYPE BSEG-SHKZG,
lv_C_SHUBEMC TYPE BSEG-SHKZG,
lv_C_SMBEMCR TYPE BSEG-SHKZG,
lv_C_SMUBEMC TYPE BSEG-SHKZG,
lv_C_UBEMC TYPE BSEG-DMBTR,
lv_C_UMBST TYPE BSEG-DMBTR,
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_UBEMC TYPE DMBTR_CS,
lv_C_UMBST TYPE DMBTR_CS,
lv_C_VERBR TYPE DMBTR_CS,
lv_other TYPE c.

CALL METHOD lo_class=>CRP_CALC_A(
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_DM07M = lv_C_DM07M
C_SHBEMCR = lv_C_SHBEMCR
C_SHUBEMC = lv_C_SHUBEMC
C_SMBEMCR = lv_C_SMBEMCR
C_SMUBEMC = lv_C_SMUBEMC
C_UBEMC = lv_C_UBEMC
C_UMBST = lv_C_UMBST
C_VERBR = lv_C_VERBR
C_BEMCR = lv_C_BEMCR
C_BESTD = lv_C_BESTD
C_UBEMC = lv_C_UBEMC
C_UMBST = lv_C_UMBST
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!