SAP MRM_TRAFFIC_SET Function Module for NOTRANSL: Setzen der 'Ampel' im Positions-/Verdichtungsbild
MRM_TRAFFIC_SET is a standard mrm traffic set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Setzen der 'Ampel' im Positions-/Verdichtungsbild processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for mrm traffic set FM, simply by entering the name MRM_TRAFFIC_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MR1M
Program Name: SAPLMR1M
Main Program: SAPLMR1M
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MRM_TRAFFIC_SET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MRM_TRAFFIC_SET'"NOTRANSL: Setzen der 'Ampel' im Positions-/Verdichtungsbild.
EXPORTING
I_XCORRECT = "Generic Type
I_XUNCLEAR = "Generic Type
IMPORTING
E_DYNPFIELD = "Name of an Icon
TABLES
* T_DRSEG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_DRSEGR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLMR1M_001 Customer Exit: Enter Invoice - Logistics Invoice Verification
EXIT_SAPLMR1M_002 Customer Exit: Change Proposed Account Assignment
EXIT_SAPLMR1M_003 Customer Exit: Pass On Document Header Data
IMPORTING Parameters details for MRM_TRAFFIC_SET
I_XCORRECT - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_XUNCLEAR - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MRM_TRAFFIC_SET
E_DYNPFIELD - Name of an Icon
Data type: ICON-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MRM_TRAFFIC_SET
T_DRSEG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MMCR_TDRSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
T_DRSEGR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MMCR_TDRSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MRM_TRAFFIC_SET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_t_drseg | TYPE STANDARD TABLE OF MMCR_TDRSEG, " | |||
| lv_i_xcorrect | TYPE C, " | |||
| lv_e_dynpfield | TYPE ICON-NAME, " | |||
| lt_t_drsegr | TYPE STANDARD TABLE OF MMCR_TDRSEG, " | |||
| lv_i_xunclear | TYPE C. " |
|   CALL FUNCTION 'MRM_TRAFFIC_SET' "NOTRANSL: Setzen der 'Ampel' im Positions-/Verdichtungsbild |
| EXPORTING | ||
| I_XCORRECT | = lv_i_xcorrect | |
| I_XUNCLEAR | = lv_i_xunclear | |
| IMPORTING | ||
| E_DYNPFIELD | = lv_e_dynpfield | |
| TABLES | ||
| T_DRSEG | = lt_t_drseg | |
| T_DRSEGR | = lt_t_drsegr | |
| . " MRM_TRAFFIC_SET | ||
ABAP code using 7.40 inline data declarations to call FM MRM_TRAFFIC_SET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single NAME FROM ICON INTO @DATA(ld_e_dynpfield). | ||||
Search for further information about these or an SAP related objects