cancel
Showing results for 
Search instead for 
Did you mean: 

populating Varibale depending what is in the query

Former Member
0 Kudos

Probably having a bit of a mind blank, but here goes.

I have a query that returns two kf's Actual Sales and Mark Down Week.

Style........Actual Sales.........Markdown Week

123..............200..................200437

I wan to display the Pre Markdown sales and the Post Markdown sales

Style.....Actual Sls(pre).Actual Sls(post)..Markdown Week

123............150.............50........ ........200437

Here we would have sold 150 in the time upto week 37 and sold 50 in teh weeks that follow week 37.

I need to restrict Actual Sales by Calendar Week where Calendor Week <= Markdown week

I have tried Custome Exit Variable, but I cannot pass any data to the ABAP to know what the Markdown Week is.

I could also use a Virtual KF but this would mean massive performance overhead as the system would have to calculate sales for each line returned in the query

cheers

alan

BW3.1

Message was edited by: Alan Poole

Message was edited by: Alan Poole

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

One option would be to add an additional characteristic in your transaction data as the markdown week and populate it with a very high week value say 300001 until the item is actually marked down. When that happens you can input the actual markdown week. Then you can create a restricted key figure with the restriction on this new characteristic to identify the pre-sales and a calculation (total - restricted) to identify the post markdown.

Shailesh