Tuesday, June 29, 2010

Adding GL Accounting Flexfield to Report



RDF Steps
1) Define Below Parameters in Report

P_MIN_FLEX Char(200)

P_MAX_FLEX Char(200)
STRUCT_NUM Number(15)
P_CONC_REQUEST_ID Number(15)
P_LEDGER_ID Number(15)
P_USER_ID Number(15)

2) Add below code in Before Report Trigger

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 FLEXSQL CODE="GL#" NUM=":STRUCT_NUM" APPL_SHORT_NAME="SQLGL"
OUTPUT=":WHERE_FLEX" TABLEALIAS="CC"
MODE="WHERE" DISPLAY="ALL"
OPERATOR="BETWEEN"
OPERAND1=":P_MIN_FLEX"
OPERAND2=":P_MAX_FLEX"');

:WHERE_FLEX := ' AND ' :WHERE_FLEX;

3) Add below code in Report Query to the last line

&WHERE_FLEX

Application Setup Steps
- Add below parameters alongwith value set in Concurrent program Parameters Window

1) Chart of Accounts ID
Value Set- GL_SRS_COA_UNVALIDATED
Default Type- SQL Statement
Default Value- SELECT chart_of_accounts_id FROM gl_access_sets WHERE access_set_id = :$PROFILES$.GL_ACCESS_SET_ID
Token- STRUCT_NUM

2) Account Flexfield From
Value Set- GL_SRS_LEDGER_FLEXFIELD
Range- Pair
Token- P_MIN_FLEX

3) Account Flexfield To
Value Set- GL_SRS_LEDGER_FLEXFIELD
Range- Pair
Token- P_MAX_FLEX

9 comments:

  1. Can I use the same example to oracle standard report for example trail balance extended report I want to add sub account in my search list what do you suggest me please help me

    ReplyDelete
    Replies
    1. Mà theo này thật lớn Ma thú tiếp cận, Tiêu Viêm cũng là có thể rõ ràng thấy rõ nó nát, này đầu Ma thú, ngoại hình thoạt nhìn như là một đầu khổng lồ Lão Hổ, thế nhưng cả người đều là bị một tầng xích hồng sắc giáp xác nơi bao trùm, nhìn qua không gì sánh được kiên cố, hơn nữa, kia hai cái hàm răng là đủ đều biết trượng dài, phảng phất ngay cả không khí đều là bị sanh sanh xé rách, hơn nữa tại nơi một miệng lớn lên răng thượng, còn có phía nhàn nhạt tanh hôi mùi vị, hiển nhiên là sở hữu kịch độc.

      "Nghiệt Xỉ Ma Hổ." Nhìn này đầu cường hãn Ma thú, Tiêudongtam
      game mu
      http://nhatroso.net/
      http://nhatroso.com/
      nhạc sàn
      tư vấn luật
      dịch vụ thành lập công ty trọn gói
      công ty luật
      tổng đài tư vấn pháp luật
      thành lập công ty
      http://we-cooking.com/
      chém gió
      trung tâm ngoại ngữ Viêm trong mắt cũng là xẹt qua một mạt kinh dị vẻ, hiển nhiên là nhận ra nó để tế, tuy rằng thứ này không tính là cái gì Viễn Cổ dị thú, nhưng là điều không phải tầm thường Ma thú có thể sánh bằng.

      "Tê tê!" Ngập trời huyết khí, tràn ngập tại đây Nghiệt Xỉ Ma Hổ quanh thân, nồng nặc mùi máu tươi đạo lan tràn mà khai, một đôi màu đỏ tươi trong mắt, đầy rẫy phía thô bạo cùng tàn nhẫn

      Delete
  2. Yes you can, just take a customized copy of standard report and follow the steps given in this article..


    Thanks
    Amit

    ReplyDelete
  3. The simple steps are given to add GL accounting FlexField to report. Although beginner doesn’t find these steps easy but someone who has little knowledge of this topic can easily utilize the steps. Yes, I got the customized copy of the report.

    ReplyDelete
  4. How can we display default parameters for accounting flexfield while submitting report....

    ReplyDelete
  5. GREAT JOB MAN!! U SAVED MY DAY!! THANKS A LOT!!

    ReplyDelete
  6. Hi,

    we have 10 segments but pair list only 8 segments only. how to to display 10 segments.

    Thank You,
    Arun

    ReplyDelete
  7. There are extremely good software companies that provide an excellent product at a low to medium price range. Contabilitate Iasi

    ReplyDelete
  8. Bills can be entered and accordingly you can choose to make payments in multiples or in singles by utilizing the quickbooks tech support number software, getting the checks printed and ultimately in just a few steps, checking the stock also.

    ReplyDelete

Note: Only a member of this blog may post a comment.