SAP STAT_OBJECT_SHOW Function Module for
STAT_OBJECT_SHOW is a standard stat object show 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 stat object show FM, simply by entering the name STAT_OBJECT_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: SST1
Program Name: SAPLSST1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function STAT_OBJECT_SHOW 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 'STAT_OBJECT_SHOW'".
EXPORTING
OBJECTCLASS = "Document class (SIMG or CATT)
CHDOC_VIEW_DEPENDENCE = "
OBJECTNAME = "Object name
* PARENTCLASS = ' ' "
* PARENTNAME = ' ' "
OBJECTTITLE = "Object title
OUTLINE = "Structure containing the object
PROJECTNO = "Project number
STRUCTURE_TYPE = "Type I for IMG or C for CATT
VIEWNAME = "
EXCEPTIONS
OBJECT_NOT_FOUND = 1 PROJECT_NOT_FOUND = 2 NO_AUTHORITY = 3 WRONG_TYPE = 4 CANCELED = 5
IMPORTING Parameters details for STAT_OBJECT_SHOW
OBJECTCLASS - Document class (SIMG or CATT)
Data type: TDCLD-DOKCLASSOptional: No
Call by Reference: No ( called with pass by value option)
CHDOC_VIEW_DEPENDENCE -
Data type: TCUSP-VIEW_DEPOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTNAME - Object name
Data type: TSTATH-DOC_OBJOptional: No
Call by Reference: No ( called with pass by value option)
PARENTCLASS -
Data type: TDCLD-DOKCLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PARENTNAME -
Data type: TSTATH-DOC_OBJDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTTITLE - Object title
Data type: DSYST-DOKTITLEOptional: No
Call by Reference: No ( called with pass by value option)
OUTLINE - Structure containing the object
Data type: DSYAD-OUTLINEOptional: No
Call by Reference: No ( called with pass by value option)
PROJECTNO - Project number
Data type: TCUSP-PRONROptional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_TYPE - Type I for IMG or C for CATT
Data type: CUSASTRUC-MARKEDOptional: No
Call by Reference: No ( called with pass by value option)
VIEWNAME -
Data type: TSTATH-VIEWNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_NOT_FOUND - Object not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROJECT_NOT_FOUND - Project not in TCUSP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for STAT_OBJECT_SHOW 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_objectclass | TYPE TDCLD-DOKCLASS, " | |||
| lv_object_not_found | TYPE TDCLD, " | |||
| lv_chdoc_view_dependence | TYPE TCUSP-VIEW_DEP, " | |||
| lv_objectname | TYPE TSTATH-DOC_OBJ, " | |||
| lv_project_not_found | TYPE TSTATH, " | |||
| lv_parentclass | TYPE TDCLD-DOKCLASS, " SPACE | |||
| lv_no_authority | TYPE TDCLD, " | |||
| lv_parentname | TYPE TSTATH-DOC_OBJ, " SPACE | |||
| lv_wrong_type | TYPE TSTATH, " | |||
| lv_canceled | TYPE TSTATH, " | |||
| lv_objecttitle | TYPE DSYST-DOKTITLE, " | |||
| lv_outline | TYPE DSYAD-OUTLINE, " | |||
| lv_projectno | TYPE TCUSP-PRONR, " | |||
| lv_structure_type | TYPE CUSASTRUC-MARKED, " | |||
| lv_viewname | TYPE TSTATH-VIEWNAME. " |
|   CALL FUNCTION 'STAT_OBJECT_SHOW' " |
| EXPORTING | ||
| OBJECTCLASS | = lv_objectclass | |
| CHDOC_VIEW_DEPENDENCE | = lv_chdoc_view_dependence | |
| OBJECTNAME | = lv_objectname | |
| PARENTCLASS | = lv_parentclass | |
| PARENTNAME | = lv_parentname | |
| OBJECTTITLE | = lv_objecttitle | |
| OUTLINE | = lv_outline | |
| PROJECTNO | = lv_projectno | |
| STRUCTURE_TYPE | = lv_structure_type | |
| VIEWNAME | = lv_viewname | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| PROJECT_NOT_FOUND = 2 | ||
| NO_AUTHORITY = 3 | ||
| WRONG_TYPE = 4 | ||
| CANCELED = 5 | ||
| . " STAT_OBJECT_SHOW | ||
ABAP code using 7.40 inline data declarations to call FM STAT_OBJECT_SHOW
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 DOKCLASS FROM TDCLD INTO @DATA(ld_objectclass). | ||||
| "SELECT single VIEW_DEP FROM TCUSP INTO @DATA(ld_chdoc_view_dependence). | ||||
| "SELECT single DOC_OBJ FROM TSTATH INTO @DATA(ld_objectname). | ||||
| "SELECT single DOKCLASS FROM TDCLD INTO @DATA(ld_parentclass). | ||||
| DATA(ld_parentclass) | = ' '. | |||
| "SELECT single DOC_OBJ FROM TSTATH INTO @DATA(ld_parentname). | ||||
| DATA(ld_parentname) | = ' '. | |||
| "SELECT single DOKTITLE FROM DSYST INTO @DATA(ld_objecttitle). | ||||
| "SELECT single OUTLINE FROM DSYAD INTO @DATA(ld_outline). | ||||
| "SELECT single PRONR FROM TCUSP INTO @DATA(ld_projectno). | ||||
| "SELECT single MARKED FROM CUSASTRUC INTO @DATA(ld_structure_type). | ||||
| "SELECT single VIEWNAME FROM TSTATH INTO @DATA(ld_viewname). | ||||
Search for further information about these or an SAP related objects