问题描述
我有2个参数。
1)第一个参数具有独立的值设置,它只有2个可能的值''周''或''月''。
2)第二个参数有表格值set,如果传递的parameter1值为''week',则应显示过去5年的
''weekno-year''。
3)如果传递的参数1值为月,则第二个参数值设置应显示过去5年的月 - 年。
我的第二个值集的代码" table name"是: -
(SELECT DECODE(:$ FLEX $ .first_value_set,''week'',(TO_CHAR(SYS DATE + 1 - ((rownum)* 7),'' ww -YYYY'')),TO_CHAR(ADD_MONTHS(SYSDATE,-rownum + 1),''Month -YYYY''))week_month
FROM all_objects
和in where / order by子句:
其中rownum< DECODE(:$ FLEX $ .xx_period_type,''week'',261,61))
此代码在oracle客户端上从sqlplus正常工作。
但是在APPS中它会抛出一个错误....
APP-FND-00005:不正确的论点已经通过用户退出#MESSAGE_TOKEN。
Cna任何一个帮助。
提前谢谢。
I have 2 parameters.
1)1st parameter has independent value set and it will have only 2 possible values ''week'' or ''month''.
2)2nd parameter has "table" value set which should display the
''weekno-year''of last 5 years if parameter1 value passed is ''week''.
3)2nd parameter value set should display the ''month-year'' of last 5 years if parameter1 value passed is ''month''.
My code for 2nd value set "table name" is :-
(SELECT DECODE(:$FLEX$.first_value_set,''week'',(TO_CHAR(SYS DATE+1-((rownum)*7) ,''ww-YYYY'')),TO_CHAR(ADD_MONTHS(SYSDATE,-rownum+1),''Month-YYYY'')) week_month
FROM all_objects
and in where/order by clause:
where rownum< DECODE(:$FLEX$.xx_period_type,''week'',261,61))
This code is working fine from sqlplus on oracle client.
But in APPS it is throwing an error like....
APP-FND-00005:INCORRECT ARGUMENTS WERE PASSED TO USER EXIT #MESSAGE_TOKEN.
Cna any one help.
Thanks in advance.
这篇关于动态报告参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!