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_CHA R(SYSDATE+1-((rownum)*7) ,'ww-YYYY')),TO_CHAR (ADD_MONTHS(SYS DATE,-rownum+1),'Mont h-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.
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_CHA R(SYSDATE+1-((rownum)*7) ,'ww-YYYY')),TO_CHAR (ADD_MONTHS(SYS DATE,-rownum+1),'Mont h-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.
Comment