2014 Jan 29 4:53 AM
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
2014 Jan 29 4:56 AM
Hi,
Where you are adding the radio button, is it in the selection screen or in ALV?
2014 Jan 29 5:02 AM
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
.......
2014 Jan 29 5:10 AM
2014 Jan 29 5:24 AM
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
2014 Jan 29 4:59 AM
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
2014 Jan 29 5:26 AM
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?
2014 Jan 29 5:18 AM
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