SAP EXIT_SAPMMCP6_025 Function Module for User Exit for Saving Forecasts
EXIT_SAPMMCP6_025 is a standard exit sapmmcp6 025 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exit for Saving Forecasts 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 exit sapmmcp6 025 FM, simply by entering the name EXIT_SAPMMCP6_025 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XSOP
Program Name: SAPLXSOP
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPMMCP6_025 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 'EXIT_SAPMMCP6_025'"User Exit for Saving Forecasts.
EXPORTING
I_PLOBJ = "
I_VRSIO = "
I_FIELD = "
I_EPRWA = "
I_IPRWA = "
* I_MATNR = "
* I_WERKS = "
CHANGING
I_FLG_SAVE_NORMAL = "
TABLES
I_MELDU = "
I_PROGN = "
I_VERGA = "
IMPORTING Parameters details for EXIT_SAPMMCP6_025
I_PLOBJ -
Data type: LISR-PLOBJOptional: No
Call by Reference: No ( called with pass by value option)
I_VRSIO -
Data type: RMCP2-VRSIOOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELD -
Data type: MCP6_SQ-FIELDOptional: No
Call by Reference: No ( called with pass by value option)
I_EPRWA -
Data type: EPRWAOptional: No
Call by Reference: No ( called with pass by value option)
I_IPRWA -
Data type: IPRWAOptional: No
Call by Reference: No ( called with pass by value option)
I_MATNR -
Data type: MARC-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS -
Data type: MARC-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPMMCP6_025
I_FLG_SAVE_NORMAL -
Data type: T445A-FLG03Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPMMCP6_025
I_MELDU -
Data type: MELDUOptional: No
Call by Reference: No ( called with pass by value option)
I_PROGN -
Data type: PROGMOptional: No
Call by Reference: No ( called with pass by value option)
I_VERGA -
Data type: VERGAOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPMMCP6_025 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_i_meldu | TYPE STANDARD TABLE OF MELDU, " | |||
lv_i_plobj | TYPE LISR-PLOBJ, " | |||
lv_i_flg_save_normal | TYPE T445A-FLG03, " | |||
lt_i_progn | TYPE STANDARD TABLE OF PROGM, " | |||
lv_i_vrsio | TYPE RMCP2-VRSIO, " | |||
lv_i_field | TYPE MCP6_SQ-FIELD, " | |||
lt_i_verga | TYPE STANDARD TABLE OF VERGA, " | |||
lv_i_eprwa | TYPE EPRWA, " | |||
lv_i_iprwa | TYPE IPRWA, " | |||
lv_i_matnr | TYPE MARC-MATNR, " | |||
lv_i_werks | TYPE MARC-WERKS. " |
  CALL FUNCTION 'EXIT_SAPMMCP6_025' "User Exit for Saving Forecasts |
EXPORTING | ||
I_PLOBJ | = lv_i_plobj | |
I_VRSIO | = lv_i_vrsio | |
I_FIELD | = lv_i_field | |
I_EPRWA | = lv_i_eprwa | |
I_IPRWA | = lv_i_iprwa | |
I_MATNR | = lv_i_matnr | |
I_WERKS | = lv_i_werks | |
CHANGING | ||
I_FLG_SAVE_NORMAL | = lv_i_flg_save_normal | |
TABLES | ||
I_MELDU | = lt_i_meldu | |
I_PROGN | = lt_i_progn | |
I_VERGA | = lt_i_verga | |
. " EXIT_SAPMMCP6_025 |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMMCP6_025
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 PLOBJ FROM LISR INTO @DATA(ld_i_plobj). | ||||
"SELECT single FLG03 FROM T445A INTO @DATA(ld_i_flg_save_normal). | ||||
"SELECT single VRSIO FROM RMCP2 INTO @DATA(ld_i_vrsio). | ||||
"SELECT single FIELD FROM MCP6_SQ INTO @DATA(ld_i_field). | ||||
"SELECT single MATNR FROM MARC INTO @DATA(ld_i_matnr). | ||||
"SELECT single WERKS FROM MARC INTO @DATA(ld_i_werks). | ||||
Search for further information about these or an SAP related objects