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 layout

Former Member
0 Likes
449

hi,

I want to add a parameter as layout.in which the options should be grid , list , hierarchical

how to add f4 help to the parameter layout parameter parameter in the selection-screen for an ALV report.

regards

3 REPLIES 3
Read only

Former Member
0 Likes
426

Use at-slection screen on value request and built your own table for F4 help.

regards,

Kannan

Read only

Former Member
0 Likes
426

Hi,

Just go through the following sample code. Accordingly you need to change for your requirement.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR stai1-low.

DATA : BEGIN OF i_statvalues_tab OCCURS 0,

stsma LIKE tj30t-stsma,

txt04 LIKE tj30t-txt04,

txt30 LIKE tj30t-txt30,

END OF i_statvalues_tab.

SELECT stsma txt04 txt30 FROM tj30t INTO CORRESPONDING FIELDS OF TABLE

i_statvalues_tab WHERE stsma = 'NOTIFSTA'.

DELETE ADJACENT DUPLICATES FROM i_statvalues_tab.

SORT i_statvalues_tab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'TXT04'

dynpprog = 'zprogram'

dynpnr = '0100'

dynprofield = 'STAI1-LOW'

value_org = 'S'

TABLES

value_tab = i_statvalues_tab.

Hope this helps..

Harikrishna.

Edited by: harikrishna indugu on Mar 10, 2008 10:20 AM

Read only

Former Member
0 Likes
426

Hi,

Try to look at the program DEMO_DYNPRO_F4_HELP_MODULE.

For you to get three values, you can fill an internal table with the values you need and use it in the fm F4IF_INT_TABLE_VALUE_REQUEST.

Mark all helpful answers.