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 dynamic selection

Former Member
0 Likes
270

Gurus,

I have written a ALV report by joining BKPF and FAGLFLEXA table...I have used FM REUSE_ALV_GRID_DISPLAY...

Now the user wants a dynamic selection on the selection screen to choose fields on which he wants to summarize the values...

I display 25 fields and the user wants to summarize on few of them...

Can you please provide some inputs on how I can do that...

I have no clue on how to begin...and what i shud do...

Coding samples will be helpful tooo....

Thanks

Sam

Edited by: Alvaro Tejada Galindo on Mar 4, 2008 6:04 PM

1 REPLY 1
Read only

Former Member
0 Likes
244

Nothing fancy...You only need to check on the catalog...If the field is passed as parameter you add this...


READ TABLE S_SUMARIZE WITH KEY
LOW = 'BLART'.
IF SY-SUBRC EQ 0.
FIELDCATALOG-DO_SUM = 'X'.
ENDIF.

You got an SELECT-OPTIONS with the fields that should get sumarize...For everyfield in the catalog you ask if they are contained in the LOW field of the SELECT-OPTIONS...When true...add DO_SUM...

Greetings,

Blag.