on 04-22-2014 3:12 PM
Hi Users,
I have a scenario to be implemented in my queries.
Scenario 1 -
I have a Characteristic field F1.
I have to create a coloum C1 in report display result which populates the below condition:
If F1 = '12345' then C1 = YES
ELSE it should be blank.
Scenario 2:
I have two date fields D1 and D2 with their corresponding KPI fields DV1 and DV2.
DV1 is for D1 and DV2 is for D2.
First D1 is compared with D2 and whichever is latest date then its corresponding field should be populated and other should not.
Example if D1 is 01.04.2014 and D2 is 22.04.2014 and If DV1 is 100 and DV2 is 200
Then only DV2 should be populated and DV1 should be empty.
Can anyone please suggest?
Regards
Syed
Two things to note before we move to solutions.
Now once you have converted the same then write the condition as below:
Scenario 1 -
I have a Characteristic field F1.
I have to create a coloum C1 in report display result which populates the below condition:
If F1 = '12345' then C1 = YES
ELSE it should be blank.
(FV1==12345)*1+(FV1<>12345)*0
For Scenario 2:
(D1>D2)*DV1+(D1<D2)*DV2
For converting the char into kfs refer the below document:
Hope this helps.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anshu,
I could create D1 and D2 as key figures using formula variable.
But the DV1 and DV2 which are the values for D1 and D2 I am not able to find the DV1 and DV2 in replacement path object list while creating formula variable. Not sure why. I checked but its not there.
Not sure what to do. DV1 and DV2 are attributes of a master data object.
Hi Anshu,
i have created two formulas to convert the characteristics to key figures using formula variable.
It works but i have one problem.
The characteristics DV1 and DV2 show values like this:
DV1 = 100USD
DV2 = 200USD
The two formulas i created show the above values as:
F1 = 100USD
F2 = 100 and USD is shown in top of the coloum in report display. I want the currency in every cell like for F1 but F2 shows on top of coloum just one time.
I checked properties and both have same.
Hi,
Have resolved the case..
thank you for all your help..
assigning points..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
Scenario 1:--
My take on this requirement would be "Virtual Char" concept for your Scenario 1. As you just want to populate text of YES in the report directly by based on a condition, you can write a small BADI code to populate Yes.
Step by step is below:--
Scenario 2:-- Convert both dates into KFs.
DV1 KF definition(New Formula) : ( D1 KF > D2 KF ) * DV1 + 0
DV2 KF Definition(New Formula) : ( D2 KF > D1 KF ) * DV2 + 0
So that dynamically your DV1 and DV2 will get populated.
Regards,
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suman,
I could create D1 and D2 as key figures using formula variable.
But the DV1 and DV2 which are the values for D1 and D2 I am not able to find the DV1 and DV2 in replacement path object list while creating formula variable. Not sure why. I checked but its not there.
Not sure what to do. DV1 and DV2 are attributes of a master data object.
Have you followed this doc?
Convert a Characteristic into a Key Figure (BEx)
You can select replace with Attribute in details tab of the Formula variable-->Replacement path-->Reference char as main Master data Infoobject.
Hi Suman,
Got it..
i have created two formulas to convert the characteristics to key figures using formula variable.
It works but i have one problem.
The characteristics DV1 and DV2 show values like this:
DV1 = 100USD
DV2 = 200USD
The two formulas i created show the above values as:
F1 = 100USD
F2 = 100 and USD is shown in top of the coloum in report display. I want the currency in every cell like for F1 but F2 shows on top of coloum just one time.
I checked properties and both have same.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.