SAP SBERFORM_301 Function Module for









SBERFORM_301 is a standard sberform 301 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 sberform 301 FM, simply by entering the name SBERFORM_301 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVAG
Program Name: SAPLFVAG
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SBERFORM_301 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 'SBERFORM_301'"
EXPORTING
* I_BSELART = 1 "
* I_BVWEVENT = '0' "
* I_DSTICH = SY-DATUM "
* I_SBERBAS_UNIT = ' ' "

IMPORTING
E_BSELART = "
E_SBERBAS_UNIT = "
E_SBERBAS_VALUE = "

TABLES
T_VIVW05E = "
.



IMPORTING Parameters details for SBERFORM_301

I_BSELART -

Data type: VIVW03Z-BSELART
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BVWEVENT -

Data type: VIVW08-BVWEVENT
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DSTICH -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SBERBAS_UNIT -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SBERFORM_301

E_BSELART -

Data type: VIVW03Z-BSELART
Optional: No
Call by Reference: No ( called with pass by value option)

E_SBERBAS_UNIT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

E_SBERBAS_VALUE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SBERFORM_301

T_VIVW05E -

Data type: VIVW05E
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SBERFORM_301 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_bselart  TYPE VIVW03Z-BSELART, "   
lv_i_bselart  TYPE VIVW03Z-BSELART, "   1
lt_t_vivw05e  TYPE STANDARD TABLE OF VIVW05E, "   
lv_i_bvwevent  TYPE VIVW08-BVWEVENT, "   '0'
lv_e_sberbas_unit  TYPE VIVW08, "   
lv_i_dstich  TYPE SY-DATUM, "   SY-DATUM
lv_e_sberbas_value  TYPE SY, "   
lv_i_sberbas_unit  TYPE SY. "   SPACE

  CALL FUNCTION 'SBERFORM_301'  "
    EXPORTING
         I_BSELART = lv_i_bselart
         I_BVWEVENT = lv_i_bvwevent
         I_DSTICH = lv_i_dstich
         I_SBERBAS_UNIT = lv_i_sberbas_unit
    IMPORTING
         E_BSELART = lv_e_bselart
         E_SBERBAS_UNIT = lv_e_sberbas_unit
         E_SBERBAS_VALUE = lv_e_sberbas_value
    TABLES
         T_VIVW05E = lt_t_vivw05e
. " SBERFORM_301




ABAP code using 7.40 inline data declarations to call FM SBERFORM_301

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 BSELART FROM VIVW03Z INTO @DATA(ld_e_bselart).
 
"SELECT single BSELART FROM VIVW03Z INTO @DATA(ld_i_bselart).
DATA(ld_i_bselart) = 1.
 
 
"SELECT single BVWEVENT FROM VIVW08 INTO @DATA(ld_i_bvwevent).
DATA(ld_i_bvwevent) = '0'.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_dstich).
DATA(ld_i_dstich) = SY-DATUM.
 
 
DATA(ld_i_sberbas_unit) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!