SAP EXIT_SAPLVBMD_001 Function Module for Shelf Life Expiration Date CFC
EXIT_SAPLVBMD_001 is a standard exit saplvbmd 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Shelf Life Expiration Date CFC 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 saplvbmd 001 FM, simply by entering the name EXIT_SAPLVBMD_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XMHD
Program Name: SAPLXMHD
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLVBMD_001 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_SAPLVBMD_001'"Shelf Life Expiration Date CFC.
EXPORTING
* I_BNCOM = "Batch Number Allocation: Communication Block (Dialog)
CHANGING
* C_BEZDT = "Shelf Life Expiration Date
* C_CHECK = "
* C_IPRKZ_HBD = "Period Indicator for Shelf Life Expiration Date
* C_IPRKZ_RLZ = "Period Indicator for Shelf Life Expiration Date
* C_RDMHD = "Rounding Rule for Calculation of SLED
* C_GESHB = "Total Shelf Life
* C_RSTLZ = "Minimum Remaining Shelf Life
* C_MHDAT = "Shelf Life Expiration Date
* C_HSDAT = "Shelf Life Expiration Date
* C_CALC = "
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.ADD_TIME_TO_DATE NOTRANSL: Addition Datum + Zeit (Tag, Woche, Monat, Jahr)
CHECK_MARA_IPRKZ NOTRANSL: Prüfbaustein für Feld MARA-IPRKZ
CONVERSION_EXIT_PERKZ_INPUT NOTRANSL: Konvertierungsroutine Periodenkennzeichen
CONVERSION_EXIT_PERKZ_OUTPUT NOTRANSL: Konvertierung Periodenkennzeichen
CONVERT_DATE_BY_PERIOD_INPUT NOTRANSL: Konvert. ext. Datum in internes Datumsformat
CONVERT_DATE_BY_PERIOD_OUTPUT NOTRANSL: Datumskonvert. gemäß Periodenkennzeichen aus Tab. PRDKZ
HELP_MULT_DATE NOTRANSL: PF4-Hilfe für Datum im externen Format (CHAR10)
ROUND_DATE NOTRANSL: Runden eines Datums entsprechend verschiedener Rundungsregeln
SUBTRACT_TIME_FROM_DATE NOTRANSL: Subtraktion Datum - Zeit (in Tagen, Wochen, Monaten oder Jahren)
VBMD_CHECK_CALCULATION_POSS NOTRANSL: Prüfung ob Neuberechnung des Verfallsdatums durchgeführt werden
VBMD_FURTHER_CALCULATION NOTRANSL: Neuberechnung des Verfallsdatums in MHD-Abwicklung
VBMD_NO_FURTHER_CALCULATION NOTRANSL: Keine Neuberechnung des Verfallsdatums in MHD-Abwicklung
VB_MAINTAIN_MHD NOTRANSL: Mindesthaltbarkeitsdatum überprüfen
IMPORTING Parameters details for EXIT_SAPLVBMD_001
I_BNCOM - Batch Number Allocation: Communication Block (Dialog)
Data type: BNCOMOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLVBMD_001
C_BEZDT - Shelf Life Expiration Date
Data type: MCHA-VFDATOptional: Yes
Call by Reference: No ( called with pass by value option)
C_CHECK -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
C_IPRKZ_HBD - Period Indicator for Shelf Life Expiration Date
Data type: MARA-IPRKZOptional: Yes
Call by Reference: No ( called with pass by value option)
C_IPRKZ_RLZ - Period Indicator for Shelf Life Expiration Date
Data type: MARA-IPRKZOptional: Yes
Call by Reference: No ( called with pass by value option)
C_RDMHD - Rounding Rule for Calculation of SLED
Data type: MARA-RDMHDOptional: Yes
Call by Reference: No ( called with pass by value option)
C_GESHB - Total Shelf Life
Data type: MARA-MHDHBOptional: Yes
Call by Reference: No ( called with pass by value option)
C_RSTLZ - Minimum Remaining Shelf Life
Data type: MARA-MHDRZOptional: Yes
Call by Reference: No ( called with pass by value option)
C_MHDAT - Shelf Life Expiration Date
Data type: MCHA-VFDATOptional: Yes
Call by Reference: No ( called with pass by value option)
C_HSDAT - Shelf Life Expiration Date
Data type: MCHA-VFDATOptional: Yes
Call by Reference: No ( called with pass by value option)
C_CALC -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLVBMD_001 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_c_bezdt | TYPE MCHA-VFDAT, " | |||
| lv_i_bncom | TYPE BNCOM, " | |||
| lv_c_check | TYPE BNCOM, " | |||
| lv_c_iprkz_hbd | TYPE MARA-IPRKZ, " | |||
| lv_c_iprkz_rlz | TYPE MARA-IPRKZ, " | |||
| lv_c_rdmhd | TYPE MARA-RDMHD, " | |||
| lv_c_geshb | TYPE MARA-MHDHB, " | |||
| lv_c_rstlz | TYPE MARA-MHDRZ, " | |||
| lv_c_mhdat | TYPE MCHA-VFDAT, " | |||
| lv_c_hsdat | TYPE MCHA-VFDAT, " | |||
| lv_c_calc | TYPE MCHA. " |
|   CALL FUNCTION 'EXIT_SAPLVBMD_001' "Shelf Life Expiration Date CFC |
| EXPORTING | ||
| I_BNCOM | = lv_i_bncom | |
| CHANGING | ||
| C_BEZDT | = lv_c_bezdt | |
| C_CHECK | = lv_c_check | |
| C_IPRKZ_HBD | = lv_c_iprkz_hbd | |
| C_IPRKZ_RLZ | = lv_c_iprkz_rlz | |
| C_RDMHD | = lv_c_rdmhd | |
| C_GESHB | = lv_c_geshb | |
| C_RSTLZ | = lv_c_rstlz | |
| C_MHDAT | = lv_c_mhdat | |
| C_HSDAT | = lv_c_hsdat | |
| C_CALC | = lv_c_calc | |
| . " EXIT_SAPLVBMD_001 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLVBMD_001
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 VFDAT FROM MCHA INTO @DATA(ld_c_bezdt). | ||||
| "SELECT single IPRKZ FROM MARA INTO @DATA(ld_c_iprkz_hbd). | ||||
| "SELECT single IPRKZ FROM MARA INTO @DATA(ld_c_iprkz_rlz). | ||||
| "SELECT single RDMHD FROM MARA INTO @DATA(ld_c_rdmhd). | ||||
| "SELECT single MHDHB FROM MARA INTO @DATA(ld_c_geshb). | ||||
| "SELECT single MHDRZ FROM MARA INTO @DATA(ld_c_rstlz). | ||||
| "SELECT single VFDAT FROM MCHA INTO @DATA(ld_c_mhdat). | ||||
| "SELECT single VFDAT FROM MCHA INTO @DATA(ld_c_hsdat). | ||||
Search for further information about these or an SAP related objects