SAP SINGLE_EVALUATION_DIALOG Function Module for Control for Single Valuation
SINGLE_EVALUATION_DIALOG is a standard single evaluation dialog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Control for Single Valuation 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 single evaluation dialog FM, simply by entering the name SINGLE_EVALUATION_DIALOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV6B
Program Name: SAPLFV6B
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SINGLE_EVALUATION_DIALOG 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 'SINGLE_EVALUATION_DIALOG'"Control for Single Valuation.
EXPORTING
I_ASTUECK_ZUORD = "Stückzahl des geplanten Verkaufs
I_BNWHR_ZUORD = "
* I_BUKRS = '0001' "
I_RANL = "
* I_RLDEPO = 'KARL' "
* I_SNOTI = '1' "
* I_SREVTYP = '10' "Valuation Category
* I_ZUORDS = ' ' "
IMPORTING
E_ASTUECK_ZUORD = "
E_BNWHR_ZUORD = "
E_RZUORDA = "Zuordnungsnummer des Zugangs
TABLES
T_VWBEPP = "
T_VWBEVI = "
EXCEPTIONS
ABBRECHEN = 1 CHANGE_ASTUECK = 2
IMPORTING Parameters details for SINGLE_EVALUATION_DIALOG
I_ASTUECK_ZUORD - Stückzahl des geplanten Verkaufs
Data type: VWBEPP-ASTUECKOptional: No
Call by Reference: No ( called with pass by value option)
I_BNWHR_ZUORD -
Data type: VWBEPP-BNWHROptional: No
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: VWBEPP-BUKRSDefault: '0001'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RANL -
Data type: VWBEPP-RANLOptional: No
Call by Reference: No ( called with pass by value option)
I_RLDEPO -
Data type: VWBEPP-RLDEPODefault: 'KARL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SNOTI -
Data type: VWPANLA-SNOTIDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SREVTYP - Valuation Category
Data type: TZRCL-SREVTYPDefault: '10'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ZUORDS -
Data type: VWBEKI-RBELNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SINGLE_EVALUATION_DIALOG
E_ASTUECK_ZUORD -
Data type: VWBEPP-ASTUECKOptional: No
Call by Reference: No ( called with pass by value option)
E_BNWHR_ZUORD -
Data type: VWBEPP-BNWHROptional: No
Call by Reference: No ( called with pass by value option)
E_RZUORDA - Zuordnungsnummer des Zugangs
Data type: VWZUORD-RZUORDAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SINGLE_EVALUATION_DIALOG
T_VWBEPP -
Data type: VWBEPPOptional: No
Call by Reference: No ( called with pass by value option)
T_VWBEVI -
Data type: VWBEVIOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ABBRECHEN - Popup 6b-Bearbeiten wurde abgebrochen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGE_ASTUECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SINGLE_EVALUATION_DIALOG 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: | ||||
| lt_t_vwbepp | TYPE STANDARD TABLE OF VWBEPP, " | |||
| lv_abbrechen | TYPE VWBEPP, " | |||
| lv_e_astueck_zuord | TYPE VWBEPP-ASTUECK, " | |||
| lv_i_astueck_zuord | TYPE VWBEPP-ASTUECK, " | |||
| lt_t_vwbevi | TYPE STANDARD TABLE OF VWBEVI, " | |||
| lv_e_bnwhr_zuord | TYPE VWBEPP-BNWHR, " | |||
| lv_i_bnwhr_zuord | TYPE VWBEPP-BNWHR, " | |||
| lv_change_astueck | TYPE VWBEPP, " | |||
| lv_i_bukrs | TYPE VWBEPP-BUKRS, " '0001' | |||
| lv_e_rzuorda | TYPE VWZUORD-RZUORDA, " | |||
| lv_i_ranl | TYPE VWBEPP-RANL, " | |||
| lv_i_rldepo | TYPE VWBEPP-RLDEPO, " 'KARL' | |||
| lv_i_snoti | TYPE VWPANLA-SNOTI, " '1' | |||
| lv_i_srevtyp | TYPE TZRCL-SREVTYP, " '10' | |||
| lv_i_zuords | TYPE VWBEKI-RBELNR. " SPACE |
|   CALL FUNCTION 'SINGLE_EVALUATION_DIALOG' "Control for Single Valuation |
| EXPORTING | ||
| I_ASTUECK_ZUORD | = lv_i_astueck_zuord | |
| I_BNWHR_ZUORD | = lv_i_bnwhr_zuord | |
| I_BUKRS | = lv_i_bukrs | |
| I_RANL | = lv_i_ranl | |
| I_RLDEPO | = lv_i_rldepo | |
| I_SNOTI | = lv_i_snoti | |
| I_SREVTYP | = lv_i_srevtyp | |
| I_ZUORDS | = lv_i_zuords | |
| IMPORTING | ||
| E_ASTUECK_ZUORD | = lv_e_astueck_zuord | |
| E_BNWHR_ZUORD | = lv_e_bnwhr_zuord | |
| E_RZUORDA | = lv_e_rzuorda | |
| TABLES | ||
| T_VWBEPP | = lt_t_vwbepp | |
| T_VWBEVI | = lt_t_vwbevi | |
| EXCEPTIONS | ||
| ABBRECHEN = 1 | ||
| CHANGE_ASTUECK = 2 | ||
| . " SINGLE_EVALUATION_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM SINGLE_EVALUATION_DIALOG
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 ASTUECK FROM VWBEPP INTO @DATA(ld_e_astueck_zuord). | ||||
| "SELECT single ASTUECK FROM VWBEPP INTO @DATA(ld_i_astueck_zuord). | ||||
| "SELECT single BNWHR FROM VWBEPP INTO @DATA(ld_e_bnwhr_zuord). | ||||
| "SELECT single BNWHR FROM VWBEPP INTO @DATA(ld_i_bnwhr_zuord). | ||||
| "SELECT single BUKRS FROM VWBEPP INTO @DATA(ld_i_bukrs). | ||||
| DATA(ld_i_bukrs) | = '0001'. | |||
| "SELECT single RZUORDA FROM VWZUORD INTO @DATA(ld_e_rzuorda). | ||||
| "SELECT single RANL FROM VWBEPP INTO @DATA(ld_i_ranl). | ||||
| "SELECT single RLDEPO FROM VWBEPP INTO @DATA(ld_i_rldepo). | ||||
| DATA(ld_i_rldepo) | = 'KARL'. | |||
| "SELECT single SNOTI FROM VWPANLA INTO @DATA(ld_i_snoti). | ||||
| DATA(ld_i_snoti) | = '1'. | |||
| "SELECT single SREVTYP FROM TZRCL INTO @DATA(ld_i_srevtyp). | ||||
| DATA(ld_i_srevtyp) | = '10'. | |||
| "SELECT single RBELNR FROM VWBEKI INTO @DATA(ld_i_zuords). | ||||
| DATA(ld_i_zuords) | = ' '. | |||
Search for further information about these or an SAP related objects