Ads

Sorting in SAP ABAP ALV Report

 Sorting in SAP ABAP ALV Report

Using the Sort Table, the user can sort the output and he can expect subtotals in the output result.
here, we discuss the importance of the sort table importance and its use in ALV Reports.

Sort Criteria, The Table IT_SORT is populated with the sort criteria for the different fields.
The caller specifies the essential list's sorting and/or subtotaling in the internal table IT_SORT.

This internal table has the following fields:
-         spos :  Sort sequence
-         fieldname :  Internal output table field name
-         tabname : Only relevant for hierarchical-sequential lists. Name of the internal output table.
-         up : 'X' = sort in ascending order
-         down : 'X' = sort in descending order
-         subtot : 'X' = subtotal at group value change
-         group : '* ' = new page at group value change ,'UL' = underline at group value change


Also, Read SAP ABAP Tutorials

SAP ABAP Material
Selection-screen Information in SAP ABAP ALV Report
How to Define SAP ABAP ALV Report Output List Description
How to Create Events Table in SAP ABAP ALV Report
Defining Output Fields Characteristics of ALV Report in SAP ABAP
SAP ABAP ALV Reports Selecting the Optional variants

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced