‎2008 Mar 04 10:08 PM
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
‎2008 Mar 04 11:08 PM
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.