2012 Sep 24 11:45 AM
Hi,
How can i create multiple lists in ALV reports ???
Eg: Form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when '&IC1'.
perform build_field_cat.
perform fetch data.
perform display_data.
when '&IC2'.
perform build_field_cat.
perform fetch data.
perform display_data.
when '&IC3'.
perform build_field_cat.
perform fetch data.
perform display_data.
endform.
In the above case r_ucomm value is not changing to &IC2 for second list OR sy-lsind value is not changing to 2, 3,4......
Is it possible to use at line selection in ALV interactive reports ???.
Please help on the same.
Best Regards,
Dhananjay.
Hi,
How can i create multiple lists in ALV reports ???
Eg: Form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when '&IC1'.
perform build_field_cat.
perform fetch data.
perform display_data.
when '&IC2'.
perform build_field_cat.
perform fetch data.
perform display_data.
when '&IC3'.
perform build_field_cat.
perform fetch data.
perform display_data.
endform.
In the above case r_ucomm value is not changing to &IC2 for second list OR sy-lsind value is not changing to 2, 3,4......
Is it possible to use at line selection in ALV interactive reports ???.
Please help on the same.
Best Regards,
Dhananjay.
2012 Sep 24 2:13 PM
HI,
Sap program BALVBT01 will give u some good idea,
2)Otherwise,
try like this
U have to call 4 Function modules in sequence
1)
declare data with type pools slis.
2)Then select your requiremnt,
3)Then call function reuse_alv_fieldcatalog_merge, (multiple times as u want, suppose 2 times)
4)call function REUSE_ALV_BLOCK_LIST_INIT,(1 times)
5)Then call REUSE_ALV_BLOCK_LIST_APPEND(Multiple times as u want -here 2 times)
6)Last REUSE_ALV_BLOCK_LIST_DISPLAY
Hope your output list will come for 2 times.
Thanks
Gourav.
2012 Sep 27 7:00 AM
Hi Gourav,
I want to disply second list with using separate field catalog coz secondary list will have different data.
Can't we do it like Normal interactive using At line-selection event (HIDE & LSIND) in Grid display ???.
Thanks,
Thananjay.
2012 Sep 27 9:14 AM
If we call submit report statement
when '&IC1'.
submit Report.
may be this can work?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |