GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle Apps  >  Apps Technical
Go To First  |  Previous Question  |  Next Question 
 Apps Technical  |  Question 46 of 129    Print  
How can I incorporate a lexical parameter in my report for having the FROM DATE and TO DATE parameter?. Can you Pls let me know of the steps involved in doing the same?

  
Total Answers and Comments: 3 Last Update: July 17, 2006     Asked by: Dips 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 24, 2005 04:29:32   #1  
Santosh Mudaliar        

RE: How can i incorporate a lexical parmater in my rep...

Hi

You can write the following code :

Your_lexical_variable : ' DBTABLE.columnname BETWEEN ' || '''' || :FROM_DATE || '''' || ' and ' ||'''' || :TO_DATE || ''''

hope this helps

regards

Santosh M

09356628950


 
Is this answer useful? Yes | No
April 11, 2006 08:40:17   #2  
user_pc        

RE: How can i incorporate a lexical parmater in my rep...

To use a lexical parameter in the query of your data model prefix it with a '&' (ampersand)

example SELECT ename FROM emp WHERE &lp_lexical_val

The value of p_lexical_val may be set in the code in a trigger etc. as follows:

:lp_lexical_val : 'empno 1111';

or

:lp_lexical_val : 'empno '||:p_input_val;

where p_input_val may be a report input parameter.


 
Is this answer useful? Yes | No
July 17, 2006 04:48:11   #3  
Trimbak Mahajan        

RE: How can i incorporate a lexical parmater in my rep...

1) create P_from_date and P_to_date are user bind parameters

2) Create LP_WHERE_CLS lexical parameter.

3) Write below code in the After Parameter Form Trigger

If :p_from_date is not Null

and :p_to_date is null then

LP_WHERE_CLS : 'AND inv.invoice_date :p_from_date'

elsif :p_to_date is not null and

:p_from_date is null then

LP_WHERE_CLS : 'AND inv.invoice_date :p_to_date'

elsif :p_to_date is not null

and :p_from_date is not null

LP_WHERE_CLS : 'AND inv.invoice_date Between :p_from_date AND :p_to_date '

end if;

This solution may help user more


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape