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>

Similar Messages

  • 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.

  • How to get Line Number in Purchase Order

    Hi Experts
    I want to get Line Number of Matrix of Purchase Order. How I get it ?
    I want to compare Matrix Line Number with Line Number of POR1 in DB.
    Please Help me.
    Hepil Doshi

    Hi Hepil,
    Linenum in Matrix "38" is Columns.Item("110").Value
    SBO application doesnot show it, but you can get the linenum from that column.
    You can test by getting the column title. omatrix.columns.item("110").Title
    Hope it helps.
    Regards
    Edy

  • How use locator with sax to get line number of an element?

    dear friends,
    it's clearly stated in subject. after trying for hours, i still couldn't figure out how to get line numbers. my class extends defaulthandler. please help.
    ozgur

    hi
    i am also struggling with same problem
    someone plssssssss help.....
    how can i use Locator to get line number of the XML document.
    in my extended DefaultHandler class i have just implemented this,
    public void setDocumentLocator(Locator location) {
         lineNumber = location.getLineNumber();
    but no help...
    how to register my parser to the documnet locator events?
    plzzzzzzz help...
    -Soni

  • 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.

  • Getting line number of  XML document

    Hi all,
    Can someone please help me in 'how to get the line number of XML document'. I know when it throws SAXParseException it give the line number. I want to get the line number when it parses the document successfully. I know i need to use setDocumentLocator and then implement the Locator.
    can someone give me a chunk of code for it.
    thx in advance,
    -Soni

    Hi,
    Atlast i got the solution. It goes like this..
    class A {
    Location loc;
    public void setDocumentLocator(Locator l) {
    loc = l;
    //Here goes other methods like startElement, endElement etc.
    public void someMethod() {
    loc.getLineNumber(); //u can do this anywhere inside the class
    -Soni

  • To get line number for xml file.

    how do u get th line number of a particular node i parse.
    is it possible only when error comes the line number and mesage can be displayed.
    is it possible when i use xpath expression for a particular node and if that xpath returns boolean false then can i get the line number where the node present..??
    plz reply..

    There are java classes that will give you the line number of records from files you are reading. Names begin with Line...

  • How to get line number in JAVA code?

    Hi,
    What method can I use to return the current line number of my coding?
    Assuming I'm at line 10 and I want to do something like System.out.println("I am at line number " + ????);What method should I use to get "10"?
    Please advise.
    Thank you.

    If you run Java in Dos prompt, a new line of result is displayed at bottom and the screen scroll. There is no line number in that way. Other language like C have something like that.
    If you use Java Swing, you can display with x, y coordinate option but it is graphic mode.

  • How to get Line number from a DOM Element

    Hi
    I am using dom xerces parser. Is there anyway to work out which line number a element will be when it is outputted into a file ??

    org.w3c.dom.DOMLocator method getLineNumber() returns the line number at which an error occurs.
    A corrresponding method for file output is not defined.

  • Line number in a *.class file, please help, advanced language guys

    dear all,
    i use c++ to open a *.class file and try to read line number of code in the file, i have 2 questions:
    1. i read line number in a method successfully, but i can not understand the meaning of start_pc, following are one of those data, please explain:
    s = start_pc,n = line_number
    s , n
    0 , 123
    8 , 125
    23 , 126
    29 , 127
    34 , 129
    38 , 130
    2. i can not find where the class's line number are, i.e. class start line and class end line, or field's line number.
    does these info exist inside a *.class file?
    thx for any light

    jdb gets line number of fields from class file, not
    source file definitely.I'm not really sure how you tested this, but here's my test, and JDB definitely gets its listing from the source file.
    First, I created and compiled class Tester:
    public class Tester
        public static void main( String[] argv )
        throws Exception
            Tester x = new Tester();
            System.out.println(x.toString());
        int     x;
        int     y;
        private Tester()
            x = 0;
            y = 1;
    }Then, I ran this in JDB. Note lines 16 and 17 in the output from "list":
    H:\Workspace>jdb Tester
    Initializing jdb ...
    stop in Tester.mainDeferring breakpoint Tester.main.
    It will be set after the class is loaded.
    runrun Tester
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint Tester.main
    Breakpoint hit: "thread=main", Tester.main(), line=12 bci=0
    12            Tester x = new Tester();
    main[1] list
    8    {
    9        public static void main( String[] argv )
    10        throws Exception
    11        {
    12 =>         Tester x = new Tester();
    13            System.out.println(x.toString());
    14        }
    15
    16        int     x;
    17        int     y;
    main[1] quit
    Tester@b82368Then I edited the source file. Again, look at lines 16 and 17:
    H:\Workspace>jdb Tester
    Initializing jdb ...
    stop in Tester.mainDeferring breakpoint Tester.main.
    It will be set after the class is loaded.
    runrun Tester
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint Tester.main
    Breakpoint hit: "thread=main", Tester.main(), line=12 bci=0
    12            Tester x = new Tester();
    main[1] list
    8    {
    9        public static void main( String[] argv )
    10        throws Exception
    11        {
    12 =>         Tester x = new Tester();
    13            System.out.println(x.toString());
    14        }
    15
    16        int     a;
    17        int     b;
    main[1]

  • Print line number on print layout

    Hi all,
    Is there a way to print the line number on the print layout?
    Thanks,
    Jane

    Hi,
    Try this, you will get Line Number in Print.
    1st Method,
    ->> Open your PLD. Create 1 System Variable Field in Repetetive Area.
    ->> Put Variable No. - 77
    Else, 2nd Method,
    ->> Open your PLD. Create 1 Formula Field in Repetetive Area.
    ->> Put this Formula LineNum().
    Regards,
    Madhan.

  • Line number in Sap Script

    hi,
    How to get line number in sap script form?
    Regards,
    Sal.

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • SQL Loader Bad File - Line Number

    Is there a way to get line number of records in the bad file or discard file?
    Thanks,

    Hi,
    I think you get the line number of the rows failed to load in the log file. The failing rows are the rows you will find in the bad file.
    I don't know if the log contains the line numbers of discarded rows.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.obiumsoftware.com]

  • 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;
    /

  • 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.

Maybe you are looking for

  • SE24 or In-line Declaration of Custom Class to be Used in a Custom Exit ???

    After our implementation of a custom screen in EXIT_SAPLIE01_007, the function-group XQSM contained the following custom elements: XQSM     Function Modules       EXIT_SAPLIE01_007     (this just includes ZXQSMU06)     PBO Modules       STATUS_9000  

  • How to highlight in Reader

    Hi, I cannot seem to highlight texts in my document. I have a PC with windows 8.0 (i think). What i have been doing is hitting "comments", then "annotations" then "highlight text". However, when I try to highlight a text it never works. Please assist

  • IPad - 3rd generation Wi-Fi (Refurbished)

    Do you know when the iPad - 3rd generation Wi-Fi (Refurbished) will be available on Apple Store? Thanks

  • 16-bit grayscale

    Can Photoshop Elements work with 16-bit grayscale images?  I have version 10 and some of the tools don't work unless I make the images 8-bit grayscale. I asked this question earlier and had 50 views but no answers. Can you all understand the question

  • Problem jws 1.5.0 version base download

    Hi since I've installed java 1.5 I got some problems with webstart. I've a web application with jnlp servlet that handles download like the jnlp servlet sample in the jdk. Before 1.5 everything works fine. Now If there are no locale files all files w