SAP DB4_TABLE_SCAN_INFO Function Module for AS/400: Get table scan info for ST04 Detail Analysis









DB4_TABLE_SCAN_INFO is a standard db4 table scan info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for AS/400: Get table scan info for ST04 Detail Analysis 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 db4 table scan info FM, simply by entering the name DB4_TABLE_SCAN_INFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: STU4_ST04
Program Name: SAPLSTU4_ST04
Main Program: SAPLSTU4_ST04
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DB4_TABLE_SCAN_INFO 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 'DB4_TABLE_SCAN_INFO'"AS/400: Get table scan info for ST04 Detail Analysis
EXPORTING
* RESETFLAG = ' ' "Feld vom Typ CHAR z.Zt nicht verwendet
* CURRENT_SYSTEM = "DB6: Globale Steuerdaten für Navigationsrahmen

TABLES
* TSC_0100 = "Overview info about table scans performed
* TABLES_FOR_DETAILS = "List of tables for which details are requested
* TSC_0200 = "Detail table scan info for tables specified

EXCEPTIONS
NO_DATA_FOUND = 1 NO_TABLES_FOR_DETAIL_SPECIFIED = 2 NO_DETAIL_DATA_FOUND = 3
.



IMPORTING Parameters details for DB4_TABLE_SCAN_INFO

RESETFLAG - Feld vom Typ CHAR z.Zt nicht verwendet

Data type: DB4QQPAR-QRESET
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENT_SYSTEM - DB6: Globale Steuerdaten für Navigationsrahmen

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

TABLES Parameters details for DB4_TABLE_SCAN_INFO

TSC_0100 - Overview info about table scans performed

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

TABLES_FOR_DETAILS - List of tables for which details are requested

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

TSC_0200 - Detail table scan info for tables specified

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

EXCEPTIONS details

NO_DATA_FOUND - No data found about table scans

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

NO_TABLES_FOR_DETAIL_SPECIFIED - Internal table TABLES_FOR_DETAILS is empty

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

NO_DETAIL_DATA_FOUND - No detail data found for tables specified

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

Copy and paste ABAP code example for DB4_TABLE_SCAN_INFO 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_tsc_0100  TYPE STANDARD TABLE OF DB4TSC0100, "   
lv_resetflag  TYPE DB4QQPAR-QRESET, "   SPACE
lv_no_data_found  TYPE DB4QQPAR, "   
lv_current_system  TYPE DB6NAVSYST, "   
lt_tables_for_details  TYPE STANDARD TABLE OF DB4TABLST, "   
lv_no_tables_for_detail_specified  TYPE DB4TABLST, "   
lt_tsc_0200  TYPE STANDARD TABLE OF DB4TSC0200, "   
lv_no_detail_data_found  TYPE DB4TSC0200. "   

  CALL FUNCTION 'DB4_TABLE_SCAN_INFO'  "AS/400: Get table scan info for ST04 Detail Analysis
    EXPORTING
         RESETFLAG = lv_resetflag
         CURRENT_SYSTEM = lv_current_system
    TABLES
         TSC_0100 = lt_tsc_0100
         TABLES_FOR_DETAILS = lt_tables_for_details
         TSC_0200 = lt_tsc_0200
    EXCEPTIONS
        NO_DATA_FOUND = 1
        NO_TABLES_FOR_DETAIL_SPECIFIED = 2
        NO_DETAIL_DATA_FOUND = 3
. " DB4_TABLE_SCAN_INFO




ABAP code using 7.40 inline data declarations to call FM DB4_TABLE_SCAN_INFO

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 QRESET FROM DB4QQPAR INTO @DATA(ld_resetflag).
DATA(ld_resetflag) = ' '.
 
 
 
 
 
 
 


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!