SAP DB4_SORT_INFO Function Module for AS/400: Get table sorts info for ST04 Detail Analysis









DB4_SORT_INFO is a standard db4 sort 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 sorts 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 sort info FM, simply by entering the name DB4_SORT_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_SORT_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_SORT_INFO'"AS/400: Get table sorts info for ST04 Detail Analysis
EXPORTING
* RESETFLAG = ' ' "Feld vom Typ CHAR z.Zt nicht verwendet
* CURRENT_SYSTEM = "DB6: Globale Steuerdaten für Navigationsrahmen

TABLES
SRT_0100 = "Overview info about table sorts performed

EXCEPTIONS
NO_DATA_FOUND = 1
.



IMPORTING Parameters details for DB4_SORT_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_SORT_INFO

SRT_0100 - Overview info about table sorts performed

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

EXCEPTIONS details

NO_DATA_FOUND - No data found about table sorts

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

Copy and paste ABAP code example for DB4_SORT_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_srt_0100  TYPE STANDARD TABLE OF DB4SRT0100, "   
lv_resetflag  TYPE DB4QQPAR-QRESET, "   SPACE
lv_no_data_found  TYPE DB4QQPAR, "   
lv_current_system  TYPE DB6NAVSYST. "   

  CALL FUNCTION 'DB4_SORT_INFO'  "AS/400: Get table sorts info for ST04 Detail Analysis
    EXPORTING
         RESETFLAG = lv_resetflag
         CURRENT_SYSTEM = lv_current_system
    TABLES
         SRT_0100 = lt_srt_0100
    EXCEPTIONS
        NO_DATA_FOUND = 1
. " DB4_SORT_INFO




ABAP code using 7.40 inline data declarations to call FM DB4_SORT_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!