Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get this output format in ALV report

Hi.

Can any one pls let me know how to get the following output format in ALV report.

companycode location position approver

300 800 01 watson

02 mike

03 candy

04 smith

05 michael

one empty line after this again

300 800 01 ryant

02 tom

03 patil

Thanks in advance.

Kind Regards,

samiulla.

Tags:
Former Member
replied

using the sort function you can get that .

in your casse you have to populate the sort on these fields

companycode ,location, position, approver

sort-fieldname = 'SOMEFIELD'.

sort-up = 'X'.

sort-group = 'UL'. "It add a line between the set of data

append sort to it_sort.

pass this it_sort to alv function.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question