Opendocument时, KEY DATE参数传递的问题

今天遇到一问题, 通过OPENDOCUMENT.JSP打开WEBI报表时, 普通的参数都可以传进去. 可是KEY DATE无法传递. 查了一下SDN, 找到一个方法, 下午试一下.
1/ 先修改UNIVERSE的参数设置, 将KEYDATE_DEFAULT_VALUE" and KEYDATE_ENABLED 设置 "No".
2/ 在UNIVERSE上增加一个FILTER. 过滤关键日期对应的IO.

原文(https://forums.sdn.sap.com/thread.jspa?messageID=7748811):
There is 5 parameters, which describe a key date in a Designer:
KEYDATE_CAPTION
KEYDATE_DEFAULT_VALUE
KEYDATE_ENABLED
KEYDATE_MANDATORY
KEYDATE_NAME
You can get them in file -> parameters -> Parameter.
I filled out the field "KEYDATE_DEFAULT_VALUE" and KEYDATE_ENABLED I set "No".
Then go to filters in your univers.
Open the required filter and add this line before last </OPERATOR>:
<FILTER KEY="0P_KEYDA"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Key Date:','D',,,)"/></CONDITION></FILTER>.
you should get approximately the following:

<OPERATOR VALUE="AND"><FILTER KEY="!V000003"><CONDITION OPERATORCONDITION="Between"><CONSTANT TECH_NAME="@Prompt('Балансовая единица From','A',,,)"/><CONSTANT TECH_NAME="@Prompt('Балансовая единица To','A',,,)"/></CONDITION></FILTER><FILTER KEY="!V000002"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Главная БЕ (опции выбора, обязательно)','A',,,)"/></CONDITION></FILTER><FILTER KEY="0P_KEYDA"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Key Date','D',,,)"/></CONDITION></FILTER></OPERATOR>

Then save and export univers.

This should help.
Timur Khayaliev


补充: 在DESIGNER里, 应先到UNIVERSE里的属性里, 找到KEY_DATE对应的变量名称或信息对象名称, 再根据这个名称建FILTER, 建完FILTER后, 该FILTER无法通过DESIGNER的分析检查, 但是不影响正常的使用(奇怪的问题).

你可能感兴趣的:(thread,jsp,Go)