Oracle I Expense Line Number Issue

Hi Experts,
I have put custom validations on Credit Card and Cash Transaction page in I Expense. For fetching the line number, i am taking the distribution_line_number column of ap_expense_report_lines_all table. But this is creating one problem. If user enters 2 lines on Credit Card transaction page and 3 on Cash Transaction page, then if an error is on first line of Cash Transaction page then error is populated as Error at Line 3.
Please knoe if anybody of you have faced the similar issue in the past and is there any code provided by Oracle to find the correct line number

Hi,
Thanks a lot for your immediate response.
But I have few more doubts. The srw.get_page_num will return the current page number only. Is there any srw function to get the total no. of pages?
Or can you please explain how to get values in the boilder plate. We tried this but boilder plates could not be made invisible. And also if we tried to get the values inside a PL/SQL formula, it is not accessible.
Awaiting your reply...
Thanks in advance.

Similar Messages

  • Oracle EBS - Get Line number.

    Hi Friends,
    I got a tricky requirement.
    Get the line number which is in the Sales order form ie (1.1,2.1,3.1) , using the line_id.
    Is there any way to get the line numbers.
    Please help me.
    We can get the line_number using the query
    select line_number from oe_order_lines_all where header_id =12345
    but the requirement is get the line numbers which are displayed in Sales order form.
    it has some version numbers
    like
    1.1
    2.1
    1.1.1
    like this .. i need this line numbers.
    Any way to get this.
    Please help.

    Pl.try.
    select line_number, shipment_number, line_number||'.'||shipment_number from oe_order_lines_all where header_id = <i/p header_id>

  • Finding the right line when Oracle says an error happens at a line number.

    Hi,
    Were using Oracle 11.1.
    I use TOAD 10 to develop.
    When I run a procedure sometimes I'll get an error message saying "an Oracle error happened at ### line number"
    When I go to that line number, that's usually not where the error is.
    I'm not talking about an error where they say it occurs at line 1.
    It'll say line 124 and in the TOAD editor that will occur in the middle of a cursor or something.
    I'm pretty sure that's not where the error actually is.
    Is there any way to find out where Oracle is talking about?
    Thanks!

    Hi,
    In triggers, the first DECLARE or BEGIN statment is counted as line 1, even though there are often several lines before that.
    In other procedures, the line numbers are relative to the beginning of the relevant CREATE statement, e.g. "CREATE OR REPLACE PACKAGE BODY ...".
    Where these statements are in your files has nothing to do with the error messages. For example, if you have a package spec that goes on for 50 lines, then 10 lines of comments, and then a package body, all in the same file, then the line numbers that you see for the pacakage body will be 60 lower than the line numbers from your file. (You may want to use separate files, each starting with a CREATE command on the fitst line, for just this reason.)
    Oracle often gives multiple error messages for the same error. For example, if a cursor definition begins on line 50, and you mis-spell a column name on line 55, you may get a message saying "statement ignored" referencing line 50, but you'll probably get another (more useful) error referenccing the particular problem on line 55.
    Of course, some errors can't be detected right away. For example, if you forget a single-quote at the end of a string literal, the compiler will think that all your subsequent code is part of that string literal. Not unitl it encounters another single-quote, perhaps at the beginning of another string literal, dozens of lines later, will it know that any error occurred.
    Those are the main pitfalls I know about.
    If you have an example of something that confuses you, post it. Shorten the code as much as possible such that it's easier to post, but still gets the same error. Post the complete error message, too.

  • Oracle SQL Developer and Errors (Line Number Incorrect)

    First, I wanted to state that Oracle SQL Developer 2 is a standout job.
    I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
    Is this something I could fix on my end? I have five other developers griping about this.
    Thank you!

    I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
    select * from dual;
    select * from dual;
    select * from dual;
    select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
    I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
    theFurryOne

  • Street line formating issue (number comes before the street name)

    Hello everyone,
    I have an issue regarding formatting of the street line - when I include an address field (say in Smartforms) the street number comes before the street name. This would be according to USA standards, but I need it to be formatted by the EU standards (street name, and then the number). Also, where ever we have an address attached (SU01, customer/vendor master recs, purchase orders, etc) we get the same issue.
    So, now it is: "1234 MyStreetName", but I need it to come as "MyStreetName 1234".
    I have tried SA10, SA09, OY01 (and all the other customizing I could find), none of which had worked. The strange thing is that in our IDES system, it is displayed as it should be (name - number).
    I can't find where this is preconfigured in IDES, so if anyone can suggest I would be very gratefull + points will be awarded for all the helpfull answers.
    Best regards,
    SD.

    This thread has been moved here:
    Street line formating issue (number comes before the street name)

  • Whow to get the error line number in Oracle 9i

    I am using Oracle 9i, In my procedure i am getting exception in When Others section, but unable to trace that from where it is throughing.... the procedure is about 2500 line of code. In Oracle 10g we can use dbms_utility.format_error_backtrace to catch the line number....
    So, is there any workaround in Oracle 9i to get the line number ????
    Thanks in Adance...

    Not sure, but the following might give you a good starter for ten....
    create or replace procedure who_called_me( owner      out varchar2,
                             name       out varchar2,
                             lineno     out number,
                             caller_t   out varchar2 )
    as
        call_stack  varchar2(4096) default dbms_utility.format_call_stack;
        n           number;
        found_stack BOOLEAN default FALSE;
        line        varchar2(255);
        cnt         number := 0;
    begin
        loop
            n := instr( call_stack, chr(10) );
            exit when ( cnt = 3 or n is NULL or n = 0 );
            line := substr( call_stack, 1, n-1 );
            call_stack := substr( call_stack, n+1 );
            if ( NOT found_stack ) then
                if ( line like '%handle%number%name%' ) then
                    found_stack := TRUE;
                end if;
            else
                cnt := cnt + 1;
                -- cnt = 1 is ME
                -- cnt = 2 is MY Caller
                -- cnt = 3 is Their Caller
                if ( cnt = 3 ) then
                    lineno := to_number(substr( line, 13, 6 ));
                    line   := substr( line, 21 );
                    if ( line like 'pr%' ) then
                        n := length( 'procedure ' );
                    elsif ( line like 'fun%' ) then
                        n := length( 'function ' );
                    elsif ( line like 'package body%' ) then
                        n := length( 'package body ' );
                    elsif ( line like 'pack%' ) then
                        n := length( 'package ' );
                    elsif ( line like 'anonymous%' ) then
                        n := length( 'anonymous block ' );
                    else
                        n := null;
                    end if;
                    if ( n is not null ) then
                       caller_t := ltrim(rtrim(upper(substr( line, 1, n-1 ))));
                    else
                       caller_t := 'TRIGGER';
                    end if;
                    line := substr( line, nvl(n,1) );
                    n := instr( line, '.' );
                    owner := ltrim(rtrim(substr( line, 1, n-1 )));
                    name  := ltrim(rtrim(substr( line, n+1 )));
                end if;
            end if;
        end loop;
    end;
    /

  • How to go to related line number

    hi all,
    Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.WSH_UTIL_CORE", line 2093
    ORA-06512: at "APPS.UML_POS_ORDER_IMPORT_PKG", line 923
    This is package and I would like how can I go to line number 923 to check quick results.
    Thanks

    user9275313 wrote:
    hi all,
    Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.WSH_UTIL_CORE", line 2093
    ORA-06512: at "APPS.UML_POS_ORDER_IMPORT_PKG", line 923
    This is package and I would like how can I go to line number 923 to check quick results.Open the package in the editor of your choice and use the editor's build in ability to go to the appropriate line.
    If the package is wrapped or a built in oracle package, you may struggle to open it, but then that would imply that either there's a bug in the package (ensure you're database is patched and check oracle support for known issues), or you're more likely calling procedures/functions in the package with the wrong parameters.

  • Iexpenses search page - Expense report number li

    The standard Iexpenses search page has the following layout in the PG xml file for expense report number.
    Its a message styled text item - ReportNumberEnabled, which has no fireaction/firepartialaction against it, and a destination property is provided.
    In the UI, it appears as a link and when user clicks on the link, it shows details related to the expense report.
    I need to extend the page controller, handle the link click event in PFR and perform some validations.
    Since the item is not a link and there is no action assigned to it, how do I handle the link click event.
    Thanks,
    Arun..
    ============================================
    /oracle/apps/ap/oie/history/webui/ExpenseReportsPG 120.6.12010000.6
       <ui:contents>
          <oa:switcher id="ReportNumField" regionName="Report Number Switcher" standalone="true" prompt="Report Number" viewName="HistoryReportsVO" viewAttr="ReportNumberField" sortState="descending" userCustomizable="true">
      <ui:case id="case11" name="ReportNumberEnabled">
         <oa:messageStyledText id="ReportNumberEnabled" prompt="Report Number" viewName="HistoryReportsVO"
          destination="OA.jsp?OAFunc=OIEMAINPAGE&amp;startFrom=History&amp;ReportHeaderId={!ReportHeaderId}&amp;&amp;OIERefreshAM=Y&amp;retainAM=Y" shortDesc="Report Number" promptTranslationExpansion="100%"
          userCustomizable="true" queryable="false" selectiveSearchCriteria="false" viewAttr="ReportNumber"/>
      </ui:case>
      <ui:case name="ExpenseLinesOldUrl">
         <oa:messageStyledText id="ExpenseLinesOldUrl"
          destination="OA.jsp?callType=W&amp;akRegionCode=OIEINQUIRIESMAINPAGE&amp;akRegionApplicationId=200&amp;flowApplicationId=178&amp;flowCode=ICX_INQUIRIES&amp;pageApplicationId=178&amp;pageCode=ICX_AP
          _EXP_LINES_D&amp;WPARAMSREPORT_FOREIGN_KEY={@ReportPrimaryKey}&amp;WPARAMSDOCUMENT_TYPE={@DocumentType}&amp;userCustomizable=Y&amp;retainAM=Y&amp;reportNum={@ReportNumber}" dataType="VARCHAR2"
          shortDesc="View listing of the expense lines" viewAttr="ReportNumber"/>
      </ui:case>
          </oa:switcher>
       </ui:contents>
    ==============================================

    OAF no api as such for this kind of customization. Rather try developing some web service or something similar which can be invoked from the custom link to do the job.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                   

  • Get line number error

    Hi
    Is there some way to get line number error when there is some exception ?
    I use oracle 9.2.02
    thank you in advance

    sybrand_b wrote:
    When you trap the exception you need to use dbms_utility.format_error_stack.
    Thid will not provide correct line numbers. This issue has been resolved in 10g or 11g, and 9iR2 is going completely out of support in July.FORMAT_ERROR_STACK will not provide any line numbers:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> set serveroutput on format word_wrapped
    SQL> begin
      2      raise no_data_found;
      3    exception
      4      when no_data_found
      5        then
      6          dbms_output.put_line('ERROR_STACK: ' || DBMS_UTILITY.FORMAT_ERROR_STACK);
      7          dbms_output.put_line('ERROR_BACKTRACE: ' || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      8  end;
      9  /
    ERROR_STACK: ORA-01403: no data found
    ERROR_BACKTRACE: ORA-06512: at line 2
    PL/SQL procedure successfully completed.
    SQL>  SY.

  • The error message: SE 337 Please enter a line number.

    Dear Experts,
    We have a PO that can not be transferred to P1 because of the error message:
    SE 337 Please enter a line number.
    We tried to checked the transfer of the PO.
    The error message came from the Backend Function BBP_PO_INBOUND.
    But it is not possible to define the exact cause of the issue (the exact transfer parameter) due to missing RFC authorization.
    The following changes were made in the PO (PO already mapped in Backend) after that PO cannot be transferred:
    - a deleted item was set back
    - WBS Element was changed
    Thank you in advance.
    Best regards
    Evgeny

    Hello Evgeny,
    Whenever you create a  PO in SRM irrespective of number of the
    line items chosen, in the backend system this PO will contain
    a single line item in the Item section.
    If you delete all the line items in the PO and
    attempt to undelete them the undeletion will not work since the PO is already
    considered to be deleted in the backend.
    Please try delete and undelete a individual line item
    in a PO provided there is at least one item which is not deleted.
    hope this helps
    Daniel

  • XML Parsing Error: no element found Location:Line Number 1, Column 1:

    Hi,
    i have a servlet code in which i am using bouncy castle encryption algorithm , if i tried to run that servlet on embeded weblogic server than my servlet works fine without error.
    but if i deploy same Servlet code on SOA domain console than i get following error.
    XML Parsing Error: no element found
    Location: http://localhost:7001/Encryption-PGPEncrypt-context-root/pgpservlet
    Line Number 1, Column 1:
    Please help me friends...

    Hi Chandra,
    Based on my research, the error message is only generated by FireFox when the render page is blank in Internet. For some reason, .NET generates a response type of "application/xml" when it creates an empty page. Firefox parses the file as XML and finding
    no root element, spits out the error message.
    Also, based on your description, the other sites are opened correctly, the issue only happened in Central Administration(CA). This means the SharePoint services are working fine.
    Since this issue only occurred in the CA, it might be due the application pool for the CA is corrupted. Please try to restart the application pool for the CA to resove the issue:
    1. Open Internet Information Service(IIS)
    2. List the application pools
    3. Select the application pool used for the CA
    4. Stop it, and then start it again.
    Note, if the application pool is running in Classic mode, please change it to be Integrated mode.
    Additionally, I found a similar thread, which may help you too:
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/824d7dda-db03-452b-99c4-531c5c576396
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • XML Parsing Error: no element found Line Number 1, Column 1:

    Hi All,
    I have deployed EAR on my standalone server using JDEV 11.1.1.6.0. I am able to get the WSRP portlet producer page on
    http://<server>:7001/contextRoot. But when i try to click on any of the WSDL URL it gives me "XML Parsing Error: no element found Line Number 1, Column 1:"
    and from IE it gives me: XML document must have a top level element. Error processing resource
    there can be a issue with the WSRPContainer.jar file. So i have remove it from my deployment profile, EAR and lib/classpath files.
    Can you please suggest a workaround.
    Regards,
    ND
    Edited by: ND on Dec 4, 2012 9:57 PM

    Hi All,
    this error normally comes when the WLS domain is not not properly created. if you get some exception for ./provesecurity.sh file while creating the domain, then the XML error comes.
    I did not went into the depth but figured out a workaround: restart the VM/hosted box and then create the domain, remember to use diff port name while creating it from the domain creation script.
    Regards,
    ND

  • When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?

    When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?  When I press a mobile number in contacts, the phone automatically phones the number.  I do not mind this as I hardly ever send texts, but I would like to have the option of what to do.  This seems such an obvious issue but I can not solve it even with much web searching.  Thanks!

    I can't delete my question, so I'll just say that you press on the type of number written in the box to the left of the box you typye the number into.  Dumb or what? 

  • Profit Center in Expense line item

    Hi
    We have a scenario where at month end we are destroying goods which were returned. We credit and inventory account and debit the Return goods destroyed account.
    In the inventory account, we have a profit center which is appearing from material master. In the expense line item too same profit center was getting posted. Somehow from this month when we did the write off postings, we got the dummy profit center in the expense line item. Inventory acount was correctly being posted.
    It seems that some system is not able to find the profit center for the expense line item. We are not sure what happened.
    Just need some insights on what could be the issue..?
    what we already checked:
    OKB9 - Profitability segment is there for expense line item
    3KEH/3KEI - Expense account not maintaine there too.
    We looked for any enhancements but does not seem to exist in this case.
    Many thanks for your help in advance.
    Regards
    Neeraj

    Ajay
    Many thanks for your quick reply.
    answer to your questions below.
    1. Cost element was created long time back and was never changed.
    2. I checked the earlier posted accounting documents and profit senter was same as in material master but now it is dummy profit center.
    3. CO docs were generated earlier as well as now with profitability segment as cost object.
    Let me know if you need any further information.
    Regards
    Neeraj

  • Show the object and the line number, where the error happens in Forms

    Hi!
    Al lot of our programmer use the ugly when others clause to raise messages like "error <sqlcode> happens in ....". Often this hides the really error in some underlying procedures. Is it possible to call the error stack from forms like in 10g database dbms_utility.format_error_backtrace? Actually FRM-40735 hides all this information. This should be work for client and database pl/sql errors!
    With kind regards

    First of all, send every programmer in your organization a message to STOP doing that. I am afraid there is nothing you can do when you have to call some stupid code from your form that contains the when others then... sequence.
    Below is an email I sent out just two months ago. I'll share it with you:
    Hi _______,
    I looked over the _________ package to try to determine why it was so difficult to find the source of the problem. The problem was that the line number reported when the job failed was line 326, which is the Raise command at the end of the __xyz__ procedure.
    When someone writes:
          exception when others then raise;it causes line number reporting to fail when an unexpected Oracle error is encountered. Furthermore, the line does absolutely no good, because Oracle will automatically raise unhandled errors without that code.
    The only thing that code does is cause problems when someone looks for the source of a failure. Without that code, job failures can be located in just a few minutes.
    That same code sequence is repeated three times in the _________ package. The problem may also exist in the __abc___... functions that the _______.lookup_xxxl function calls, since no line numbers were reported from there, either. It would be very helpful if you would remove the problem code, and PLEASE instruct everyone on your staff to never use that sequence anywhere.
    - - - - - - - - - - - - - - - - - - - - - - end of email - - - - - - - - - - - - - - - - - - - - - -
    Now, in addition, you can trap FRM-40735 in your on-error trigger and then display the message found in DBMS_ERROR_TEXT. In fact, you might try the format_error_backtrace from there, too.

Maybe you are looking for

  • Adapter module not working

    Hi to all, I have written a custom adapter module that I use in a sender channel. I have deployed the EJB with NWDS. However, the module seems to be ignored from the adapter. Why? Can anyone suggest me? Thanks!

  • How to disconnect incoming call in ios7 when iPhone is locked?

    How to disconnect incoming call in ios7 when iPhone is locked?

  • Select option and parameter.

    I have select options and parameters in my selection screen. While extracting the data I am using both the select option and a parameter in where condition.  But that select statement is not returning any data. Could any body tell me what might be th

  • Changing the Length of the Label

    Hi friends, How do I change the Length of the Label in Select-options Component, by default it is taking only 20characters i.e, medum from dataelement.say I want display more than characters i.e  Long Text of Data element. How can I access the Long T

  • Calc manager v11.1.2.1 error during execution

    We have an issue with some of the rulesets which fails execution although there no issues during validation. The rules run fine individually but error when executed via ruleset. The error in the calcmanager execution log is as below. Import the rules