SAP FVAY_N_OBJECT_SELECT Function Module for
FVAY_N_OBJECT_SELECT is a standard fvay n object select 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 fvay n object select FM, simply by entering the name FVAY_N_OBJECT_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVAY_N
Program Name: SAPLFVAY_N
Main Program: SAPLFVAY_N
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVAY_N_OBJECT_SELECT 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 'FVAY_N_OBJECT_SELECT'".
EXPORTING
* AUSW_KZ_ADR = ' ' "
* AUSW_KZ_OBJ = 'A' "
* NO_DISPL_ADR_IF_ONE = ' ' "
* NO_DISPL_OBJ_IF_ONE = ' ' "
* I_OBJECT = "
* I_ADDRESS = "
* SEARCH_BY_WILDCARDS = 'X' "
TABLES
E_OBJECT = "Object Data (Virtual Object) - Internal
E_ADDRESS = "Address Return Structure
* I_RANGES = "Structure for FM RS_REFR_FROM_DYN_SEL
EXCEPTIONS
ERROR = 1 NO_ADDRESS_SELECTED = 2 NO_OBJECT_SELECTED = 3
IMPORTING Parameters details for FVAY_N_OBJECT_SELECT
AUSW_KZ_ADR -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUSW_KZ_OBJ -
Data type: CHAR1Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DISPL_ADR_IF_ONE -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DISPL_OBJ_IF_ONE -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJECT -
Data type: VZOBJECT_INTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADDRESS -
Data type: SZADR_ADDR1_COMPLETEOptional: Yes
Call by Reference: Yes
SEARCH_BY_WILDCARDS -
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FVAY_N_OBJECT_SELECT
E_OBJECT - Object Data (Virtual Object) - Internal
Data type: VZOBJECT_INTOptional: No
Call by Reference: Yes
E_ADDRESS - Address Return Structure
Data type: ADDR1_VALOptional: No
Call by Reference: Yes
I_RANGES - Structure for FM RS_REFR_FROM_DYN_SEL
Data type: RSSELDYNOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ADDRESS_SELECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECT_SELECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVAY_N_OBJECT_SELECT 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_error | TYPE STRING, " | |||
| lt_e_object | TYPE STANDARD TABLE OF VZOBJECT_INT, " | |||
| lv_ausw_kz_adr | TYPE CHAR1, " SPACE | |||
| lt_e_address | TYPE STANDARD TABLE OF ADDR1_VAL, " | |||
| lv_ausw_kz_obj | TYPE CHAR1, " 'A' | |||
| lv_no_address_selected | TYPE CHAR1, " | |||
| lt_i_ranges | TYPE STANDARD TABLE OF RSSELDYN, " | |||
| lv_no_object_selected | TYPE RSSELDYN, " | |||
| lv_no_displ_adr_if_one | TYPE BOOLE_D, " SPACE | |||
| lv_no_displ_obj_if_one | TYPE BOOLE_D, " SPACE | |||
| lv_i_object | TYPE VZOBJECT_INT, " | |||
| lv_i_address | TYPE SZADR_ADDR1_COMPLETE, " | |||
| lv_search_by_wildcards | TYPE BOOLE_D. " 'X' |
|   CALL FUNCTION 'FVAY_N_OBJECT_SELECT' " |
| EXPORTING | ||
| AUSW_KZ_ADR | = lv_ausw_kz_adr | |
| AUSW_KZ_OBJ | = lv_ausw_kz_obj | |
| NO_DISPL_ADR_IF_ONE | = lv_no_displ_adr_if_one | |
| NO_DISPL_OBJ_IF_ONE | = lv_no_displ_obj_if_one | |
| I_OBJECT | = lv_i_object | |
| I_ADDRESS | = lv_i_address | |
| SEARCH_BY_WILDCARDS | = lv_search_by_wildcards | |
| TABLES | ||
| E_OBJECT | = lt_e_object | |
| E_ADDRESS | = lt_e_address | |
| I_RANGES | = lt_i_ranges | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| NO_ADDRESS_SELECTED = 2 | ||
| NO_OBJECT_SELECTED = 3 | ||
| . " FVAY_N_OBJECT_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM FVAY_N_OBJECT_SELECT
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_ausw_kz_adr) | = ' '. | |||
| DATA(ld_ausw_kz_obj) | = 'A'. | |||
| DATA(ld_no_displ_adr_if_one) | = ' '. | |||
| DATA(ld_no_displ_obj_if_one) | = ' '. | |||
| DATA(ld_search_by_wildcards) | = 'X'. | |||
Search for further information about these or an SAP related objects