SAP 6B_DIALOG Function Module for Control of 6b Processing
6B_DIALOG is a standard 6b 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 of 6b Processing 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 6b dialog FM, simply by entering the name 6B_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 6B_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 '6B_DIALOG'"Control of 6b Processing.
EXPORTING
I_6BDAT = "
* I_SREVTYP = '12' "Valuation Category
* I_ZUORDS = ' ' "
I_6BVERKAUF = "Kennz.: 6b oder LIFO -Zuordnung gewünscht
* I_6B_POPUP = '0' "
I_ASTUECK_ZUORD = "Stückzahl des geplanten Verkaufs
I_BNWHR_ZUORD = "
* I_BUKRS = '0001' "
I_RANL = "
* I_RLDEPO = 'KARL' "
* I_SNOTI = '1' "
IMPORTING
E_6BVERKAUF = "
E_ASTUECK_ZUORD = "
E_BNWHR_ZUORD = "
TABLES
T_VWBEPP = "
T_VWBEVI = "
EXCEPTIONS
ABBRECHEN = 1 CHANGE_ASTUECK = 2
IMPORTING Parameters details for 6B_DIALOG
I_6BDAT -
Data type: VWBEPP-DBESTANDOptional: No
Call by Reference: No ( called with pass by value option)
I_SREVTYP - Valuation Category
Data type: TZRCL-SREVTYPDefault: '12'
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)
I_6BVERKAUF - Kennz.: 6b oder LIFO -Zuordnung gewünscht
Data type: VWBEPP-JVERK6BOptional: No
Call by Reference: No ( called with pass by value option)
I_6B_POPUP -
Data type:Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
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)
EXPORTING Parameters details for 6B_DIALOG
E_6BVERKAUF -
Data type: VWBEPP-JVERK6BOptional: No
Call by Reference: No ( called with pass by value option)
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)
TABLES Parameters details for 6B_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 6B_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: | ||||
| lv_i_6bdat | TYPE VWBEPP-DBESTAND, " | |||
| lt_t_vwbepp | TYPE STANDARD TABLE OF VWBEPP, " | |||
| lv_abbrechen | TYPE VWBEPP, " | |||
| lv_e_6bverkauf | TYPE VWBEPP-JVERK6B, " | |||
| lv_i_srevtyp | TYPE TZRCL-SREVTYP, " '12' | |||
| lv_i_zuords | TYPE VWBEKI-RBELNR, " SPACE | |||
| lt_t_vwbevi | TYPE STANDARD TABLE OF VWBEVI, " | |||
| lv_i_6bverkauf | TYPE VWBEPP-JVERK6B, " | |||
| lv_change_astueck | TYPE VWBEPP, " | |||
| lv_e_astueck_zuord | TYPE VWBEPP-ASTUECK, " | |||
| lv_i_6b_popup | TYPE VWBEPP, " '0' | |||
| lv_e_bnwhr_zuord | TYPE VWBEPP-BNWHR, " | |||
| lv_i_astueck_zuord | TYPE VWBEPP-ASTUECK, " | |||
| lv_i_bnwhr_zuord | TYPE VWBEPP-BNWHR, " | |||
| lv_i_bukrs | TYPE VWBEPP-BUKRS, " '0001' | |||
| lv_i_ranl | TYPE VWBEPP-RANL, " | |||
| lv_i_rldepo | TYPE VWBEPP-RLDEPO, " 'KARL' | |||
| lv_i_snoti | TYPE VWPANLA-SNOTI. " '1' |
|   CALL FUNCTION '6B_DIALOG' "Control of 6b Processing |
| EXPORTING | ||
| I_6BDAT | = lv_i_6bdat | |
| I_SREVTYP | = lv_i_srevtyp | |
| I_ZUORDS | = lv_i_zuords | |
| I_6BVERKAUF | = lv_i_6bverkauf | |
| I_6B_POPUP | = lv_i_6b_popup | |
| 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 | |
| IMPORTING | ||
| E_6BVERKAUF | = lv_e_6bverkauf | |
| E_ASTUECK_ZUORD | = lv_e_astueck_zuord | |
| E_BNWHR_ZUORD | = lv_e_bnwhr_zuord | |
| TABLES | ||
| T_VWBEPP | = lt_t_vwbepp | |
| T_VWBEVI | = lt_t_vwbevi | |
| EXCEPTIONS | ||
| ABBRECHEN = 1 | ||
| CHANGE_ASTUECK = 2 | ||
| . " 6B_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM 6B_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 DBESTAND FROM VWBEPP INTO @DATA(ld_i_6bdat). | ||||
| "SELECT single JVERK6B FROM VWBEPP INTO @DATA(ld_e_6bverkauf). | ||||
| "SELECT single SREVTYP FROM TZRCL INTO @DATA(ld_i_srevtyp). | ||||
| DATA(ld_i_srevtyp) | = '12'. | |||
| "SELECT single RBELNR FROM VWBEKI INTO @DATA(ld_i_zuords). | ||||
| DATA(ld_i_zuords) | = ' '. | |||
| "SELECT single JVERK6B FROM VWBEPP INTO @DATA(ld_i_6bverkauf). | ||||
| "SELECT single ASTUECK FROM VWBEPP INTO @DATA(ld_e_astueck_zuord). | ||||
| DATA(ld_i_6b_popup) | = '0'. | |||
| "SELECT single BNWHR FROM VWBEPP INTO @DATA(ld_e_bnwhr_zuord). | ||||
| "SELECT single ASTUECK FROM VWBEPP INTO @DATA(ld_i_astueck_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 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'. | |||
Search for further information about these or an SAP related objects