SAP EBA_OBJECT_PRESENTATION Function Module for NOTRANSL: INTERN: Präsentation von BOR-Objekten in verschiedenen Formaten/
EBA_OBJECT_PRESENTATION is a standard eba object presentation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: INTERN: Präsentation von BOR-Objekten in verschiedenen Formaten/ 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 eba object presentation FM, simply by entering the name EBA_OBJECT_PRESENTATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: EBA1
Program Name: SAPLEBA1
Main Program: SAPLEBA1
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EBA_OBJECT_PRESENTATION 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_OBJECT_PRESENTATION'"NOTRANSL: INTERN: Präsentation von BOR-Objekten in verschiedenen Formaten/.
EXPORTING
* X_OBJTYPE = "BOR Object Type
* X_OBJKEY = "Object Key
* X_OBJREF = "Structure of types OLE2_OBJECT
* X_PRGCONTEXT = ' ' "Call context - Program
* X_SUBCONTEXT = ' ' "Call context - Subcontext
IMPORTING
Y_OBJTYPE_DESCRIPTION = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_LONGTEXT = "Long text (75 characters)
Y_LONGTEXT_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_INFOTEXT_HEADER = "
Y_OBJTYPE_DESCR_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_OBJTYPE_COLOR = "Color Definition for BOR Objects
Y_KEYTEXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_KEYTEXT_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_DESCRIPTION = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_DESCRIPTION_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
Y_SHORTTEXT = "Short text (50 characters)
Y_SHORTTEXT_HEADER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* YT_INFOTEXT = "Info text (3 x 75 characters)
EXCEPTIONS
OBJECT_INVALID = 1 GENERAL_ERROR = 2
IMPORTING Parameters details for EBA_OBJECT_PRESENTATION
X_OBJTYPE - BOR Object Type
Data type: EBAPRES-OBJECTTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_OBJKEY - Object Key
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OBJREF - Structure of types OLE2_OBJECT
Data type: OBJ_RECORDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PRGCONTEXT - Call context - Program
Data type: EBAPRES-PRGCONTEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SUBCONTEXT - Call context - Subcontext
Data type: EBAPRES-SUBCONTEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EBA_OBJECT_PRESENTATION
Y_OBJTYPE_DESCRIPTION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_LONGTEXT - Long text (75 characters)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_LONGTEXT_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_INFOTEXT_HEADER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_OBJTYPE_DESCR_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_OBJTYPE_COLOR - Color Definition for BOR Objects
Data type: EBACOLOROptional: No
Call by Reference: No ( called with pass by value option)
Y_KEYTEXT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_KEYTEXT_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_DESCRIPTION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_DESCRIPTION_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_SHORTTEXT - Short text (50 characters)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Y_SHORTTEXT_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EBA_OBJECT_PRESENTATION
YT_INFOTEXT - Info text (3 x 75 characters)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_INVALID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERAL_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EBA_OBJECT_PRESENTATION 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_objtype | TYPE EBAPRES-OBJECTTYPE, " | |||
| lt_yt_infotext | TYPE STANDARD TABLE OF EBAPRES, " | |||
| lv_object_invalid | TYPE EBAPRES, " | |||
| lv_y_objtype_description | TYPE EBAPRES, " | |||
| lv_y_longtext | TYPE EBAPRES, " | |||
| lv_y_longtext_header | TYPE EBAPRES, " | |||
| lv_y_infotext_header | TYPE EBAPRES, " | |||
| lv_x_objkey | TYPE EBAPRES, " | |||
| lv_general_error | TYPE EBAPRES, " | |||
| lv_y_objtype_descr_header | TYPE EBAPRES, " | |||
| lv_x_objref | TYPE OBJ_RECORD, " | |||
| lv_y_objtype_color | TYPE EBACOLOR, " | |||
| lv_y_keytext | TYPE EBACOLOR, " | |||
| lv_x_prgcontext | TYPE EBAPRES-PRGCONTEXT, " SPACE | |||
| lv_x_subcontext | TYPE EBAPRES-SUBCONTEXT, " SPACE | |||
| lv_y_keytext_header | TYPE EBAPRES, " | |||
| lv_y_description | TYPE EBAPRES, " | |||
| lv_y_description_header | TYPE EBAPRES, " | |||
| lv_y_shorttext | TYPE EBAPRES, " | |||
| lv_y_shorttext_header | TYPE EBAPRES. " |
|   CALL FUNCTION 'EBA_OBJECT_PRESENTATION' "NOTRANSL: INTERN: Präsentation von BOR-Objekten in verschiedenen Formaten/ |
| EXPORTING | ||
| X_OBJTYPE | = lv_x_objtype | |
| X_OBJKEY | = lv_x_objkey | |
| X_OBJREF | = lv_x_objref | |
| X_PRGCONTEXT | = lv_x_prgcontext | |
| X_SUBCONTEXT | = lv_x_subcontext | |
| IMPORTING | ||
| Y_OBJTYPE_DESCRIPTION | = lv_y_objtype_description | |
| Y_LONGTEXT | = lv_y_longtext | |
| Y_LONGTEXT_HEADER | = lv_y_longtext_header | |
| Y_INFOTEXT_HEADER | = lv_y_infotext_header | |
| Y_OBJTYPE_DESCR_HEADER | = lv_y_objtype_descr_header | |
| Y_OBJTYPE_COLOR | = lv_y_objtype_color | |
| Y_KEYTEXT | = lv_y_keytext | |
| Y_KEYTEXT_HEADER | = lv_y_keytext_header | |
| Y_DESCRIPTION | = lv_y_description | |
| Y_DESCRIPTION_HEADER | = lv_y_description_header | |
| Y_SHORTTEXT | = lv_y_shorttext | |
| Y_SHORTTEXT_HEADER | = lv_y_shorttext_header | |
| TABLES | ||
| YT_INFOTEXT | = lt_yt_infotext | |
| EXCEPTIONS | ||
| OBJECT_INVALID = 1 | ||
| GENERAL_ERROR = 2 | ||
| . " EBA_OBJECT_PRESENTATION | ||
ABAP code using 7.40 inline data declarations to call FM EBA_OBJECT_PRESENTATION
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 OBJECTTYPE FROM EBAPRES INTO @DATA(ld_x_objtype). | ||||
| "SELECT single PRGCONTEXT FROM EBAPRES INTO @DATA(ld_x_prgcontext). | ||||
| DATA(ld_x_prgcontext) | = ' '. | |||
| "SELECT single SUBCONTEXT FROM EBAPRES INTO @DATA(ld_x_subcontext). | ||||
| DATA(ld_x_subcontext) | = ' '. | |||
Search for further information about these or an SAP related objects