cancel
Showing results for 
Search instead for 
Did you mean: 

How to do SQL like group by in BLS transaction

Former Member
0 Kudos

Hi All

I am on MII 12.2.I am using different data sources (ECC,SQL) to obtain 3 xml's which i finally merge together to get the desired data something like this :

Plant Actual QuantityPlanned Quantity
1001150015000
10025001000
10021000015000
1004012000

Now i want to do a group by on plant so that i achieve a total of quantities as per plant like this :

Plant Actual QuantityPlanned Quantity
1001150015000
10021500016000
1004012000

I want my BLS transaction to return an XML like this.Can some one please guide how to do a group by in a BLS transaction.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member204240
Active Participant
0 Kudos

Hi Shweta,

Why dont you create a local MII table with these 3 columns and store data.

So you can anytime do group by on that table data and fetch data?

Regards,

Padma

Former Member
0 Kudos

Hi All

Its working like a charm with Cross tab,initially i did not know how to use Cross tab  effectively but now its working as desired

0 Kudos

Shweta,

could you let me know how you got the expected result?


Nikhil_Makhija
Participant
0 Kudos

Please check below link :

http://scn.sap.com/thread/3237040

Regards

Nikhil

Former Member
0 Kudos

thanks Nikhil i already i had this link but i was having issues using the cross tab.