Quantcast
Channel: SCN: Message List - Business Content and Extractors
Viewing all articles
Browse latest Browse all 5631

Aggregation on BW transformation

$
0
0

Hi experts,

 

I have a a specific datasource that populate a specific DSO, the dataSource has more fields that the DSO, that means it contains more detail that the DSO. So I need to aggregate data from the dataSource before transfer it to the DSO. Let me give an example.

 

The DataSource structure:

Project ID  |     WBS ELEMENT       |     COMPANY     |     MATERIAL     |     SALES EMPLOYEE     |     QUANTITY     |     AMOUNT

1                         1                                      COMP1               MAT1                         SE1                                   10                    1000

1                          2                                     COMP1               MAT2                         SE2                                   20                    2000                  

 

The DSO structure:

PROJECT ID     |     COMPANY     |       AMOUNT

1                                   COMP1               3000

 

In the example above, I have to group by PROJECT ID and COMPANY...

 

In the start routine, I created an internal table, T_GROUPED, where I grouped and sorted all records from the source by the PROJECT ID and COMPANY CODE. In the characteristic routine, for each record, if it's the first record with a different PROJECT ID and COMPANY, I looked for the AMOUNT in the internal table T_GROUPED,  if it is a record that is already treated, the record is escaped...It's work fine.

 

I m wondernig if it's the best way to agggregate? is there any standard solution ?

 

Any suggestion would be helpful.

Thank you a lot.

Abdess,


Viewing all articles
Browse latest Browse all 5631

Trending Articles