DEFINE_TRAFFIC_LIGHTS SAP Method Method for Spec. Definition of Traffic Light Limit Values
Below is documentation, parameters and attributes of ABAP Method DEFINE_TRAFFIC_LIGHTS within SAP class IF_EX_MD_SET_TRAFFIC_LIGHTS_DS. 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_MD_SET_TRAFFIC_LIGHTS_DS 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 DEFINE_TRAFFIC_LIGHTS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method DEFINE_TRAFFIC_LIGHTS
.| Name | Type | Data Type | Description | Default Value |
| IS_MDKE | Importing | TYPE MDKE | Extract of header data for MRP document | |
| IV_BERID | Importing | TYPE BERID | MRP Area | |
| IV_MATNR | Importing | TYPE MATNR | Material Number | |
| IV_PLSCN | Importing | TYPE PLSCN | Planning Scenario of Long-Term Planning | |
| IV_WERKS | Importing | TYPE WERKS_D | Plant | |
| CS_MDAMP | Changing | TYPE MDAMP | Structure for Traffic Light Settings in MD04 |
Exceptions of Method DEFINE_TRAFFIC_LIGHTS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_MD_SET_TRAFFIC_LIGHTS_DS.
DATA: lv_CS_MDAMP TYPE MDAMP,
lv_IS_MDKE TYPE MDKE,
lv_IV_BERID TYPE BERID,
lv_IV_MATNR TYPE MATNR,
lv_IV_PLSCN TYPE PLSCN,
lv_IV_WERKS TYPE WERKS_D,
lv_other TYPE c.
CALL METHOD lo_class=>DEFINE_TRAFFIC_LIGHTS(
EXPORTING
IS_MDKE = lv_IS_MDKE
IV_BERID = lv_IV_BERID
IV_MATNR = lv_IV_MATNR
IV_PLSCN = lv_IV_PLSCN
IV_WERKS = lv_IV_WERKS
CHANGING
CS_MDAMP = lv_CS_MDAMP ).
Links to Related Class(s)
IF_EX_MD...Full list of available SAP object classes
Search for further information about these or an SAP related objects