Expense report query issu

Hi,
I have a requirment that create a view for all the expense reports created for given employee.
I took the query behind expense reports home page and tried to create view but I am getting an error saying that
ORA-01948: identifier's name length (52) exceeds maximum (30)
could some one please tell me what is wrong i am doing here.
also if someone has same kind of query or view please let me know.
It will be great if someone can reply quickly on this.
Thanks,
Jagan

My requirement is that I have to create a view and give it to some one who consumes and does some processing in their system.

Similar Messages

  • How can I get the project number to be included in my expense report query?

    ..afternoon gurus.
    As title suggests, I need to include the project number in my script for the users.
    I've everything else but I've noticed even with the project number specified in the application (in Step 3), the database table (I'd thought that it should have been in the AP_EXPENSE_REPORT_LINES_ALL.project_id but it ain't).
    Where is it located..?
    code so far..
    -- COMPLETE i-EXPENSES details of all outstanding expense claims..
    -- COMPLETE i-EXPENSES details of all outstanding expense claims..
    SELECT  DISTINCT
    erh.week_end_date "Expense Report Date",  erh.attribute_category, erh.attribute5,erh.last_updated_by,
    erl.report_line_id, erh.invoice_num, erh.creation_date, --     erh.SOURCE,
         erh.expense_last_status_date "Last Update", pap.full_name "Employee claiming..",
         erh.override_approver_name "ER Approver",erh.report_submitted_date "Submit date",
         DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "Expense Status Code" ,
    fu.description "Administrator", erl.item_description, 
    -- gcc.segment1|| '.' || gcc.segment2|| '.'|| gcc.segment3|| '.'|| gcc.segment4|| '.'|| gcc.segment5 "GL code", 
    erl.amount, erl.attribute_category,  --erh.total, 
         erh.description 
         FROM
                    AP_EXPENSE_REPORT_HEADERS_all erh, AP_EXPENSE_REPORT_LINES_ALL erl,
                     per_all_people_f pap, fnd_user fu --                gl_code_combinations gcc,       
         WHERE erh.employee_id = pap.person_id
              AND fu.user_id = erh.created_by
              AND erl.report_header_id = erh.report_header_id
    --          AND erl.code_combination_id = gcc.code_combination_id          
    AND erh.invoice_num IN ('EXP74185')
         AND erh.creation_date > '04-oct-09'
         ORDER BY 3 DESC;thanks for looking...
    S

    Project_id In Ap_expense_report_lines_all Is Null In Oie.K. Is This Intended Functionality ? [ID 437559.1]
    In OIE.J and below , the project_id value was stored in AP_EXPENSE_REPORT_LINES_ALL table.
    From OIE.K an on ,the column name project_id was obsolete in ap_expense_lines_all table,
    and was added in table ap_exp_report_dists_all.

  • Performance issues when creating a Report / Query in Discoverer

    Hi forum,
    Hope you are can help, it involves a performance issues when creating a Report / Query.
    I have a Discoverer Report that currently takes less than 5 seconds to run. After I add a condition to bring back Batch Status that = ‘Posted’ we cancelled the query after reaching 20 minutes as this is way too long. If I remove the condition the query time goes back to less than 5 seconds.
    Please see attached the SQL Inspector Plan:
    Before Condition
    SELECT STATEMENT
    SORT GROUP BY
    VIEW SYS
    SORT GROUP BY
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
    AND-EQUAL
    INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N2
    INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
    INDEX RANGE SCAN GL.GL_JE_LINES_N1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
    INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
    INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_BATCHES
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
    INDEX RANGE SCAN GL.GL_PERIODS_U1
    After Condition
    SELECT STATEMENT
    SORT GROUP BY
    VIEW SYS
    SORT GROUP BY
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    TABLE ACCESS FULL GL.GL_JE_BATCHES
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
    INDEX RANGE SCAN GL.GL_JE_HEADERS_N1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
    INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
    INDEX RANGE SCAN GL.GL_JE_LINES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
    INDEX UNIQUE SCAN GL.GL_CODE_COMBINATIONS_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
    INDEX RANGE SCAN GL.GL_PERIODS_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    Is there anything i can do in Discoverer Desktop / Administration to avoid this problem.
    Many thanks,
    Lance

    Hi Rod,
    I've tried the condition (Batch Status||'' = 'Posted') as you suggested, but the qeury time is still over 20 mins. To test i changed it to (Batch Status||'' = 'Unposted') and the query was returned within seconds again.
    I’ve been doing some more digging and have found the database view that is linked to the Journal Batches folder. See below.
    I think the problem is with the column using DECODE. When querying the column in TOAD the value of ‘P’ is returned. But in discoverer the condition is done on the value ‘Posted’. I’m not too sure how DECODE works, but think this could be the causing some sort of issue with Full Table Scans. How do we get around this?
    Lance
    DECODE( JOURNAL_BATCH1.STATUS,
    '+', 'Unable to validate or create CTA',
    '+*', 'Was unable to validate or create CTA',
    '-','Invalid or inactive rounding differences account in journal entry',
    '-*', 'Modified invalid or inactive rounding differences account in journal entry',
    '<', 'Showing sequence assignment failure',
    '<*', 'Was showing sequence assignment failure',
    '>', 'Showing cutoff rule violation',
    '>*', 'Was showing cutoff rule violation',
    'A', 'Journal batch failed funds reservation',
    'A*', 'Journal batch previously failed funds reservation',
    'AU', 'Showing batch with unopened period',
    'B', 'Showing batch control total violation',
    'B*', 'Was showing batch control total violation',
    'BF', 'Showing batch with frozen or inactive budget',
    'BU', 'Showing batch with unopened budget year',
    'C', 'Showing unopened reporting period',
    'C*', 'Was showing unopened reporting period',
    'D', 'Selected for posting to an unopened period',
    'D*', 'Was selected for posting to an unopened period',
    'E', 'Showing no journal entries for this batch',
    'E*', 'Was showing no journal entries for this batch',
    'EU', 'Showing batch with unopened encumbrance year',
    'F', 'Showing unopened reporting encumbrance year',
    'F*', 'Was showing unopened reporting encumbrance year',
    'G', 'Showing journal entry with invalid or inactive suspense account',
    'G*', 'Was showing journal entry with invalid or inactive suspense account',
    'H', 'Showing encumbrance journal entry with invalid or inactive reserve account',
    'H*', 'Was showing encumbrance journal entry with invalid or inactive reserve account',
    'I', 'In the process of being posted',
    'J', 'Showing journal control total violation',
    'J*', 'Was showing journal control total violation',
    'K', 'Showing unbalanced intercompany journal entry',
    'K*', 'Was showing unbalanced intercompany journal entry',
    'L', 'Showing unbalanced journal entry by account category',
    'L*', 'Was showing unbalanced journal entry by account category',
    'M', 'Showing multiple problems preventing posting of batch',
    'M*', 'Was showing multiple problems preventing posting of batch',
    'N', 'Journal produced error during intercompany balance processing',
    'N*', 'Journal produced error during intercompany balance processing',
    'O', 'Unable to convert amounts into reporting currency',
    'O*', 'Was unable to convert amounts into reporting currency',
    'P', 'Posted',
    'Q', 'Showing untaxed journal entry',
    'Q*', 'Was showing untaxed journal entry',
    'R', 'Showing unbalanced encumbrance entry without reserve account',
    'R*', 'Was showing unbalanced encumbrance entry without reserve account',
    'S', 'Already selected for posting',
    'T', 'Showing invalid period and conversion information for this batch',
    'T*', 'Was showing invalid period and conversion information for this batch',
    'U', 'Unposted',
    'V', 'Journal batch is unapproved',
    'V*', 'Journal batch was unapproved',
    'W', 'Showing an encumbrance journal entry with no encumbrance type',
    'W*', 'Was showing an encumbrance journal entry with no encumbrance type',
    'X', 'Showing an unbalanced journal entry but suspense not allowed',
    'X*', 'Was showing an unbalanced journal entry but suspense not allowed',
    'Z', 'Showing invalid journal entry lines or no journal entry lines',
    'Z*', 'Was showing invalid journal entry lines or no journal entry lines', NULL ),

  • Detail Expense Report Page...Merchant Name--Required Issue. High

    Hi All,
    I modified the page (DetailsPagePVOImpl) to make the Merchant field required if the category "Meals" is selected, this work fine (means puts * on the page) but the issue is it doesn't enforce to enter the value.. it doesn't give error message when the Merchant name is blank even though the field is required.
    Any idea gurus?
    thanks
    Ravi

    Sumit,
    In the Create Expense Report, the 4th Step is to enter Cash and Other Expenses.
    When you click Detail, the Cash and Other Expense: Details for Line 1" page is displayed.
    When user select ExxpensType "Meals/Entertainment", Category (Meals), we want the Merchant Name to be required field.
    I modified the DetailsPagePVOImpl class to make Merchant Name reuqired field when user selects "Meals/Entertainment".
    After modifying when user selects "Meals/Entertainment" the Merchant Name becomes required, but it doesn't enforce the requirement...that means even if I do not enter any value it doesn't display error..that you need to enter "merchat name".
    I have been looking everywhere..but no luck so far.. I would really appreciate if you can guide me...
    Thanks
    Ravi

  • Post upgrade to 3.1 issues : Unable to open report query

    Hi,
    We have upgraded our APEX version from 3.0 to 3.1. We have some wierd problems now
    1. I tried to add a new column link to an existing report region and I get an error.
    failed to parse SQL query:
    ORA-00911: invalid character
    2. I have to make some changes to an existing report query and I am unable to open it. I Get the following error:
    ORA-01461: can bind a LONG value only for insert into a LONG column
    Can anybody let me know the reason for these errors.
    Thanks
    Knut

    Hi Scott,
    We created a test case on apex.oracle.com in my workspace (DGIELIS_31)
    It's Application 54025, the query is called "Test Big Query".
    Currently it works, but edit the query and copy one of the comment lines and paste it in to take it over 4k. You should get the same error.
    Just for the record:
    - in APEX 3.0 in a non UTF-8 (WE8ISO8859P15) database this query was working
    - When migrating to UTF-8 database with APEX 3.1.1 we can't open the queries.
    - We can't use a view in this case, it's a pretty complex query which already uses MV's and the tables in questions are pretty huge. The query we had to come up with is pretty big to get optimal performance.
    If you want I can email you my login details or create you a user.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Importing Expense Report from legacy to Oracle Payables??

    All,
    I need to import ER from legacy to payables. I used ap_expense_reports_headers_all & ap_expense_report_lines_all tables. But the "Expense Report Program" is not picking up the data from the tables though i populated all the required columns of the tables!!! When i open the "View Output" it says "The conc.request did not create an output file"!!!
    Can anyone tell me what could be the reason behind the failure of the program?
    Do I need to populate anyother column to resolve this issue?
    Detailed response is highly appreciated.
    thanks in advance,
    Sen

    Steps to import into AP
    Navigate to the Accounts Payable Responsibility
    Go to View -> Requests -> Submit a New Request -> Single Request -> OK
    Submit the Expense Report Export Program, after specifying all the mandatory parameters
    Source parameter should 'Oracle Internet Expenses'
    To view the expense report created
    Navigate to the Accounts Payable Responsibility attached to the User
    Go to Invoices -> Entry -> Invoices
    In the Invoice Workbench Window query the Invoice Num field with the Name of the Expense Report created in the previous step. The Invoice is displayed in the Invoice Workbench with the Type as Expense Report

  • APEXP ( Expenses )  AP Standard Expense Report Process

    Hi everybody,
    I am having one query regarding Expenses workflow.
    Currently expense report is getting approved through worklist. As per requirment we want to approve it through email.
    To achive this functionality I have Added #WFM_OPEN_MAIL attribute to the message. ((new) AME Expense Report Approval Message) which is attached to the approval notification).Idealy it should work but still we are not getting Approve/Reject buttons in the email.
    Kindly suggest where I am maknig the mistake.........
    Regards,
    Rajesh Goyal

    From: Oracle
    Sent: Friday, January 29, 2010 7:36 PM
    To: Subrata Kumar Singh
    Subject: Action Required: Expense EXL-NOIDA-10528 for Dhyani, Lalit (1030.00 INR)
    From     
    Dhyani, Lalit
    To     
    Singh, Subrata
    Sent     
    29-Jan-2010 19:35:40
    Due     
    01-Feb-2010 19:35:40
    ID     
    725995
         Expense Report for     
    Dhyani, Lalit
    Individual's Cost Center     
    36
    Expense Report Total     
    1030.00 INR
    Attachments     
    RE urgent.msg
    Instructions
              Please approve or reject this expense report. Please provide a Note if you reject.
    Cash and Other Expenses: Business Expenses
    Line     Date     Expense Type     Reimbursable Amount (INR)     Justification     Attachments
    1     21-Jan-2010     Cab (Non Billable)     1030.00     Taxi charges for iExpense Training at Center-7 Gurgaon     
         Total
         1030.00          
    Previously Submitted Expenses
    Date     Expense Type     Merchant Name     Reimbursable Amount     Payment Method     Justification
    No results found.                         
    Approvals History
    Seq.     Date     Status     Performer     Approval Group     Comments
    1     29-Jan-2010 19:35:39     Notified     Singh, Subrata     EXL Supervisor-1     
    Related Applications
              Expense Report Details
    Copyright (c) 2006, Oracle. All rights reserved.     
    Please click here to Respond
    =====================================================================
    Hi Alejandro,
    Thanks a lot to take intrest in this issue.
    Above is the notification which we are getting currently in our outlook.
    To respond this notification from outlook we needs to click Please click here to Respond link.
    Now we want response buttons insted of this link.
    To achive this we added #WFM_OPEN_MAIL attribute to the approval message.
    but the changes are not reflecting in the notifications.
    I am guessing you are able to see the buttons when in the worklist.
    Yes we are able to see the buttons when in the worklist.
    Regards,
    Rajesh

  • The expenditure organization is not active for Expense Report

    Greetings to all,
    We ran into a problem, where a person submitted an expense report with project related information. The exp report gets an error in the workflow. When we look at the workflow error message is: This expense report failed payables validation.
    When we look at the notification for error message, shows the expense report and for the line that has a problem, gives the following error message:
    "The expenditure organization is not active."
    We check the org in HRMS, we look up the org and has the following setups:
    HRMS-->work structures--> organization (query the cost center)
    then when looking at the cost center has the following:
    under organization classifications:
    Project Expenditure/Event Organization
    Project Task Owning Organization
    HR Organization
    Then looking at hrms-->organization--->hierarchy
    query for hierarchy-->we get our hierarchy,
    then under organization-->query again for our main org, we see then the subordinates which we see the cost center again.
    Everything looks good our point of view.
    If have researched this issue on ML and have read the following notes: 423267.1, but this does not resolve our issue.
    If someone has encountered this problem, can you share the additional steps to troubleshoot this issue.
    Thanks in advance for any help on this matter.

    All --
    It turns out that the employees were on LOA on the dates that they were charging time. So the message didn't really describe what the actual problem was. What happened is that the employees had gone on LOA and then returned to work, but HR had not yet returned them to active assignment. They entered their timecards as they normally had, but they did not pass validation because they weren't active on the dates they were trying to charge.
    I would have looked at the assignment earlier in the process if the error message had been employee-oriented instead of referring to the org, but at least the problem is solved. Thanks for everybody's input!
    Joe

  • Report-Query Value

    Hi Experts,
    Currently we are using one BW report in 3.5version(report query against multi provider).
    Current issue:
    Cube Fields:
    PO Number: 123
    Order value 100.
    Confirmation value 50
    Final Delivery Indicator: X (YES-No more confirmation is expected)
    Calculation on the Query:
    Outstanding Confirmed Value= Order Value - Net Confirmed Value
    Here Outstanding Confirmed Value = 100-50=50.So in the reports, Outstanding Confirmed Value shows 50.
    But the PO's Final Delivery Indicator is marked. So No more confirmation is expected
    Question:
    I am not able to create any formula against the filed Final Delivery Indicator. But i want to show in the report that if the PO's Final Delivery Indicator marked, then Outstanding Confirmed Value has to be 0(ZERO).
    Please help me achieve this result. Thanks.
    Advance Thanks.
    RR.

    Hi ,
    This can be achived in the following way.
    1. Create your formula
        "Outstanding Confirmed Value= Order Value - Net Confirmed Value" and hide it using the property.
    2. Create one more forumala which will check the condition. i.e. if the Final Delivery Indicator is marked then it will set the outstanding confirmed value as zero else it will show the value which we are getting by using above mentioned formula.
    put the following condition in the formula.
    [Final Delivery Indicator = = 0 ] * 0 + [Final Delivery Indicator <> 0]*Outstanding Confirmed Value
    This will work as follow.
    For example : Outstanding Confrimed Value is 50 and Final Delivery Indicator is marked.
    = [ 0 == 0 ] * 0 + [ 0 <> 0 ] * 50
    = 1* 0 + 0 * 50              " When the condition is satisfied its result is 1. here 0 == 0 condtion is satisfied so its return value is 1.
    = 0
    Hope this will help.
    - Jaimin

  • Report query with bind variable

    Trying to create a report query for xsl-fo print. For output format I pick "derive from item" then pick the item name from the list, on the next screen, I paste the query with the bind variable. on the next step test query, I always get "data not found" regardless what value I type in. This is the same query that I ran under sql commands without any issues.
    Does anyone run into the same issue as I have when attempted to create a query with bind var ? There is no problem creating a query without bind varibles. . thanks.
    Munshar

    Hi, please did you get any solution to this issue? I am having similar challenge right now.
    select     EMP.DEPTNO as DEPTNO,
         DEPT.DNAME as DNAME,
         EMP.EMPNO as EMPNO,
         EMP.ENAME as ENAME,
         EMP.JOB as JOB,
         EMP.MGR as MGR,
         EMP.HIREDATE as HIREDATE,
         EMP.SAL as SAL
    from     SCOTT.DEPT DEPT,
         SCOTT.EMP EMP
    where EMP.DEPTNO=DEPT.DEPTNO
    and      DEPT.DNAME =upper(:dname)
    This run perfectly in sql developer, toad, and even inside publisher if I login directly to publisher to create report.
    Generating this same query in shared component query builder and testing it returns no data found. If I remove the last line, it works. but with the last line, it return no data found. It seems no one has been able to provide solution to this issue

  • Performance problem with report query

    Hi,
    I am encountering a performance issue with a page returning a report.
    I have a page that has a region which joins 2 tables. One table has about 220,00 rows, while the other contains roughly 60,000 rows. In the region source of the report region, the query includes join condition with local variables. For example, the page is page 70, and some join conditions are:
    and a.id=:P70_ID
    and a.name like :P70_NAME
    I run the query that returns a large number of rows from sqlplus, and it takes less than 30 sec to complete.
    When I run the page, the report took about 3 minutes to return.
    In this case, :P70_NAME is initialized to '%' on the page.
    I then tried to substitute variable value directly in the query:
    and a.id=1000
    and a.name like '%'
    this time the report returned in about 30 sec.
    I then tried another thing which specified the region as "PL/SQL Function returning sql query", and modified the region as follows:
    l_sql := '.......';
    l_sql := l_sql || 'and a.id=' || v('P70_ID')
    and similar substituting :P70_NAME to v('P70_NAME') and append its value to the l_sql string.
    The report query page also returned in 30 sec.
    Is there any known performance issue with using the bind variable (:PXX_XXX) in the report region?

    If you are able.. flush the shared_pool, run your
    report then query the v$sql_area or v$sql_text tables.
    Or do a google query and look up Cary Milsap's piece on enabling extended trace .. there is your sure fire way of finding the problem sql. I am still learning htmldb but is there a way to alter session enable trace in some pre-query block?

  • Creating a print button to call a Report Query and pass filters

    If i use the REPORT QUERY option in APEX 4 to create an statement that is the same one used in an interactive report, can I create a link or button to the REPORT QUERY and pass all the session and filter information from the interactive report to the report query?
    This way I can have the interactive report screen where the user can do all sorts of modifications and such and then pass those to the REPORT QUERY so I can call that from a custom link or button.
    You may ask "why does he need another print button?"
    Answer: I am using a view that has some embedded HTML tags to format the output really nicely. The HTML download version created by the interactive reports works beautifully. The customer also wants a PDF version (meh) which does not render the HTML tags and actually echos them as part of the text. I found that I can create another view that uses the CHR function to create all the breaks and such I was doing with HTML and these do render properly in PDF. So, I figured just have 2 reports: 1 Interactive and 1 using a REPORT QUERY. I just want to call the REPORT QUERY version but use the Interactive Search form to set all the parameters.
    Or, am I over thinking this and there is an easier method?
    I made a previous post where I showed how I got the APEX printing to work and i hoped that helped someone out - fixing this issue would put the whole thing to rest.
    Thanks

    Is BI Publisher desktop (MS Word add-in) a possibility? This would allow you to use MS Word to create your output template (RTF) that would result in a properly formatted PDF. Of course, you'd have to right an updated version of the query without HTML embedded. Just thinking outside of the box.

  • Ora-06502 pl/sql numeric or value error in Report Query in oracle apex

    Hello all,
    I need your help...
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am using bi publisher to generate PDF reports in oracle apex.
    We were using APEX 4.0 and migrated to 4.2 just a week ago.
    Now we have apex 4.2.
    When I try to Create report query,
    Shared Components >> Report Queries then create.
    and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    I have also applied a patch "16760897".
    This issue is because of number of columns in a query is more then 26.
    If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
    My before migration report queries working perfectly even now, but not new queries.
    This issue is also in apex.oracle.com.
    You can see
    Not working  - http://apex.oracle.com/pls/apex/f?p=619:4
    Working - http://apex.oracle.com/pls/apex/f?p=619:2:
    Please give a solution.
    Thanks you.

    check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
    Oracle Application Express Installation Requirements for 4.0

  • Expense Report Expense Program errors in R12.1.2

    Hi gurus,
    I am trying to run the Expesne Report Export Program and it is erroring out the Reject code is (INCONSISTENT SUPPL SITE).Here we have to Sources
    1:XpenseXpress
    2: EXTAMEX
    and when i run the export program for source 2 the invoices are getting created and when i run the export program for the source 1 the records are getting rejected with the error (INCONSISTENT SUPPL SITE).
    The interesting thing is the vendor_id(12759) and vendor_site_id(462101) for both the sources is Same.The data for which I am running is the data from the 11i Production Instace for the previous day.The error I am getting is in R12.1.2 Instance.
    I searched the tables ap_suppliers,ap_supplier_sites_all,hz_parties and hz_party_sites_all the supplier is active it has site's defined every where only thing i Observed is for the same vendor we have Vendor_site_codes as [M5H 1T1(site_id :424663,M5H1T1:462101).This is what i could research and found out.I am struck Here
                     Help would be highly appreciated.
       Thanks & Regards
            Krishna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Krishna,
    please check the vendor type should be "Employee".
    Try to create a expense report for the same vendor site manually you will get the exact issue.
    If still getting issue please send the exact error code/desc and vendor site screen shot.
    Regards,
    Ajit
    [email protected]

  • DISPLAY/PRINT MY EXPENSE REPORTS UNDER TERA FAILS WITH THE ERROR MESSAGE

    Hi Techies,
    When i click on "Display/print" button under my expense report ( Employee --> Travel & expenses --> Manage Expenses (TERA) --> My trip reports), it opens up a new window with the error message "SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport : HTTP send failed with exception communication_failure(100,101)."
    This behaviour is noticed in the new upgraded system NW 701 SP7 (portal) and backend ECC 6.0 EHP4; However it works perfectly fine with our non-upgraded system NW 70 SP10 (portal) and backend ECC 6.0.
    When i ran the trace on this functionality, i could notice that in the non-upgraded system, after pulling all the values, it calls the RFC function module "PTRM_WEB_FORM_HTML_GET"; however the upgraded system calls "PTRM_WEB_FORM_PDF_GET".
    For the "PTRM_WEB_FORM_PDF_GET", I believe we need to configure the "ADS" rfc pointing to the ADS service on a j2ee server which am not planning for.
    MY QUESTION IS:-
    IS THERE ANY OPTION TO CHANGE THE FORM BEING CALLED FROM "PTRM_WEB_FORM_PDF_GET" TO "PTRM_WEB_FORM_HTML_GET" WHICH I BELIEVE WILL RESOLVE THE PROBLEM AM FACING?
    Kindly assist with your thoughts!1
    -GK

    Read the steps on note 1032311 on how to achieve it,
    In Web Dynpro, the Parameter for Formula is Defaulted to PDF file. If
    you don't want to use the ADOBE Form in ESS, you have to follow 2 steps:
    Solution
        o  Check the Homepage framework configuration.
      In IMG (transaction SIMGH) go in Travel Management->Employee Self
    Service->Homepages Framework->Ressources
    Delete the URL parameter "sap.xss.tra.UsePdf=true" of the ressource
    "EMPLOYEE_TRAVEL_TRIPFORM_SRV05".
      Check that the field URL for PCD file is filled with
    ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_fol
    der/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/
    com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_trave
    l_expenses/com.sap.pct.erp.ess.tripform
      Normally if it is not filled in your client, the system should use the
    one from client 000, that is the SAP delivered customizing.
        o  Check the Portal PCD configuration
      Logon on to your SAP portal as Administrator.
      In the Content Administration - Portal content, select Content
    provided by SAP->end User Content->Employee Self Service->iViews->Travel
    and Expenses->Display Trip Form
      Right Click on Display Trip Form and Select Object->Open
      In the field Application Parameters, you will find a parameter
                                                                     Page 2
    sap.xss.tra.UsePdf=true . Delete this line completely.
    When this configuration is done, the PDF form is desactivated and the
    HTML form is used.
    This is the issue with ADOBE set up
    Firstly, I would ask you to check the customizing steps from 944221
    to ensure no issue with the ADS configuration for the pdf form.
    to review OSS note 925741 as there can be a issue with the
    platform validity and version.

Maybe you are looking for