Application Development 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: 

ABAP Report

Former Member
0 Kudos

As i have displayed four fields in alv grid with its total at bottom.....Example is showing below..

But Quantity contains some values for local sale, some for export,some for trading sale.

Quantity            Local Sale            Export Sale        Trading Sale

                             1000                      2000                 3000



My Query is to create a radio button, when we click a radio button,

a new screen will appear and show this format which is given below..


Particulars           Quantity                                                   Amount

Local Sale           (Quantity amount for local sale)                1000

Export Sale          (Quantity amount for local sale)               2000

Trading Sale       (Quantity amount for local sale)                 3000

Total                      Quantity Total                                           6000


Please provide me the appropriate solution

Thanks,

Sourav Tyagi

Consultant - SAP

7 REPLIES 7

Former Member
0 Kudos

Hi,

Where you are adding the radio button, is it in the selection screen or in ALV?

0 Kudos

At selection Screen,.......actually my report is to display many fields with individually total at bottom,

Now my requirement is to create 2 radiobutton. 1 radio button is summary and 2 is details. When we click summary radiobutton. A new screen will appear. Like This.


Particulars           Quantity                                                   Amount

Local Sale           (Quantity amount for local sale)               1000

Export Sale          (Quantity amount for local sale)               2000

Trading Sale        (Quantity amount for local sale)                3000

Total                      Quantity Total                                           6000


.......

0 Kudos

Hello Kiran,

Provide me some solutions

Thankx

0 Kudos

Hi Sourav,

- You have to create and build the two internal tables and two field cats!

- Collect the data in two internal tables, irrespective of your radio buttons

- at the time of display- check the radio button and call the grid display

nabheetscn
Active Contributor
0 Kudos

Hi Sourav

What you can do is based on radio button you can covert your internal table as needed and display it accordinlgy.

ITAB1 has data like yours. Based on radio button. ITAB2 has three columns as desired.

LOOP at ITAB1 and append to ITAB2 and then display

Nabheet

0 Kudos

Hi Nabheet,

Processing and collecting the data should happen for two internal tables! I mean in this case radio button check is not required.

At the time of ALV display he can check radio buttons only! what do you think?

arivazhagan_sivasamy
Active Contributor
0 Kudos

Hi Sourav,

Loop at it_table.

fill the itab1 value for radio button1.

at last.

sum.

fill the itab2 value for radio button2.

endat.

Endloop.

After filling itab2 change the column based on your requirement.

Arivazhagan S