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

.

NameTypeData TypeDescriptionDefault Value
I_AFVGDImportingTYPE
AFVGD
Order: Dialog table for Table AFVG (order operation)
I_ARBIDImportingTYPE
AFVGD-ARBID
Object ID of the resource (work centre)
I_CAUFVDImportingTYPE
CAUFVD
Dialog structure for order headers and items
I_COMPImportingTYPE
MARA-MATNR
Material number
I_FABKLImportingTYPE
T001W-FABKL
Factory calendar key
I_LGORTImportingTYPE
MARD-LGORT
Storage location
I_ORCODImportingTYPE
ADPMPRIOHD-ORCOD
CS/PM Order Code Indicating Rotable Process
I_PRFImportingTYPE
ADPMPRIOPRF
CMC Profile
I_PRKEYImportingTYPE
ADPMPRIOHD-PRKEY
Rotable Control: Priority Key
T_AFVGDImportingTYPE
TY_T_AFVGDGET
Order: Dialog table for Table AFVG (order operation)
C_PRVALChangingTYPE
ADPM_RTPRIO
Priority for CS/PM Orders with Rotable Type
C_PRVAL_ORDChangingTYPE
ADPRVALORD
PRVAL structure for orders
E_RCChangingTYPE
SY-SUBRC
Return value, return value after ABAP statements



Exceptions of Method CALC_PRIORITY

INTERNAL_ERROR - internal error

Example 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



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!