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 55 of 129    Print  
Can Any body explain me how to use the following user_exits in apps reports which have flex fields as display/query columns.

  
Total Answers and Comments: 3 Last Update: January 21, 2008     Asked by: Expert4u 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 01, 2006 09:05:34   #1  
Deepak        

RE: Can Any body explain me how to use the following u...

FND FLEXSQL - This user exits allows you to use Flex fields in Reports

Call this user exit to create a SQL fragment usable by your report to tailor your SELECT
statement that retrieves flexfield values. This fragment allows you to SELECT flexfield
values or to create a WHERE ORDER BY GROUP BY or HAVING clause to limit or
sort the flexfield values returned by your SELECT statement. You call this user exit once
for each fragment you need for your select statement. You define all flexfield columns in
your report as type CHARACTER even though your table may use NUMBER or DATE or
some other datatype.
Syntax:
FND FLEXSQL
CODE flexfield code
APPL_SHORT_NAME application short name
OUTPUT : output lexical parameter name
MODE { SELECT | WHERE | HAVING | ORDER BY}
[DISPLAY {ALL | flexfield qualifier | segment number} ]
[SHOWDEPSEG {Y | N} ]
[NUM : structure defining lexical |
MULTINUM {Y | N} ]
[TABLEALIAS code combination table alias ]
[OPERATOR { | < | > | < | > | ! | || |
BETWEEN | QBE} ]
[OPERAND1 : input parameter or value ]
[OPERAND2 : input parameter or value ]

e.g-

SRW.USER_EXIT('FND FLEXSQL CODE MSTK NUM :P_STRUCT_NUM DISPLAY ALL
APPL_SHORT_NAME INV OUTPUT :P_ITEM_FLEXDATA MODE SELECT TABLEALIAS msi ');

FND FLEXIDVAL - This user exits allows you to use Flex fields in Reports

Call this user exit to populate fields for display. You pass the key flexfields data retrieved
by the query into this exit from the formula column. With this exit you display values
descriptions and prompts by passing appropriate token (any one of VALUE
DESCRIPTION APROMPT or LPROMPT).
Syntax:
FND FLEXIDVAL
CODE flexfield code
APPL_SHORT_NAME application short name
DATA : source column name
[NUM : structure defining source column/lexical ]
[DISPLAY {ALL| flexfield qualifier| segment number} ]
[IDISPLAY {ALL| flexfield qualifier| segmentnumber} ]
[SHOWDEPSEG {Y | N} ]
[VALUE : output column name ]
[DESCRIPTION : output column name ]
[APROMPT : output column name ]
[LPROMPT : output column name ]
[PADDED_VALUE : output column name ]
[SECURITY : column name ]

 
Is this answer useful? Yes | No
October 24, 2006 11:35:55   #2  
Reddy        

RE: Can Any body explain me how to use the following u...

Hi

Pls have look at my code here

SRW.REFERENCE(:STRUCT_NUM);
SRW.USER_EXIT('FND FLEXSQL
CODE GL#
APPL_SHORT_NAME SQLGL
OUTPUT :FLEXDATA
MODE SELECT
DISPLAY ALL
NUM :STRUCT_NUM
SHOWDEPSEG N
TABLEALIAS GCC ');
--
--ORDER BY
SRW.REFERENCE(:STRUCT_NUM);
SRW.USER_EXIT('FND FLEXSQL
CODE GL#
APPL_SHORT_NAME SQLGL
OUTPUT :CP_ORDERBY
MODE ORDER BY
DISPLAY 1
DISPLAY 3
DISPLAY 2
NUM :STRUCT_NUM
SHOWDEPSEG N
TABLEALIAS GCC ');

I am trying to se;ect Flex data and trying to order it by segment1 segment3 segment2.

But MODE ORDER BY is not making any difference.

It is displayng by ordering in segment1 segment2 segment3.segment4 segment5 segment6 as default order.could any one pls help .

Thanks

swapna


 
Is this answer useful? Yes | No
January 21, 2008 05:15:37   #3  
samir_mandal78 Member Since: January 2008   Contribution: 1    

RE: Can Any body explain me how to use the following user_exits in apps reports which have flex fields as display/query columns.
Dear swapna

Go to data model and please arrange your fields according to your required order.

Thanks
Samir

 
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