SAP CVE6_RECINFOSTR_FILL_NEW Function Module for NOTRANSL: EHS: Tabelle mit versandrelevanten Empfängerdaten füllen
CVE6_RECINFOSTR_FILL_NEW is a standard cve6 recinfostr fill new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Tabelle mit versandrelevanten Empfängerdaten füllen processing and below is the pattern details for this FM, 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 cve6 recinfostr fill new FM, simply by entering the name CVE6_RECINFOSTR_FILL_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVE6
Program Name: SAPLCVE6
Main Program: SAPLCVE6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CVE6_RECINFOSTR_FILL_NEW 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 'CVE6_RECINFOSTR_FILL_NEW'"NOTRANSL: EHS: Tabelle mit versandrelevanten Empfängerdaten füllen.
EXPORTING
* I_ADDRNUMBER = "Address Number
* I_ADDRHANDLE = "Handle for Creating Addresses/Persons (Bus. Addr. Services)
* I_PERSNUMBER = "Person number
* I_PERSHANDLE = "Handle for Creating Addresses/Persons (Bus. Addr. Services)
* I_BUSINESSADDR = "Business address
I_RECTYPE = "Recipient Type
I_RECGROUP = "Recipient group
* I_FLG_CHECK = "Boolean Variable (X=True, -=False, Space=Unknown)
IMPORTING
E_RECINFO = "Recipient Data
EXCEPTIONS
NO_PERS_ADDRESS_FOUND = 1 NO_COMP_ADDRESS_FOUND = 2 WRONG_REC_GROUP_FOUND = 3
IMPORTING Parameters details for CVE6_RECINFOSTR_FILL_NEW
I_ADDRNUMBER - Address Number
Data type: ADDR3_SEL-ADDRNUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADDRHANDLE - Handle for Creating Addresses/Persons (Bus. Addr. Services)
Data type: ADDR3_SEL-ADDRHANDLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PERSNUMBER - Person number
Data type: ADDR3_SEL-PERSNUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_PERSHANDLE - Handle for Creating Addresses/Persons (Bus. Addr. Services)
Data type: ADDR3_SEL-PERSHANDLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUSINESSADDR - Business address
Data type: KNVK-ADRNDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RECTYPE - Recipient Type
Data type: CVDRECINFO-RECTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_RECGROUP - Recipient group
Data type: CVDRECINFO-RECGROUPOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: ESP1_BOOLEANOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CVE6_RECINFOSTR_FILL_NEW
E_RECINFO - Recipient Data
Data type: CVDRECINFOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PERS_ADDRESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_COMP_ADDRESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_REC_GROUP_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CVE6_RECINFOSTR_FILL_NEW 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_recinfo | TYPE CVDRECINFO, " | |||
lv_i_addrnumber | TYPE ADDR3_SEL-ADDRNUMBER, " | |||
lv_no_pers_address_found | TYPE ADDR3_SEL, " | |||
lv_i_addrhandle | TYPE ADDR3_SEL-ADDRHANDLE, " | |||
lv_no_comp_address_found | TYPE ADDR3_SEL, " | |||
lv_i_persnumber | TYPE ADDR3_SEL-PERSNUMBER, " | |||
lv_wrong_rec_group_found | TYPE ADDR3_SEL, " | |||
lv_i_pershandle | TYPE ADDR3_SEL-PERSHANDLE, " | |||
lv_i_businessaddr | TYPE KNVK-ADRND, " | |||
lv_i_rectype | TYPE CVDRECINFO-RECTYPE, " | |||
lv_i_recgroup | TYPE CVDRECINFO-RECGROUP, " | |||
lv_i_flg_check | TYPE ESP1_BOOLEAN. " |
  CALL FUNCTION 'CVE6_RECINFOSTR_FILL_NEW' "NOTRANSL: EHS: Tabelle mit versandrelevanten Empfängerdaten füllen |
EXPORTING | ||
I_ADDRNUMBER | = lv_i_addrnumber | |
I_ADDRHANDLE | = lv_i_addrhandle | |
I_PERSNUMBER | = lv_i_persnumber | |
I_PERSHANDLE | = lv_i_pershandle | |
I_BUSINESSADDR | = lv_i_businessaddr | |
I_RECTYPE | = lv_i_rectype | |
I_RECGROUP | = lv_i_recgroup | |
I_FLG_CHECK | = lv_i_flg_check | |
IMPORTING | ||
E_RECINFO | = lv_e_recinfo | |
EXCEPTIONS | ||
NO_PERS_ADDRESS_FOUND = 1 | ||
NO_COMP_ADDRESS_FOUND = 2 | ||
WRONG_REC_GROUP_FOUND = 3 | ||
. " CVE6_RECINFOSTR_FILL_NEW |
ABAP code using 7.40 inline data declarations to call FM CVE6_RECINFOSTR_FILL_NEW
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 ADDRNUMBER FROM ADDR3_SEL INTO @DATA(ld_i_addrnumber). | ||||
"SELECT single ADDRHANDLE FROM ADDR3_SEL INTO @DATA(ld_i_addrhandle). | ||||
"SELECT single PERSNUMBER FROM ADDR3_SEL INTO @DATA(ld_i_persnumber). | ||||
"SELECT single PERSHANDLE FROM ADDR3_SEL INTO @DATA(ld_i_pershandle). | ||||
"SELECT single ADRND FROM KNVK INTO @DATA(ld_i_businessaddr). | ||||
"SELECT single RECTYPE FROM CVDRECINFO INTO @DATA(ld_i_rectype). | ||||
"SELECT single RECGROUP FROM CVDRECINFO INTO @DATA(ld_i_recgroup). | ||||
Search for further information about these or an SAP related objects