Quantcast
Channel: SCN : Discussion List - SAP Business Warehouse
Viewing all articles
Browse latest Browse all 6437

Deduce information from ranges

$
0
0

Hi experts,

 

Let’s say I have some records arriving from my source Infocube as following :

 

Source Infocube:


Account

Functional Area

Profit Center

Amount

60000

00

10001

50,00

60000

05

20002

130,00

70000

13

30001

-450,00

 

In my target Infocube I want to add one more field that I am going to deduce from a master table with the following conditions:

 

Master Data Table:


Account

Functional Area Range from

Functional Area Range To

Profit Center Range from

Profit Center Range To

Virtual Account

60000

 

03

10001

10010

AX

60000

04

10

20001

20010

AY

70000

11

20

30000

30010

BX

 

The red cell means empty or initial.

So the difficulty that I am having is that is to test 2 ranges in order to deduce the Virtual Account into my target infocube which will be as following:

 

Target Infocube:


Account

Functional Area

Profit Center

Amount

Virtual Account

60000

00

10001

50,00

AX

60000

05

20002

130,00

AY

70000

13

30001

-450,00

BX

 

Do you think that an abap program in tyransformation level can be efficient in my case?

 

I tought about the following:

 

Read Transformation table with key account = Source Table- account

Test that Functional area of source table is between Functional Area Range from and TO

And Profit Center in source tale is between Profit Center Range from and To

And then deduce the virtual account

 

May be there simple ways to perform it, i would like to have your advices regarding your experiences.


Thanks for your support.

 

Amine


Viewing all articles
Browse latest Browse all 6437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>