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 Grid display .

Former Member
0 Likes
479

Hi Experts ,

I  have  already  displayed  report  for  collection .Below  that  i  need  to  display summary of the report

on  same screen.How  can  i  make it?

STASTICAL REPORT

From …………….. TO……………………..

NAME :

  1. No. of Receipts

AMOUNT

TOTAL COLLECTION

=Total  Number of entries in BELNR field column

=Total of WRBTR with respect to these columns

TOTAL RECEIPT CANCELLED

  =Total  Number of entries in STBLG field column

=Total of WRBTR with respect to these columns

NET COLLECTION

Nil

= TOTAL COLLECTION- TOTAL RECEIPT CANCELLED

Hi Experts ,

I  have  already  displayed  report  for  collection .Below  that  i  need  to  display summary of the report

on  same screen.How  can  i  make it?

STASTICAL REPORT

From …………….. TO……………………..

NAME :

  1. No. of Receipts

AMOUNT

TOTAL COLLECTION

=Total  Number of entries in BELNR field column

=Total of WRBTR with respect to these columns

TOTAL RECEIPT CANCELLED

  =Total  Number of entries in STBLG field column

=Total of WRBTR with respect to these columns

NET COLLECTION

Nil

= TOTAL COLLECTION- TOTAL RECEIPT CANCELLED

1 REPLY 1
Read only

naveen_inuganti2
Active Contributor
0 Likes
434

Add one more custom container and pass other table & fieldcatlog to that container. You can also also, split existing custom container.

Below classes are helpful:

cl_gui_container

cl_gui_splitter_container

Sample code:


data: go_parent_top  type ref to cl_gui_container,

         o_splitter     type ref to cl_gui_splitter_container,

         go_parent_grid type ref to cl_gui_container,

          gv_dyndoc_id   type ref to cl_dd_document,

go_custom_container type ref to cl_gui_custom_container,

go_grid             type ref to cl_gui_alv_grid.


CREATE OBJECT gv_dyndoc_id

     EXPORTING

       style = 'ALV_GRID'.

CREATE OBJECT go_custom_container " CC_1 is custom container name on screen

     EXPORTING

       container_name = 'CC_1'.


*       Create Splitter for custom_container

   CREATE OBJECT o_splitter

     EXPORTING

       parent  = go_custom_container

       rows    = 2

       columns = 1.

   CALL METHOD o_splitter->get_container

     EXPORTING

       row       = 1

       column    = 1

     RECEIVING

       container = go_parent_top.

   CALL METHOD o_splitter->get_container

     EXPORTING

       row       = 2

       column    = 1

     RECEIVING

       container = go_parent_grid.

*       Set height for g_parent_html

   CALL METHOD o_splitter->set_row_height

     EXPORTING

       id     = 1

       height = 23.

   CREATE OBJECT go_grid

     EXPORTING

       i_parent = go_parent_grid.


Regards,

Naveen