SAP RECN_GET_SET_RECN_DATA Function Module for
RECN_GET_SET_RECN_DATA is a standard recn get set recn data 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 recn get set recn data FM, simply by entering the name RECN_GET_SET_RECN_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RECN
Program Name: SAPLRECN
Main Program: SAPLRECN
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RECN_GET_SET_RECN_DATA 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 'RECN_GET_SET_RECN_DATA'".
EXPORTING
* I_SET_RECNFLDS = ' ' "
* I_RECNFLDS = "
* I_SET_RECNVIKOKO = ' ' "
* I_RECNVIKOKO = "
* I_SET_TABLES = ' ' "
IMPORTING
E_RECNFLDS = "
E_RECNVIKOKO = "
E_AKTYP = "
E_RANTYP = "
E_GSART = "
E_HVP_ROLE = "
E_HVP_ROLE2 = "Business Partner Role Category
E_APPL = "
TABLES
* T_RECNVZZKOPO = "
* T_RECNVICN03 = "
* T_VICN02 = "
* T_VIMIK1 = "
* T_VIMIK2 = "
* T_VIOBOV = "
* T_VIMIUH = "
* T_VIMIUI = "
* T_VZGPO = "
IMPORTING Parameters details for RECN_GET_SET_RECN_DATA
I_SET_RECNFLDS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECNFLDS -
Data type: RECNFLDSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SET_RECNVIKOKO -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECNVIKOKO -
Data type: RECNVIKOKOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SET_TABLES -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RECN_GET_SET_RECN_DATA
E_RECNFLDS -
Data type: RECNFLDSOptional: No
Call by Reference: No ( called with pass by value option)
E_RECNVIKOKO -
Data type: RECNVIKOKOOptional: No
Call by Reference: No ( called with pass by value option)
E_AKTYP -
Data type: TBZ0K-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_RANTYP -
Data type: TZPA-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_GSART -
Data type: TZPA-GSARTOptional: No
Call by Reference: No ( called with pass by value option)
E_HVP_ROLE -
Data type: TPZ3-ROLETYPOptional: No
Call by Reference: No ( called with pass by value option)
E_HVP_ROLE2 - Business Partner Role Category
Data type: TPZ3-ROLETYPOptional: No
Call by Reference: No ( called with pass by value option)
E_APPL -
Data type: TPZ12-APPLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RECN_GET_SET_RECN_DATA
T_RECNVZZKOPO -
Data type: RECNVZZKOPOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RECNVICN03 -
Data type: RECNVICN03Optional: Yes
Call by Reference: No ( called with pass by value option)
T_VICN02 -
Data type: VICN02Optional: Yes
Call by Reference: No ( called with pass by value option)
T_VIMIK1 -
Data type: VIMIK1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_VIMIK2 -
Data type: VIMIK2Optional: Yes
Call by Reference: No ( called with pass by value option)
T_VIOBOV -
Data type: VIOBOVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VIMIUH -
Data type: VIMIUHOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VIMIUI -
Data type: VIMIUIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VZGPO -
Data type: VZGPOOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RECN_GET_SET_RECN_DATA 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_e_recnflds | TYPE RECNFLDS, " | |||
| lt_t_recnvzzkopo | TYPE STANDARD TABLE OF RECNVZZKOPO, " | |||
| lv_i_set_recnflds | TYPE RECNVZZKOPO, " SPACE | |||
| lv_i_recnflds | TYPE RECNFLDS, " | |||
| lv_e_recnvikoko | TYPE RECNVIKOKO, " | |||
| lt_t_recnvicn03 | TYPE STANDARD TABLE OF RECNVICN03, " | |||
| lv_e_aktyp | TYPE TBZ0K-AKTYP, " | |||
| lt_t_vicn02 | TYPE STANDARD TABLE OF VICN02, " | |||
| lv_i_set_recnvikoko | TYPE VICN02, " SPACE | |||
| lv_e_rantyp | TYPE TZPA-RANTYP, " | |||
| lt_t_vimik1 | TYPE STANDARD TABLE OF VIMIK1, " | |||
| lv_i_recnvikoko | TYPE RECNVIKOKO, " | |||
| lv_e_gsart | TYPE TZPA-GSART, " | |||
| lt_t_vimik2 | TYPE STANDARD TABLE OF VIMIK2, " | |||
| lv_i_set_tables | TYPE VIMIK2, " SPACE | |||
| lt_t_viobov | TYPE STANDARD TABLE OF VIOBOV, " | |||
| lv_e_hvp_role | TYPE TPZ3-ROLETYP, " | |||
| lt_t_vimiuh | TYPE STANDARD TABLE OF VIMIUH, " | |||
| lv_e_hvp_role2 | TYPE TPZ3-ROLETYP, " | |||
| lv_e_appl | TYPE TPZ12-APPL, " | |||
| lt_t_vimiui | TYPE STANDARD TABLE OF VIMIUI, " | |||
| lt_t_vzgpo | TYPE STANDARD TABLE OF VZGPO. " |
|   CALL FUNCTION 'RECN_GET_SET_RECN_DATA' " |
| EXPORTING | ||
| I_SET_RECNFLDS | = lv_i_set_recnflds | |
| I_RECNFLDS | = lv_i_recnflds | |
| I_SET_RECNVIKOKO | = lv_i_set_recnvikoko | |
| I_RECNVIKOKO | = lv_i_recnvikoko | |
| I_SET_TABLES | = lv_i_set_tables | |
| IMPORTING | ||
| E_RECNFLDS | = lv_e_recnflds | |
| E_RECNVIKOKO | = lv_e_recnvikoko | |
| E_AKTYP | = lv_e_aktyp | |
| E_RANTYP | = lv_e_rantyp | |
| E_GSART | = lv_e_gsart | |
| E_HVP_ROLE | = lv_e_hvp_role | |
| E_HVP_ROLE2 | = lv_e_hvp_role2 | |
| E_APPL | = lv_e_appl | |
| TABLES | ||
| T_RECNVZZKOPO | = lt_t_recnvzzkopo | |
| T_RECNVICN03 | = lt_t_recnvicn03 | |
| T_VICN02 | = lt_t_vicn02 | |
| T_VIMIK1 | = lt_t_vimik1 | |
| T_VIMIK2 | = lt_t_vimik2 | |
| T_VIOBOV | = lt_t_viobov | |
| T_VIMIUH | = lt_t_vimiuh | |
| T_VIMIUI | = lt_t_vimiui | |
| T_VZGPO | = lt_t_vzgpo | |
| . " RECN_GET_SET_RECN_DATA | ||
ABAP code using 7.40 inline data declarations to call FM RECN_GET_SET_RECN_DATA
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_i_set_recnflds) | = ' '. | |||
| "SELECT single AKTYP FROM TBZ0K INTO @DATA(ld_e_aktyp). | ||||
| DATA(ld_i_set_recnvikoko) | = ' '. | |||
| "SELECT single RANTYP FROM TZPA INTO @DATA(ld_e_rantyp). | ||||
| "SELECT single GSART FROM TZPA INTO @DATA(ld_e_gsart). | ||||
| DATA(ld_i_set_tables) | = ' '. | |||
| "SELECT single ROLETYP FROM TPZ3 INTO @DATA(ld_e_hvp_role). | ||||
| "SELECT single ROLETYP FROM TPZ3 INTO @DATA(ld_e_hvp_role2). | ||||
| "SELECT single APPL FROM TPZ12 INTO @DATA(ld_e_appl). | ||||
Search for further information about these or an SAP related objects