Add GL Flexfield To Custom Request
Add GL Flexfield To Custom Request
Add GL Flexfield To Custom Request
Steps:
1.
2.
3.
Modify your main query of the RDF file like the following:
Make sure that the GL_CODE_COMBINATIONS table is in your query and has an alias
4.
Add the following code to the (BEFORE REPORT) Trigger in the RDF file:
FND_PROFILE.GET('CONC_REQUEST_ID',:P_CONC_REQUEST_ID);
FND_PROFILE.GET('GL_SET_OF_BKS_ID',:P_LEDGER_ID);
FND_PROFILE.GET('USER_ID',:P_USER_ID);
srw.reference(:STRUCT_NUM);
SRW.User_Exit('FND SRWINIT');
--"glc" in the above line is the GL_CODE_COMBINATIONS alias in the main query
MODE="WHERE" DISPLAY="ALL"
OPERATOR="BETWEEN"
OPERAND1=":P_MIN_FLEX"
OPERAND2=":P_MAX_FLEX"');
5.
Add the following code to the (AFTER REPORT) Trigger in the RDF file:
SRW.USER_EXIT('FND SRWEXIT');
6.
7.
Go to the applications and login with any user has a System Administrator
responsibility.
8.
Query on your concurrent request and add to it the following three parameters:
1.
Chart of Accounts ID
Required: No
Displayed: No
Token: STRUCT_NUM
2.
Required: No
Displayed: Yes
Token: P_MIN_FLEX
3.
Account Flexfield To
Required: No
Displayed: Yes
Token: P_MAX_FLEX
Now save your work and run the report, you will find two parameters have been added to your conccurent
program as a LOV range of the GL Accounting Flexfield.
And of course it will filter your data according to your range entered.