CALC_PRIORITY SAP Method Calculate Customer Defined Priority for CMC
Below is documentation, parameters and attributes of ABAP Method CALC_PRIORITY within SAP class IF_EX_BADI_DIROT_PRCALC. 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_DIROT_PRCALC 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 CALC_PRIORITY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CALC_PRIORITY
.| Name | Type | Data Type | Description | Default Value |
| I_AFVGD | Importing | TYPE AFVGD | Order: Dialog table for Table AFVG (order operation) | |
| I_ARBID | Importing | TYPE AFVGD-ARBID | Object ID of the resource (work centre) | |
| I_CAUFVD | Importing | TYPE CAUFVD | Dialog structure for order headers and items | |
| I_COMP | Importing | TYPE MARA-MATNR | Material number | |
| I_FABKL | Importing | TYPE T001W-FABKL | Factory calendar key | |
| I_LGORT | Importing | TYPE MARD-LGORT | Storage location | |
| I_ORCOD | Importing | TYPE ADPMPRIOHD-ORCOD | CS/PM Order Code Indicating Rotable Process | |
| I_PRF | Importing | TYPE ADPMPRIOPRF | CMC Profile | |
| I_PRKEY | Importing | TYPE ADPMPRIOHD-PRKEY | Rotable Control: Priority Key | |
| T_AFVGD | Importing | TYPE TY_T_AFVGDGET | Order: Dialog table for Table AFVG (order operation) | |
| C_PRVAL | Changing | TYPE ADPM_RTPRIO | Priority for CS/PM Orders with Rotable Type | |
| C_PRVAL_ORD | Changing | TYPE ADPRVALORD | PRVAL structure for orders | |
| E_RC | Changing | TYPE SY-SUBRC | Return value, return value after ABAP statements |
Exceptions of Method CALC_PRIORITY
INTERNAL_ERROR - internal errorExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_DIROT_PRCALC.
DATA: lv_C_PRVAL TYPE ADPM_RTPRIO,
lv_C_PRVAL_ORD TYPE ADPRVALORD,
lv_E_RC TYPE SY-SUBRC,
lv_I_AFVGD TYPE AFVGD,
lv_I_ARBID TYPE AFVGD-ARBID,
lv_I_CAUFVD TYPE CAUFVD,
lv_I_COMP TYPE MARA-MATNR,
lv_I_FABKL TYPE T001W-FABKL,
lv_I_LGORT TYPE MARD-LGORT,
lv_I_ORCOD TYPE ADPMPRIOHD-ORCOD,
lv_I_PRF TYPE ADPMPRIOPRF,
lv_I_PRKEY TYPE ADPMPRIOHD-PRKEY,
lv_T_AFVGD TYPE TY_T_AFVGDGET,
lv_other TYPE c.
CALL METHOD lo_class=>CALC_PRIORITY(
EXPORTING
I_AFVGD = lv_I_AFVGD
I_ARBID = lv_I_ARBID
I_CAUFVD = lv_I_CAUFVD
I_COMP = lv_I_COMP
I_FABKL = lv_I_FABKL
I_LGORT = lv_I_LGORT
I_ORCOD = lv_I_ORCOD
I_PRF = lv_I_PRF
I_PRKEY = lv_I_PRKEY
T_AFVGD = lv_T_AFVGD
CHANGING
C_PRVAL = lv_C_PRVAL
C_PRVAL_ORD = lv_C_PRVAL_ORD
E_RC = lv_E_RC ).
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