Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

How to print internal table data after filtering on company code and currency

$
0
0

Hi All,

 

I have to print the final internal table data after filtering based on  the fields.

 

For exampl, I have a final internal table with 6 rows. I wanted to print the final table after filtering with company code and  currency.

 

Company code     Currency   Amount

XYZ                       INR           100

XYZ                       INR           200

XYZ                       EUR          100

XYZ                       EUR          200

ABC                       INR           100

ABC                       INR           200

 

After filtering based on company code,currency and summing up the amounts, the output should look like below.

 

Company code     Currency   Amount

XYZ                       INR           300

XYZ                       EUR          300

ABC                       INR           300

 

I have tried it with filtering with only company code, I could achieve it easily. But I am not able to print final table correctly when I used both the filters.

 

 

Can anyone help me out or provide the logic to achieve the same?

 

 

 

Thanks and Regards,

Karthik Ganti.

 

 


Viewing all articles
Browse latest Browse all 9169

Trending Articles