SAP MCWPS_RESULTS_DISPLAY Function Module for NOTRANSL: Baustein zur Anzeige von Ergebnissen der Analyse in Form eines B









MCWPS_RESULTS_DISPLAY is a standard mcwps results display 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: Baustein zur Anzeige von Ergebnissen der Analyse in Form eines B 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 mcwps results display FM, simply by entering the name MCWPS_RESULTS_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCWPS
Program Name: SAPLMCWPS
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MCWPS_RESULTS_DISPLAY 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 'MCWPS_RESULTS_DISPLAY'"NOTRANSL: Baustein zur Anzeige von Ergebnissen der Analyse in Form eines B
EXPORTING
I_MCWPSC = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_TOPN = '100' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
I_TAB_L1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TAB_L2 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TAB_L3 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_RULES_L2 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_RULES_L3 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_SL_DATUM = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_SL_MATKL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
.



IMPORTING Parameters details for MCWPS_RESULTS_DISPLAY

I_MCWPSC - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSC
Optional: No
Call by Reference: No ( called with pass by value option)

I_TOPN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_TOPN
Default: '100'
Optional: Yes
Call by Reference: Yes

I_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: CHAR30
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for MCWPS_RESULTS_DISPLAY

I_TAB_L1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSI1
Optional: No
Call by Reference: No ( called with pass by value option)

I_TAB_L2 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSI2
Optional: No
Call by Reference: No ( called with pass by value option)

I_TAB_L3 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSI3
Optional: No
Call by Reference: No ( called with pass by value option)

I_RULES_L2 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSR2
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RULES_L3 - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCWPSR3
Optional: No
Call by Reference: No ( called with pass by value option)

I_SL_DATUM - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BLDAT_RAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SL_MATKL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCBMATKL
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MCWPS_RESULTS_DISPLAY 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:
lv_i_mcwpsc  TYPE MCWPSC, "   
lt_i_tab_l1  TYPE STANDARD TABLE OF MCWPSI1, "   
lv_i_topn  TYPE MCW_TOPN, "   '100'
lt_i_tab_l2  TYPE STANDARD TABLE OF MCWPSI2, "   
lv_i_header  TYPE CHAR30, "   
lt_i_tab_l3  TYPE STANDARD TABLE OF MCWPSI3, "   
lt_i_rules_l2  TYPE STANDARD TABLE OF MCWPSR2, "   
lt_i_rules_l3  TYPE STANDARD TABLE OF MCWPSR3, "   
lt_i_sl_datum  TYPE STANDARD TABLE OF BLDAT_RAN, "   
lt_i_sl_matkl  TYPE STANDARD TABLE OF MCBMATKL. "   

  CALL FUNCTION 'MCWPS_RESULTS_DISPLAY'  "NOTRANSL: Baustein zur Anzeige von Ergebnissen der Analyse in Form eines B
    EXPORTING
         I_MCWPSC = lv_i_mcwpsc
         I_TOPN = lv_i_topn
         I_HEADER = lv_i_header
    TABLES
         I_TAB_L1 = lt_i_tab_l1
         I_TAB_L2 = lt_i_tab_l2
         I_TAB_L3 = lt_i_tab_l3
         I_RULES_L2 = lt_i_rules_l2
         I_RULES_L3 = lt_i_rules_l3
         I_SL_DATUM = lt_i_sl_datum
         I_SL_MATKL = lt_i_sl_matkl
. " MCWPS_RESULTS_DISPLAY




ABAP code using 7.40 inline data declarations to call FM MCWPS_RESULTS_DISPLAY

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.

 
 
DATA(ld_i_topn) = '100'.
 
 
 
 
 
 
 
 


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!