SAP FVAY_N_OBJECT_GET Function Module for









FVAY_N_OBJECT_GET is a standard fvay n object get 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 get FM, simply by entering the name FVAY_N_OBJECT_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVAY_N
Program Name: SAPLFVAY_N
Main Program: SAPLFVAY_N
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FVAY_N_OBJECT_GET 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_GET'"
EXPORTING
* I_OBJTYP = ' ' "Object type
I_OBJNR = "Object Number (Virtual Object)
* I_ADDRESS_ID = "Address ID

IMPORTING
E_VZOBJECT_INT = "
E_VZOBJECT_INT_OLD = "
E_ADDRESS_INT = "
E_FIRST_LOADED = "

EXCEPTIONS
OBJECT_NOT_FOUND = 1 ADDRESS_NOT_FOUND = 2 KEY_ERROR = 3
.



IMPORTING Parameters details for FVAY_N_OBJECT_GET

I_OBJTYP - Object type

Data type: VZOBJECT-ADROBJTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJNR - Object Number (Virtual Object)

Data type: VZOBJECT-ADROBJNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_ADDRESS_ID - Address ID

Data type: ADDR1_SEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FVAY_N_OBJECT_GET

E_VZOBJECT_INT -

Data type: VZOBJECT_INT
Optional: No
Call by Reference: No ( called with pass by value option)

E_VZOBJECT_INT_OLD -

Data type: VZOBJECT_INT
Optional: No
Call by Reference: No ( called with pass by value option)

E_ADDRESS_INT -

Data type: SZADR_ADDR1_COMPLETE
Optional: No
Call by Reference: No ( called with pass by value option)

E_FIRST_LOADED -

Data type: BOOLE_D
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

OBJECT_NOT_FOUND - Object Data not Found

Data type:
Optional: No
Call by Reference: Yes

ADDRESS_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

KEY_ERROR - Invalid Key

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FVAY_N_OBJECT_GET 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_i_objtyp  TYPE VZOBJECT-ADROBJTYP, "   SPACE
lv_e_vzobject_int  TYPE VZOBJECT_INT, "   
lv_object_not_found  TYPE VZOBJECT_INT, "   
lv_i_objnr  TYPE VZOBJECT-ADROBJNR, "   
lv_address_not_found  TYPE VZOBJECT, "   
lv_e_vzobject_int_old  TYPE VZOBJECT_INT, "   
lv_key_error  TYPE VZOBJECT_INT, "   
lv_i_address_id  TYPE ADDR1_SEL, "   
lv_e_address_int  TYPE SZADR_ADDR1_COMPLETE, "   
lv_e_first_loaded  TYPE BOOLE_D. "   

  CALL FUNCTION 'FVAY_N_OBJECT_GET'  "
    EXPORTING
         I_OBJTYP = lv_i_objtyp
         I_OBJNR = lv_i_objnr
         I_ADDRESS_ID = lv_i_address_id
    IMPORTING
         E_VZOBJECT_INT = lv_e_vzobject_int
         E_VZOBJECT_INT_OLD = lv_e_vzobject_int_old
         E_ADDRESS_INT = lv_e_address_int
         E_FIRST_LOADED = lv_e_first_loaded
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
        ADDRESS_NOT_FOUND = 2
        KEY_ERROR = 3
. " FVAY_N_OBJECT_GET




ABAP code using 7.40 inline data declarations to call FM FVAY_N_OBJECT_GET

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 ADROBJTYP FROM VZOBJECT INTO @DATA(ld_i_objtyp).
DATA(ld_i_objtyp) = ' '.
 
 
 
"SELECT single ADROBJNR FROM VZOBJECT INTO @DATA(ld_i_objnr).
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!