SAP BUSENTITY_SINGLEREAD Function Module for









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

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



Function BUSENTITY_SINGLEREAD 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 'BUSENTITY_SINGLEREAD'"
EXPORTING
IV_BUKRS = "
IV_SWENR = "
* IV_RESET_BUFFER = "
* IV_BYPASSING_BUFFER = "
* IV_MAX_BUFFER_SIZE = 100 "

IMPORTING
ES_VIOB01 = "

EXCEPTIONS
BUFFER_INCONSISTENCY = 1 INDEX_INCONSISTENCY = 2 NOT_FOUND = 3 PARAMETER_ERROR = 4 OTHER_ERROR_INDEX_PUSH = 5
.



IMPORTING Parameters details for BUSENTITY_SINGLEREAD

IV_BUKRS -

Data type: VIOB01-BUKRS
Optional: No
Call by Reference: Yes

IV_SWENR -

Data type: VIOB01-SWENR
Optional: No
Call by Reference: Yes

IV_RESET_BUFFER -

Data type: XFELD
Optional: Yes
Call by Reference: Yes

IV_BYPASSING_BUFFER -

Data type: XFELD
Optional: Yes
Call by Reference: Yes

IV_MAX_BUFFER_SIZE -

Data type: I
Default: 100
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for BUSENTITY_SINGLEREAD

ES_VIOB01 -

Data type: VIOB01
Optional: No
Call by Reference: Yes

EXCEPTIONS details

BUFFER_INCONSISTENCY -

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

INDEX_INCONSISTENCY -

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

NOT_FOUND -

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

PARAMETER_ERROR -

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

OTHER_ERROR_INDEX_PUSH -

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

Copy and paste ABAP code example for BUSENTITY_SINGLEREAD 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_iv_bukrs  TYPE VIOB01-BUKRS, "   
lv_es_viob01  TYPE VIOB01, "   
lv_buffer_inconsistency  TYPE VIOB01, "   
lv_iv_swenr  TYPE VIOB01-SWENR, "   
lv_index_inconsistency  TYPE VIOB01, "   
lv_not_found  TYPE VIOB01, "   
lv_iv_reset_buffer  TYPE XFELD, "   
lv_parameter_error  TYPE XFELD, "   
lv_iv_bypassing_buffer  TYPE XFELD, "   
lv_iv_max_buffer_size  TYPE I, "   100
lv_other_error_index_push  TYPE I. "   

  CALL FUNCTION 'BUSENTITY_SINGLEREAD'  "
    EXPORTING
         IV_BUKRS = lv_iv_bukrs
         IV_SWENR = lv_iv_swenr
         IV_RESET_BUFFER = lv_iv_reset_buffer
         IV_BYPASSING_BUFFER = lv_iv_bypassing_buffer
         IV_MAX_BUFFER_SIZE = lv_iv_max_buffer_size
    IMPORTING
         ES_VIOB01 = lv_es_viob01
    EXCEPTIONS
        BUFFER_INCONSISTENCY = 1
        INDEX_INCONSISTENCY = 2
        NOT_FOUND = 3
        PARAMETER_ERROR = 4
        OTHER_ERROR_INDEX_PUSH = 5
. " BUSENTITY_SINGLEREAD




ABAP code using 7.40 inline data declarations to call FM BUSENTITY_SINGLEREAD

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 BUKRS FROM VIOB01 INTO @DATA(ld_iv_bukrs).
 
 
 
"SELECT single SWENR FROM VIOB01 INTO @DATA(ld_iv_swenr).
 
 
 
 
 
 
DATA(ld_iv_max_buffer_size) = 100.
 
 


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!