SAP MCQ_SET_UPDATE_GROUPS_RESULT Function Module for Update Group for Statistics Update









MCQ_SET_UPDATE_GROUPS_RESULT is a standard mcq set update groups result SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update Group for Statistics Update 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 mcq set update groups result FM, simply by entering the name MCQ_SET_UPDATE_GROUPS_RESULT into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCQ9
Program Name: SAPLMCQ9
Main Program:
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MCQ_SET_UPDATE_GROUPS_RESULT 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 'MCQ_SET_UPDATE_GROUPS_RESULT'"Update Group for Statistics Update
EXPORTING
* I_STAFO_WA = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_USE_BUFFER = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
E_STAFO_RQUN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_STAFO_RALL = "

TABLES
* E_RG_STAFO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* E_RG_HERK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
.



IMPORTING Parameters details for MCQ_SET_UPDATE_GROUPS_RESULT

I_STAFO_WA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_USE_BUFFER - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: QM00-QKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MCQ_SET_UPDATE_GROUPS_RESULT

E_STAFO_RQUN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: TMCB-STAFO
Optional: No
Call by Reference: No ( called with pass by value option)

E_STAFO_RALL -

Data type: TMCB-STAFO
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MCQ_SET_UPDATE_GROUPS_RESULT

E_RG_STAFO - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_RG_HERK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MCQ_SET_UPDATE_GROUPS_RESULT 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_e_rg_stafo  TYPE STANDARD TABLE OF MCSOSTAFO, "   
lv_i_stafo_wa  TYPE QMIS_STAFO, "   SPACE
lv_e_stafo_rqun  TYPE TMCB-STAFO, "   
lt_e_rg_herk  TYPE STANDARD TABLE OF QRG04, "   
lv_e_stafo_rall  TYPE TMCB-STAFO, "   
lv_i_use_buffer  TYPE QM00-QKZ. "   SPACE

  CALL FUNCTION 'MCQ_SET_UPDATE_GROUPS_RESULT'  "Update Group for Statistics Update
    EXPORTING
         I_STAFO_WA = lv_i_stafo_wa
         I_USE_BUFFER = lv_i_use_buffer
    IMPORTING
         E_STAFO_RQUN = lv_e_stafo_rqun
         E_STAFO_RALL = lv_e_stafo_rall
    TABLES
         E_RG_STAFO = lt_e_rg_stafo
         E_RG_HERK = lt_e_rg_herk
. " MCQ_SET_UPDATE_GROUPS_RESULT




ABAP code using 7.40 inline data declarations to call FM MCQ_SET_UPDATE_GROUPS_RESULT

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_stafo_wa) = ' '.
 
"SELECT single STAFO FROM TMCB INTO @DATA(ld_e_stafo_rqun).
 
 
"SELECT single STAFO FROM TMCB INTO @DATA(ld_e_stafo_rall).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_use_buffer).
DATA(ld_i_use_buffer) = ' '.
 


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!