SAP EBA_SBUF_IMPORT Function Module for









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

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



Function EBA_SBUF_IMPORT 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 'EBA_SBUF_IMPORT'"
EXPORTING
X_ID = "
* X_CLEAR = "
* X_USER_SPECIFIC = "
* X_MAX_MINUTES_OLD = "

IMPORTING
Y_DATA = "
Y_EXPORT_DATE = "
Y_EXPORT_TIME = "

EXCEPTIONS
ID_INVALID = 1 NOT_FOUND = 2 TOO_OLD = 3
.



IMPORTING Parameters details for EBA_SBUF_IMPORT

X_ID -

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

X_CLEAR -

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

X_USER_SPECIFIC -

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

X_MAX_MINUTES_OLD -

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

EXPORTING Parameters details for EBA_SBUF_IMPORT

Y_DATA -

Data type:
Optional: No
Call by Reference: Yes

Y_EXPORT_DATE -

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

Y_EXPORT_TIME -

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

EXCEPTIONS details

ID_INVALID -

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)

TOO_OLD -

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

Copy and paste ABAP code example for EBA_SBUF_IMPORT 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_x_id  TYPE EBAGEN-ELEMENT, "   
lv_y_data  TYPE EBAGEN, "   
lv_id_invalid  TYPE EBAGEN, "   
lv_x_clear  TYPE EBAGEN-KENNZX, "   
lv_not_found  TYPE EBAGEN, "   
lv_y_export_date  TYPE SY-DATUM, "   
lv_too_old  TYPE SY, "   
lv_y_export_time  TYPE SY-UZEIT, "   
lv_x_user_specific  TYPE EBAGEN-KENNZX, "   
lv_x_max_minutes_old  TYPE I. "   

  CALL FUNCTION 'EBA_SBUF_IMPORT'  "
    EXPORTING
         X_ID = lv_x_id
         X_CLEAR = lv_x_clear
         X_USER_SPECIFIC = lv_x_user_specific
         X_MAX_MINUTES_OLD = lv_x_max_minutes_old
    IMPORTING
         Y_DATA = lv_y_data
         Y_EXPORT_DATE = lv_y_export_date
         Y_EXPORT_TIME = lv_y_export_time
    EXCEPTIONS
        ID_INVALID = 1
        NOT_FOUND = 2
        TOO_OLD = 3
. " EBA_SBUF_IMPORT




ABAP code using 7.40 inline data declarations to call FM EBA_SBUF_IMPORT

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 ELEMENT FROM EBAGEN INTO @DATA(ld_x_id).
 
 
 
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_clear).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_y_export_date).
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_y_export_time).
 
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_user_specific).
 
 


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!