Dear All,
I am reading a measure a value as zero/0 against a dimension value empty/# from SAP BEx Query Data Source. I have following script for it and which is behaving strangely.
var measure1 = DS_MONTHLY_MATCHING_ANALYSIS.getData("00O2TM3FZ87JRJZEDI5EI31TY", {"CCOCCMNT":""});
var measure2 = DS_MONTHLY_MATCHING_ANALYSIS.getData("00O2TM3FZ87JRJZEDI5EI31TY", {"CCOCRCODE":""});
APPLICATION.alert(" measure 1" + measure1.value);
if ( measure1.value == 0 || measure2.value == 0)
{
POPUP_SAVE_ICON_UNMATCH.hide();
APPLICATION.alert("True Un-Match Report");
POPUP_COMMENT_UNMATCH.show();
}
else
{
POPUP_SAVE_ICON_UNMATCH.hide();
APPLICATION.alert("False Un-Match Report");
}
Following is the “Output” of the query and you can see I have highlighted the dimensions which I am reading from “SAP BEx Query” and the measure as well.
Following is the behavior of the Design Studio report/application when I click on “SAVE” Icon and my “Script” executes/triggers:
- Why it is showing value for the measure 10, as you can see it is 0 from the SAP BEx Query Output in Cross Tab?
- Secondly, according to my IF statement; it is going to “True” part means its working fine, how come?
- Am I reading “#” for dimensions correctly, as I have used “ ” for reading null or “#” for dimensions?
I will appreciate a reply in this matter.
Many thanks!
Tariq Ashraf

