Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Reports Parameter

Status
Not open for further replies.

lasd

Programmer
Jan 14, 2005
48
IE
Hi
Hope someone can help me here. I am currently working on a report. I am trying to add a parameter for flr.last_used to my report. Below is my sql code and i was going to do it like this but it isn't working. no errors come up but it doesn't give back any information. it blocks all the info.

flr.last_used = :p_last_used

In reports there the parameter is defined having the value set FND_DATE. should i be using a different value set.


select flr.last_used last_used
from (select ls.user_id user_id,
lr.responsibility_id responsibility_id,
max(greatest(lr.start_time,nvl(lr.end_time,lr.start_time))) last_used
from fnd_logins ls,
fnd_login_responsibilities lr
where lr.login_id = ls.login_id
group by ls.user_id, lr.responsibility_id) flr

where flr.user_id (+) = ur.user_id
and flr.responsibility_id (+) = ur.responsibility_id

hope you can help
kindest regarsd

lasd
 
You have flr.last_used in your SELECT but not in your WHERE. How exactly are you trying to use this parameter?

If you have added it to the WHERE clause, do you supply the correct date format for the parameter?

If so, you may need to use TRUNC() on your dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top