SAP MARC_ADD_REF_MTVFP Function Module for NOTRANSL: Vorlagehandling Verfügbarkeitsgruppe MARC-MTVFP vor Referenzdate
MARC_ADD_REF_MTVFP is a standard marc add ref mtvfp 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: Vorlagehandling Verfügbarkeitsgruppe MARC-MTVFP vor Referenzdate 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 marc add ref mtvfp FM, simply by entering the name MARC_ADD_REF_MTVFP into the relevant SAP transaction such as SE37 or SE38.
Function Group: MG10
Program Name: SAPLMG10
Main Program: SAPLMG10
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MARC_ADD_REF_MTVFP 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 'MARC_ADD_REF_MTVFP'"NOTRANSL: Vorlagehandling Verfügbarkeitsgruppe MARC-MTVFP vor Referenzdate.
EXPORTING
WMARC = "
WRMMG1 = "
WPTAB = "
* KZRFB = ' ' "
* FLG_UEBERNAHME = ' ' "
* IV_STATUS = ' ' "Maintenance Status
* IV_SETFLAGS = ' ' "Checkbox
* IV_RESETFLAGS = ' ' "Checkbox
IMPORTING
WMARC = "
IMPORTING Parameters details for MARC_ADD_REF_MTVFP
WMARC -
Data type: MARCOptional: No
Call by Reference: No ( called with pass by value option)
WRMMG1 -
Data type: RMMG1Optional: No
Call by Reference: No ( called with pass by value option)
WPTAB -
Data type: SPTAPOptional: No
Call by Reference: No ( called with pass by value option)
KZRFB -
Data type: MTCOM-KZRFBDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_UEBERNAHME -
Data type: T130F-KZREFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_STATUS - Maintenance Status
Data type: T130F-PSTATDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SETFLAGS - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_RESETFLAGS - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MARC_ADD_REF_MTVFP
WMARC -
Data type: MARCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MARC_ADD_REF_MTVFP 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_wmarc | TYPE MARC, " | |||
| lv_wmarc | TYPE MARC, " | |||
| lv_wrmmg1 | TYPE RMMG1, " | |||
| lv_wptab | TYPE SPTAP, " | |||
| lv_kzrfb | TYPE MTCOM-KZRFB, " SPACE | |||
| lv_flg_uebernahme | TYPE T130F-KZREF, " SPACE | |||
| lv_iv_status | TYPE T130F-PSTAT, " SPACE | |||
| lv_iv_setflags | TYPE XFELD, " SPACE | |||
| lv_iv_resetflags | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'MARC_ADD_REF_MTVFP' "NOTRANSL: Vorlagehandling Verfügbarkeitsgruppe MARC-MTVFP vor Referenzdate |
| EXPORTING | ||
| WMARC | = lv_wmarc | |
| WRMMG1 | = lv_wrmmg1 | |
| WPTAB | = lv_wptab | |
| KZRFB | = lv_kzrfb | |
| FLG_UEBERNAHME | = lv_flg_uebernahme | |
| IV_STATUS | = lv_iv_status | |
| IV_SETFLAGS | = lv_iv_setflags | |
| IV_RESETFLAGS | = lv_iv_resetflags | |
| IMPORTING | ||
| WMARC | = lv_wmarc | |
| . " MARC_ADD_REF_MTVFP | ||
ABAP code using 7.40 inline data declarations to call FM MARC_ADD_REF_MTVFP
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 KZRFB FROM MTCOM INTO @DATA(ld_kzrfb). | ||||
| DATA(ld_kzrfb) | = ' '. | |||
| "SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme). | ||||
| DATA(ld_flg_uebernahme) | = ' '. | |||
| "SELECT single PSTAT FROM T130F INTO @DATA(ld_iv_status). | ||||
| DATA(ld_iv_status) | = ' '. | |||
| DATA(ld_iv_setflags) | = ' '. | |||
| DATA(ld_iv_resetflags) | = ' '. | |||
Search for further information about these or an SAP related objects