GET_EVRC_FOR_EVENT SAP Method Get Event Reason Codes to which some event is assigned
Below is documentation, parameters and attributes of ABAP Method GET_EVRC_FOR_EVENT within SAP class /SCMTMS/IF_CUST_EVRC. 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 /SCMTMS/IF_CUST_EVRC 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 GET_EVRC_FOR_EVENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_EVRC_FOR_EVENT
.| Name | Type | Data Type | Description | Default Value |
| IV_EVENT | Importing | TYPE /SCMTMS/TOR_EVENT | Event Occuring for a Transportation Activity | |
| IV_SPRAS | Importing | TYPE SPRAS | Language Key | |
| ET_EVRC | Exporting | TYPE /SCMTMS/T_EVRC | Event Reason Codes | |
| ET_EVRCT | Exporting | TYPE /SCMTMS/T_EVRCT | Event Reason Code Description structure |
Exceptions of Method GET_EVRC_FOR_EVENT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMTMS/IF_CUST_EVRC.
DATA: lv_ET_EVRC TYPE /SCMTMS/T_EVRC,
lv_ET_EVRCT TYPE /SCMTMS/T_EVRCT,
lv_IV_EVENT TYPE /SCMTMS/TOR_EVENT,
lv_IV_SPRAS TYPE SPRAS,
lv_other TYPE c.
CALL METHOD lo_class=>GET_EVRC_FOR_EVENT(
EXPORTING
IV_EVENT = lv_IV_EVENT
IV_SPRAS = lv_IV_SPRAS
IMPORTING
ET_EVRC = lv_ET_EVRC
ET_EVRCT = lv_ET_EVRCT ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects