SAP CREATE_BSET_ITEM Function Module for









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

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



Function CREATE_BSET_ITEM 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 'CREATE_BSET_ITEM'"
EXPORTING
* TRANSFER_PRICES_ACTIVE = "
* I_GENER = 0 "

IMPORTING
STEUER_FW = "

TABLES
T_BKPF = "
T_BSEG = "
T_BSET = "

EXCEPTIONS
ACCOUNT_NOT_FOUND = 1 BSCHL_NOT_FOUND = 2 TOO_MANY_ITEMS = 3
.



IMPORTING Parameters details for CREATE_BSET_ITEM

TRANSFER_PRICES_ACTIVE -

Data type: BKPF-XMWST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GENER -

Data type: T020-GENER
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CREATE_BSET_ITEM

STEUER_FW -

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

TABLES Parameters details for CREATE_BSET_ITEM

T_BKPF -

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

T_BSEG -

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

T_BSET -

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

EXCEPTIONS details

ACCOUNT_NOT_FOUND -

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

BSCHL_NOT_FOUND -

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

TOO_MANY_ITEMS -

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

Copy and paste ABAP code example for CREATE_BSET_ITEM 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_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_steuer_fw  TYPE BSET-FWSTE, "   
lv_account_not_found  TYPE BSET, "   
lv_transfer_prices_active  TYPE BKPF-XMWST, "   
lt_t_bseg  TYPE STANDARD TABLE OF BSEG, "   
lv_i_gener  TYPE T020-GENER, "   0
lv_bschl_not_found  TYPE T020, "   
lt_t_bset  TYPE STANDARD TABLE OF BSET, "   
lv_too_many_items  TYPE BSET. "   

  CALL FUNCTION 'CREATE_BSET_ITEM'  "
    EXPORTING
         TRANSFER_PRICES_ACTIVE = lv_transfer_prices_active
         I_GENER = lv_i_gener
    IMPORTING
         STEUER_FW = lv_steuer_fw
    TABLES
         T_BKPF = lt_t_bkpf
         T_BSEG = lt_t_bseg
         T_BSET = lt_t_bset
    EXCEPTIONS
        ACCOUNT_NOT_FOUND = 1
        BSCHL_NOT_FOUND = 2
        TOO_MANY_ITEMS = 3
. " CREATE_BSET_ITEM




ABAP code using 7.40 inline data declarations to call FM CREATE_BSET_ITEM

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 FWSTE FROM BSET INTO @DATA(ld_steuer_fw).
 
 
"SELECT single XMWST FROM BKPF INTO @DATA(ld_transfer_prices_active).
 
 
"SELECT single GENER FROM T020 INTO @DATA(ld_i_gener).
 
 
 
 


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!