SAP RET1_VIMIMV_SELECT_SINGLE Function Module for
RET1_VIMIMV_SELECT_SINGLE is a standard ret1 vimimv select single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ret1 vimimv select single FM, simply by entering the name RET1_VIMIMV_SELECT_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RET1
Program Name: SAPLRET1
Main Program: SAPLRET1
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RET1_VIMIMV_SELECT_SINGLE 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 'RET1_VIMIMV_SELECT_SINGLE'".
EXPORTING
* IV_BUKRS = "
* IV_KEYDATE = "
* IV_PSTLZ = "
* IV_ORT = "
* IV_STRAS = "
* IV_KOSTL = "
* IV_WITHOUT_DIALOG = ' ' "
* IV_SMIVE = "
* IV_SMVART = "
* IV_PARTNR = "
* IV_KUNNR = "
* IV_LIFNR = "
* IV_LASTNAME = "
* IV_FIRSTNAME = "
* IV_BIRTHDATE = "
IMPORTING
EV_VIMIMV = "
EV_VICN01 = "
TABLES
* ET_VIMIMV = "
* ET_VICN01 = "
EXCEPTIONS
MV_NOT_FOUND = 1 PARTNER_NOT_FOUND = 2 BUKRS_NOT_FOUND = 3
IMPORTING Parameters details for RET1_VIMIMV_SELECT_SINGLE
IV_BUKRS -
Data type: RETIFLDS-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KEYDATE -
Data type: RETIFLDS-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PSTLZ -
Data type: RETIADRS-PSTLZOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ORT -
Data type: RETIADRS-ORT01Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_STRAS -
Data type: RETIADRS-STRASOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KOSTL -
Data type: RETIFLDS-KOSTLOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_WITHOUT_DIALOG -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SMIVE -
Data type: RETIFLDS-SMIVEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SMVART -
Data type: RETIFLDS-SMVARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PARTNR -
Data type: RETIFLDS-PARTNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KUNNR -
Data type: RETIFLDS-KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LIFNR -
Data type: RETIFLDS-LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LASTNAME -
Data type: BP000-NAME_LASTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FIRSTNAME -
Data type: BP000-NAME_FIRSTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_BIRTHDATE -
Data type: BP000-BIRTH_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RET1_VIMIMV_SELECT_SINGLE
EV_VIMIMV -
Data type: VIMIMVOptional: No
Call by Reference: No ( called with pass by value option)
EV_VICN01 -
Data type: VICN01Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RET1_VIMIMV_SELECT_SINGLE
ET_VIMIMV -
Data type: VIMIMVOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_VICN01 -
Data type: VICN01Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MV_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARTNER_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUKRS_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RET1_VIMIMV_SELECT_SINGLE 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_iv_bukrs | TYPE RETIFLDS-BUKRS, " | |||
| lt_et_vimimv | TYPE STANDARD TABLE OF VIMIMV, " | |||
| lv_ev_vimimv | TYPE VIMIMV, " | |||
| lv_mv_not_found | TYPE VIMIMV, " | |||
| lv_iv_keydate | TYPE RETIFLDS-DATUM, " | |||
| lv_iv_pstlz | TYPE RETIADRS-PSTLZ, " | |||
| lv_iv_ort | TYPE RETIADRS-ORT01, " | |||
| lv_iv_stras | TYPE RETIADRS-STRAS, " | |||
| lv_iv_kostl | TYPE RETIFLDS-KOSTL, " | |||
| lv_iv_without_dialog | TYPE RETIFLDS, " SPACE | |||
| lv_iv_smive | TYPE RETIFLDS-SMIVE, " | |||
| lt_et_vicn01 | TYPE STANDARD TABLE OF VICN01, " | |||
| lv_ev_vicn01 | TYPE VICN01, " | |||
| lv_partner_not_found | TYPE VICN01, " | |||
| lv_iv_smvart | TYPE RETIFLDS-SMVART, " | |||
| lv_bukrs_not_found | TYPE RETIFLDS, " | |||
| lv_iv_partnr | TYPE RETIFLDS-PARTNR, " | |||
| lv_iv_kunnr | TYPE RETIFLDS-KUNNR, " | |||
| lv_iv_lifnr | TYPE RETIFLDS-LIFNR, " | |||
| lv_iv_lastname | TYPE BP000-NAME_LAST, " | |||
| lv_iv_firstname | TYPE BP000-NAME_FIRST, " | |||
| lv_iv_birthdate | TYPE BP000-BIRTH_DATE. " |
|   CALL FUNCTION 'RET1_VIMIMV_SELECT_SINGLE' " |
| EXPORTING | ||
| IV_BUKRS | = lv_iv_bukrs | |
| IV_KEYDATE | = lv_iv_keydate | |
| IV_PSTLZ | = lv_iv_pstlz | |
| IV_ORT | = lv_iv_ort | |
| IV_STRAS | = lv_iv_stras | |
| IV_KOSTL | = lv_iv_kostl | |
| IV_WITHOUT_DIALOG | = lv_iv_without_dialog | |
| IV_SMIVE | = lv_iv_smive | |
| IV_SMVART | = lv_iv_smvart | |
| IV_PARTNR | = lv_iv_partnr | |
| IV_KUNNR | = lv_iv_kunnr | |
| IV_LIFNR | = lv_iv_lifnr | |
| IV_LASTNAME | = lv_iv_lastname | |
| IV_FIRSTNAME | = lv_iv_firstname | |
| IV_BIRTHDATE | = lv_iv_birthdate | |
| IMPORTING | ||
| EV_VIMIMV | = lv_ev_vimimv | |
| EV_VICN01 | = lv_ev_vicn01 | |
| TABLES | ||
| ET_VIMIMV | = lt_et_vimimv | |
| ET_VICN01 | = lt_et_vicn01 | |
| EXCEPTIONS | ||
| MV_NOT_FOUND = 1 | ||
| PARTNER_NOT_FOUND = 2 | ||
| BUKRS_NOT_FOUND = 3 | ||
| . " RET1_VIMIMV_SELECT_SINGLE | ||
ABAP code using 7.40 inline data declarations to call FM RET1_VIMIMV_SELECT_SINGLE
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 BUKRS FROM RETIFLDS INTO @DATA(ld_iv_bukrs). | ||||
| "SELECT single DATUM FROM RETIFLDS INTO @DATA(ld_iv_keydate). | ||||
| "SELECT single PSTLZ FROM RETIADRS INTO @DATA(ld_iv_pstlz). | ||||
| "SELECT single ORT01 FROM RETIADRS INTO @DATA(ld_iv_ort). | ||||
| "SELECT single STRAS FROM RETIADRS INTO @DATA(ld_iv_stras). | ||||
| "SELECT single KOSTL FROM RETIFLDS INTO @DATA(ld_iv_kostl). | ||||
| DATA(ld_iv_without_dialog) | = ' '. | |||
| "SELECT single SMIVE FROM RETIFLDS INTO @DATA(ld_iv_smive). | ||||
| "SELECT single SMVART FROM RETIFLDS INTO @DATA(ld_iv_smvart). | ||||
| "SELECT single PARTNR FROM RETIFLDS INTO @DATA(ld_iv_partnr). | ||||
| "SELECT single KUNNR FROM RETIFLDS INTO @DATA(ld_iv_kunnr). | ||||
| "SELECT single LIFNR FROM RETIFLDS INTO @DATA(ld_iv_lifnr). | ||||
| "SELECT single NAME_LAST FROM BP000 INTO @DATA(ld_iv_lastname). | ||||
| "SELECT single NAME_FIRST FROM BP000 INTO @DATA(ld_iv_firstname). | ||||
| "SELECT single BIRTH_DATE FROM BP000 INTO @DATA(ld_iv_birthdate). | ||||
Search for further information about these or an SAP related objects