cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in new query creation

Former Member
0 Kudos

Hi Experts,

In a report there are two InfoObjects posting date and Expiry Date. User will enter the posting date at the run time. Now user wants to see the sales values for the conditions as below:-

0<=|(Expiry Date-Billing Date)/30|<6

6<|(Expiry Date-Billing Date)/30|<=12

12<|(Expiry Date-Billing Date)/30|<=18

18<|(Expiry Date-Billing Date)/30|<=24

24<|(Expiry Date-Billing Date)/30|<=36

36<|(Expiry Date-Billing Date)/30|<=48

48<|(Expiry Date-Billing Date)/30|<=60

Now question is when restricting the Expiry Date how to use value of Billing date. For example, say user gives Billing date=x. Now how to give restriction on Expiry date as x <(Expiry date)< x + 30*6.

Any input will be highly appreciated.

Thanks in advance.

Regards,

Prakash

Accepted Solutions (1)

Accepted Solutions (1)

shanthi_bhaskar
Active Contributor
0 Kudos

1st thing you need do is convert the Expiry Date, Billing Date into Key figures for that fallow below approach..

http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html

then create a formula for Expiry Date-Billing Date , then you can include this formula in your conditions

Former Member
0 Kudos

Thanks a lot Shanthi for quick reply. Your input is very helpfull.

Again my problem is that Expiry date is navigational attribute of InfoObject Batch Number. Is it possible to make navigational attribute Expiry date as key figure using Replacement-Path-Variable?

Any input will be highly appreciated.

Thanks in advance.

Regards,

Prakash

Former Member
0 Kudos

You should be able to do this as nav attributes behave like a normal characteristics.

shanthi_bhaskar
Active Contributor
0 Kudos

yes you can make use of navigational attribute also

Former Member
0 Kudos

Thanks for your reply.

Now problem is how to implement 6<|(Expiry Date-Billing Date)/30|<=12? We can restrict an InfoObject between an interval. Fow Example Material Number[122100;122400]. But how in implement it in case of calculated key figure or formula?

Any input will be highly appreciated.

Thanks in advance.

Regards,

Prakash

Answers (0)