Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV

Former Member
0 Likes
511

Hi,

How do I put page break in a hierarchical ALV for on change of a particular field.

Regards,

1 ACCEPTED SOLUTION
Read only

former_member221770
Contributor
0 Likes
486

Prakesh,

You need to use the SORT Table Paramater:

Try:


data: tbl_sort type slis_t_sortinfo_alv.
data: st_sort  type slis_sortinfo_alv.

st_sort-spos = '1'.
st_sort-fieldname = 'VBELN'.
st_sort-tabname = 'TBL_DATA'.
st_sort-up = 'X'.
st_sort-group = '*'. "Page Break at new Value
append st_sort to tbl_sort.

Pass this parameter into your ALV FM.

Let me know how this goes.

Hope this helps.

Cheers,

Pat.

Hi,

How do I put page break in a hierarchical ALV for on change of a particular field.

Regards,

2 REPLIES 2
Read only

former_member221770
Contributor
0 Likes
487

Prakesh,

You need to use the SORT Table Paramater:

Try:


data: tbl_sort type slis_t_sortinfo_alv.
data: st_sort  type slis_sortinfo_alv.

st_sort-spos = '1'.
st_sort-fieldname = 'VBELN'.
st_sort-tabname = 'TBL_DATA'.
st_sort-up = 'X'.
st_sort-group = '*'. "Page Break at new Value
append st_sort to tbl_sort.

Pass this parameter into your ALV FM.

Let me know how this goes.

Hope this helps.

Cheers,

Pat.

Read only

0 Likes
486

yes,

by filling 'group' in lvc_s_sort type or slis_sort,

u can get break, u can give '*' or 'UL' to the group. 'UL' gives u underline