Application Development 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: 

how i can show the selection screen input field in the top of page in alv

Former Member
0 Kudos

hi ,

how i can show the selection screen input field in the top of page in alv grid output.

tell me the process

4 REPLIES 4

Former Member
0 Kudos

Hi,

we can get the selction-screen input value into one variable .

display the top-of-page using REUSE_ALV_COMMENTARY_WRITE fuction module.

we can pass input variable to above function module.

Regards,

Suresh

Former Member
0 Kudos

Hi,

excample from my program:

FORM topof_page.

DATA: l_it_header TYPE TABLE OF slis_listheader WITH HEADER LINE,

l_info LIKE l_it_header-info.

DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.

DATA: l_key LIKE l_it_textpool-key.

READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.

DEFINE m_selinfo.

if not &1 is initial.

clear l_it_header.

l_it_header-typ = 'S'.

l_key = '&1'.

translate l_key to upper case.

read table l_it_textpool with key key = l_key.

if sy-subrc = 0.

shift l_it_textpool-entry left deleting leading space.

l_it_header-key = l_it_textpool-entry .

endif.

loop at &1.

case &1-option.

when 'EQ'

or 'BT'

or 'CP'.

write &1-low to l_it_header-info.

when others.

write &1-low to l_it_header-info.

concatenate &1-option

l_it_header-info

into l_it_header-info

separated by space.

endcase.

if not &1-high is initial.

write &1-high to l_info left-justified.

concatenate l_it_header-info

'-'

l_info

into l_it_header-info

separated by space.

endif.

if &1-sign = 'E'.

concatenate ']'

l_it_header-info

'['

into l_it_header-info.

endif.

append l_it_header.

clear: l_it_header-key,

l_it_header-info.

endloop.

endif.

END-OF-DEFINITION.

m_selinfo: s_trmdat,

s_trmext,

s_trmint,

s_fkdat,

s_delno,

s_vbeln,

s_deact,

s_kdmat.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = l_it_header[].

.

ENDFORM.

I hope, this will help you.

Regards

Nicole

Former Member
0 Kudos

Create a header in ALV with the data you need.

Use the previous codes before my post

former_member188685
Active Contributor
0 Kudos

check my post in the thread