SAP FVAY_NEW_ADDRESS_ASSIGN Function Module for
FVAY_NEW_ADDRESS_ASSIGN is a standard fvay new address assign 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 new address assign FM, simply by entering the name FVAY_NEW_ADDRESS_ASSIGN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVAY_NEW
Program Name: SAPLFVAY_NEW
Main Program: SAPLFVAY_NEW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVAY_NEW_ADDRESS_ASSIGN 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_NEW_ADDRESS_ASSIGN'".
EXPORTING
FUNCTION = "Function
* FUNCTION_SUB = "
* I_ADROBJTYP = "
* I_OBJECT = "Internal Key for Address Objects
* I_OBTYPE = "Object type for objects to which addresses are assigned
* I_VZOBJECT_INT = "Object Data (Virtual Object) - Internal
* I_ADDRESS = "
* I_CHECK_ADDRESS = 'X' "
* FLG_SAVE_IN_UPDT = ' ' "
IMPORTING
E_VZOBJECT_INT = "Object Data (Virtual Object) - Internal
E_ADDRESS = "
FLG_CHANGED = "
EXCEPTIONS
ADDRESS_NOT_FOUND = 1 GENERAL_ERROR = 2 FUNCTION_CANCELLED = 3
IMPORTING Parameters details for FVAY_NEW_ADDRESS_ASSIGN
FUNCTION - Function
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
FUNCTION_SUB -
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADROBJTYP -
Data type: VZOBJECT-ADROBJTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJECT - Internal Key for Address Objects
Data type: VZOBJECT-ADROBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBTYPE - Object type for objects to which addresses are assigned
Data type: VZOBJECT-OBTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VZOBJECT_INT - Object Data (Virtual Object) - Internal
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
I_CHECK_ADDRESS -
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SAVE_IN_UPDT -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVAY_NEW_ADDRESS_ASSIGN
E_VZOBJECT_INT - Object Data (Virtual Object) - Internal
Data type: VZOBJECT_INTOptional: No
Call by Reference: No ( called with pass by value option)
E_ADDRESS -
Data type: SZADR_ADDR1_COMPLETEOptional: No
Call by Reference: Yes
FLG_CHANGED -
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ADDRESS_NOT_FOUND - Object Data not Found
Data type:Optional: No
Call by Reference: Yes
GENERAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
FUNCTION_CANCELLED - Function canceled by user
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVAY_NEW_ADDRESS_ASSIGN 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_function | TYPE CHAR1, " | |||
| lv_e_vzobject_int | TYPE VZOBJECT_INT, " | |||
| lv_address_not_found | TYPE VZOBJECT_INT, " | |||
| lv_e_address | TYPE SZADR_ADDR1_COMPLETE, " | |||
| lv_function_sub | TYPE CHAR1, " | |||
| lv_general_error | TYPE CHAR1, " | |||
| lv_flg_changed | TYPE BOOLE-BOOLE, " | |||
| lv_i_adrobjtyp | TYPE VZOBJECT-ADROBJTYP, " | |||
| lv_function_cancelled | TYPE VZOBJECT, " | |||
| lv_i_object | TYPE VZOBJECT-ADROBJNR, " | |||
| lv_i_obtype | TYPE VZOBJECT-OBTYP, " | |||
| lv_i_vzobject_int | TYPE VZOBJECT_INT, " | |||
| lv_i_address | TYPE SZADR_ADDR1_COMPLETE, " | |||
| lv_i_check_address | TYPE BOOLE_D, " 'X' | |||
| lv_flg_save_in_updt | TYPE BOOLE-BOOLE. " SPACE |
|   CALL FUNCTION 'FVAY_NEW_ADDRESS_ASSIGN' " |
| EXPORTING | ||
| FUNCTION | = lv_function | |
| FUNCTION_SUB | = lv_function_sub | |
| I_ADROBJTYP | = lv_i_adrobjtyp | |
| I_OBJECT | = lv_i_object | |
| I_OBTYPE | = lv_i_obtype | |
| I_VZOBJECT_INT | = lv_i_vzobject_int | |
| I_ADDRESS | = lv_i_address | |
| I_CHECK_ADDRESS | = lv_i_check_address | |
| FLG_SAVE_IN_UPDT | = lv_flg_save_in_updt | |
| IMPORTING | ||
| E_VZOBJECT_INT | = lv_e_vzobject_int | |
| E_ADDRESS | = lv_e_address | |
| FLG_CHANGED | = lv_flg_changed | |
| EXCEPTIONS | ||
| ADDRESS_NOT_FOUND = 1 | ||
| GENERAL_ERROR = 2 | ||
| FUNCTION_CANCELLED = 3 | ||
| . " FVAY_NEW_ADDRESS_ASSIGN | ||
ABAP code using 7.40 inline data declarations to call FM FVAY_NEW_ADDRESS_ASSIGN
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 BOOLE FROM BOOLE INTO @DATA(ld_flg_changed). | ||||
| "SELECT single ADROBJTYP FROM VZOBJECT INTO @DATA(ld_i_adrobjtyp). | ||||
| "SELECT single ADROBJNR FROM VZOBJECT INTO @DATA(ld_i_object). | ||||
| "SELECT single OBTYP FROM VZOBJECT INTO @DATA(ld_i_obtype). | ||||
| DATA(ld_i_check_address) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_flg_save_in_updt). | ||||
| DATA(ld_flg_save_in_updt) | = ' '. | |||
Search for further information about these or an SAP related objects