Only first line

Hi,
I have this select sentence:
SELECT
/BIC/ID_BIEN
/BIC/ZI_CLBI
/BIC/ZIDATFPBE
/BIC/ZIDATIPBE
/BIC/ZIPORPBE
FROM /BIC/AZIOBIPEb00 AS B INNER JOIN /BIC/AODSEPERB00 AS E
ON B~/BIC/ID_EPER = E~/BIC/ID_EPER
WHERE E~/BIC/ID_PERS = '50' and
E~/BIC/COD_TEPE = 'BE'.
Key for table /BIC/AZIOBIPEb00 is /BIC/ID_BIEN,/BIC/ID_EPER
Key for table /BIC/AODSEPERB00 is /BIC/ID_EPER, /BIC/ID_PERS
My problem is that when performing the selection, it gets all different /BIC/ID_BIEN related to the same /BIC/ID_EPER. I would like the selection to get ONLY ONE of the different available /BIC/ID_BIEN for a concrete /BIC/ID_EPER.
How can I achieve that?
Thanks and best regards,
David.

SELECT
/BIC/ID_BIEN
/BIC/ZI_CLBI
/BIC/ZIDATFPBE
/BIC/ZIDATIPBE
/BIC/ZIPORPBE
FROM /BIC/AZIOBIPEb00 AS B INNER JOIN
ER JOIN /BIC/AODSEPERB00 AS E
ON B~/BIC/ID_EPER = E~/BIC/ID_EPER
WHERE E~/BIC/ID_PERS = '50' and
E~/BIC/COD_TEPE = 'BE'.by the way, this does not sound like oracle syntax. Please do not post generic content here. It is very annoying, because we invest time to provide a solution, which is probably useless in your environment (row_number is oracle specific)
Thank you

Similar Messages

  • Module pool- only first line item data saved, rest disappears??

    Hi Experts,
    I have one module pool that was developed by other developer. It has header details input fields and items details input by table control.
    Now below scenarios occur:
    1) When I enter only one line item, and save it, the data is saved properly
    2) when I enter more than one item data and save it, it only saves first line item data.
    3).When I press ENTER button after every new line item data, it saves all the data properly.
    I tried to debug the report but could not find the exact problem statement as the code is written very badly without any comments.
    I am pasting the flow logic code below for the screen.
    So please help me figure out the problem and solution for it.
    +++++++++++++++++++++++++++++++++++
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       MODULE it_mseg_change_tc_attr.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       LOOP AT   it_gp
            INTO wa_gp
            WITH CONTROL it_mseg
            CURSOR it_mseg-current_line.
         MODULE it_mseg_get_lines.
    *&SPWIZARD:   MODULE IT_MSEG_CHANGE_FIELD_ATTR
       ENDLOOP.
    * MODULE STATUS_9001.
       MODULE deactive_screen.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       LOOP AT it_gp.
         CHAIN.
           FIELD wa_gp-yposnr.
           FIELD wa_gp-matnr.
           FIELD wa_gp-maktx.
           FIELD wa_gp-meins MODULE check_uom ON INPUT..
    *      FIELD WA_GP-DOC_QTY.
    *      FIELD WA_GP-REC_QTY.
           FIELD wa_gp-gp_qty.
           FIELD wa_gp-chall_qty.
           FIELD wa_gp-netwr.
           FIELD wa_gp-remarks.
           FIELD wa_gp-exp_ret.
           MODULE it_mseg_modify ON CHAIN-REQUEST.
         ENDCHAIN.
         FIELD wa_gp-chk
           MODULE it_mseg_mark ON REQUEST.
       ENDLOOP.
       MODULE it_mseg_user_command.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       MODULE user_command_9001.
    +++++++++++++++++++++++++++++++++++
    Thanks,
    Vishal.

    Hi Aruna,
    Below is the code as you required.
    +++++++++++++++++++++++++++++
    MODULE user_command_9001 INPUT.
       ygp_header_mas-ret_type = v_gpt.
       CASE sy-ucomm.
         WHEN 'MBLNR'.
           PERFORM select_mblnr.
         WHEN 'DEL'.
           PERFORM select_delivery.
         WHEN 'INTI'.
           PERFORM grt_gi_details.
         WHEN 'GENT'.
           PERFORM get_ge_details.
         WHEN 'GP'.
           PERFORM get_returnable_gp.
         WHEN 'SAVE'.
           PERFORM gen_gp_number.
           PERFORM gen_data.
           PERFORM save_data.
         WHEN OTHERS.
           PERFORM get_ge_details_other.
           IF it_gp[] IS INITIAL.
             INSERT INITIAL LINE INTO it_gp INDEX 1.
           ENDIF.
       ENDCASE.
       IF v_entry = 07 .
         PERFORM serial_no1.
         PERFORM insert_row.
       ENDIF.
       IF sy-ucomm IS INITIAL.
         PERFORM calc_amt.
       ENDIF.
       CLEAR:sy-ucomm.
    ENDMODULE.                    "user_command_9001 INPUT
    +++++++++++++++++++++++++++++++
    MODULE it_mseg_user_command INPUT.
       ok_code = sy-ucomm.
       PERFORM user_ok_tc USING    'IT_MSEG'
                                   'IT_GP'
                                   'CHK'
                          CHANGING ok_code.
       sy-ucomm = ok_code.
    ENDMODULE.                    "IT_MSEG_USER_COMMAND INPUT
    ++++++++++++++++++++++++++++++++++
    MODULE it_mseg_modify INPUT.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line.
    ENDMODULE.                    "IT_MSEG_MODIFY INPUT    
    ====> Above module has some problem i think as while debugging it was not updating IT_GP as the current line number was not matching with IT_GP as it has only one line item and WA_GP was changing. Also WA_GP data was getting changed with LOOP with all line items data.
    ++++++++++++++++++++++++++++++++++++++++++++++
    MODULE it_mseg_mark INPUT.
       DATA: g_it_mseg_wa2 LIKE LINE OF it_gp.
       IF it_mseg-line_sel_mode = 1
       AND wa_gp-chk = 'X'.
         LOOP AT it_gp INTO g_it_mseg_wa2
           WHERE chk = 'X'.
           g_it_mseg_wa2-chk = ''.
           MODIFY it_gp
             FROM g_it_mseg_wa2
             TRANSPORTING chk.
         ENDLOOP.
       ENDIF.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line
         TRANSPORTING chk.
    ENDMODULE.                    "IT_MSEG_MARK INPUT
    +++++++++++++++++++++++++++++++++++++++++
    If I press ENTER after entering each line item, all records come in IT_GP but if not then only first line item comes. Also if I dont press ENTER after entering the first line item and and add one item (total 2) and then press ENTER then sometimes both the lines disappear.
    Thanks,
    Vishal

  • "read from measurement file" reads only first line of data

    Hello,
    I have a problem when trying to read a .lvm file through "Read from Measurements file" with the following block diagram
    Problem: it reads only the first line of data from what I can see in the probe window,.
    A part of the lvm file for reference.
    I haven't used Labview in a long long time, I'm trying to figure out what I am doing wrong.
    Thanks

    Sorry meant to attach the lvm. Here it is. (Actually I had to put it in .txt because the forum wont let me upload a lvm file)
    I unfortunately cannot share the full vi that record the data as I am not its owner/creator. I'll try to give as much info as I can with the relevant pictures attached, I hope it allows us to at least have an hint of where the problem might be.
    (this is in a while loop)
    In the stacked sequence, the other pannels are similar to the one shown here: value read fron a variable, converted to dynamic and a signal attribute is set. The "start recording" control operation is "switch when pressed".
    Here are the properties of the set signal attributes
    And here are the properties of the "write to measurement file"
    Attachments:
    NoTarget_full circle__Rx_-10-SAMPLE.txt ‏60 KB

  • PDF showing only first line of Table?

    Hi @,
    I am showing an input table to PDF using adobe Int Form and in the Adobe screen it is displaying only the first line of the table.
    I am using CE 7.1 SR5.
    Regards

    Hi,
    When the XML interface is generated for the context, for every node that has cardinality 0..n or 1..n, a node named DATA is generated in the XML.
    So if your Webdynpro context has foll structure...
    Node1 ... 1..1
      Node2 ... 0..n
        Attrib1
        Attrib2
    The corresponding XML would be
    Node1
      Node2
        DATA
          Attrib1
          Attrib2
    Regards,
    Reema.

  • Only first line printed in Smartform

    Hello,
    I have a form in Arabic langauge text, when I add a text to a window, only the first line of the text (which in the text editor I have more than 3 lines) is displayed. when I start SAP GUI in english I have all the text displayed and only only the first line.
    please help, thanks

    Can you pls tell me , How you are fetching that text?
    1. through Read_text FM?
    2. Through "Text Module" option from smart form screen?
    3. Using Include option in the text editor?
    Rds,
    Lokesh.

  • Can I use automatically select only first line of a caption to include in List of Figures?

    Is there a setting in the TOC utility in ID CS6 that will allow me to use only the first sentence in a caption to include in a list of Figures?
    Example
    Willard's Wharf, Cocoa, Florida, 1887.   This was Cocoa's first  blah blah blah.  Photo by a dead guy.  courtesy of a nice old lady whose grandmother collected it.
    In the example above, the entire passage is currently formatted using a paragraph style sheet in Arno Pro Caption.  When I'm done, I would like to have that first phrase or sentence in bold, which I planned to do with a character style sheet.  The remainder will be in regular type. 
    Now that I understand more how the TOC utility works, I'm wondering, can I make a paragraph style for the title phrase, and a second paragraph style for the remaining text in the caption that follows  If so, how to I ensure that the second paragraph will follow on the same line where ever the first paragraph style ends?  Nested styles, maybe?  If nested styles are the way to go, comments on or pointers to the simplest strategy to make this work will be appreciated.
    Captions are not consistent.  Some have a name and date; others are a Title phrase or sentence, followed, sometimes, by up to several sentences.  Typically, however, there is only one sentence after the title. I also usually have a "Courtesy of . . ." statement acknowledging the source of the photo.
    I'm a newbie using id cs6, for the first time, to format a book.  I'm enjoying using the program, but a few details sometimes bring me to a stop.
    Thanks
    Roy

    Roy,
    In fact, you only need a char style to control that you correctly mark what you want in the LOF.
    See how I do:
    1/ I create the para style "Caption" [color: Red] and insert a grep style in it.
    2/ I create the char style "Char_Caption" [color: Blue]. It only needs to control what I want in the LOF.
    3/ What I have to do is insert a "N-Joiner" in the "Caption" text. See the grep code of the grep style defined in the "Caption" para style.
    4/ I generate the TOC, only with the "Caption" para style. I select the story where I insert the TOC and launch this simple regex.
    Done! 

  • In cor2, components only first line item should be in editalbe mode and res

    Dear friends,
    My client requirement is , in cor2 ie change process order, in components, Except line item 1. rest of all the components needs to be in display( grey) mode.
    As far as my knowledge,  with the option of Screen Variant , we can make all the components items grey But not one line item in editable mode and rest of all in grey mode.
    Please suggest a way out.

    Hi,
    A suggestion:
    Use one of the below user-exits to meet your need.
    PPCO0008  Enhancement in the adding and changing of components
    PPCO0023  Checks Changes to Order Components
    So the logic could be, if changes are done to any component except the first one, then prevent saving of the order. Discuss with your abaper & it shoudl be possible.
    I doubt with a screen variant this can be possible.
    Regards,
    Vivek

  • Only first line in a internal tabel should appear in output

    Hi,
    I have a requirement.
    I loop at an internal table and that tabl (list_selected_records) records.
      Loop at list_of_selected_nodes into wa_selected_nodes.
        node = wa_selected_nodes-node_id.
        node_level = wa_selected_nodes-node_level.
        read table ex_list_of_texts
                           into wa_list_of_texts
                           with key node_id = node
                           binary search.
        IF sy-subrc eq 0.
          node_text = wa_list_of_texts-text.
        ENDIF.
          node_level = node_level - 1.
    Selecting Text for Node selected (Business Scenario)
    READ TABLE list_of_all_nodes into wa_all_nodes WITH KEY NODE_LEVEL = node_level
                         BINARY SEARCH.
    if sy-subrc = 0.
    SELECT SINGLE TEXT FROM TTREET into texts WHERE ID    EQ wa_all_nodes-tree_id
                                AND   SPRAS EQ 'EN  '.
    IF NOT TEXTS IS INITIAL.
      wa_final-texts = texts.
    append wa_final to it_final.
    CLEAR WA_FINAL.
    endif.
    endif.
      endloop.
    This is my code.
    Now from the select single stmt i fetch a text and add it to be internal table . Once i fetch a one record the loop should be ended and a new iteration for for a second guid should start.
    Once one record , first record is fetched for texts, only that shd appear in alv output but not other. but the loop should contnue for other fields. Please help
    Thanks in Advance.
    SS

    Hi Swarna,
    Use control event AT-NEW inside the loop. This event will triger only once for every new node_id.
    Loop at list_of_selected_nodes into wa_selected_nodes.
    AT-NEW node_id.
    node = wa_selected_nodes-node_id.
    node_level = wa_selected_nodes-node_level.
    read table ex_list_of_texts
    into wa_list_of_texts
    with key node_id = node
    binary search.
    IF sy-subrc eq 0.
    node_text = wa_list_of_texts-text.
    ENDIF.
    node_level = node_level - 1.
    Selecting Text for Node selected (Business Scenario)
    READ TABLE list_of_all_nodes into wa_all_nodes WITH KEY NODE_LEVEL = node_level
    BINARY SEARCH.
    if sy-subrc = 0.
    SELECT SINGLE TEXT FROM TTREET into texts WHERE ID EQ wa_all_nodes-tree_id
    AND SPRAS EQ 'EN '.
    IF NOT TEXTS IS INITIAL.
    wa_final-texts = texts.
    append wa_final to it_final.
    CLEAR WA_FINAL.
    endif.
    endif.
    ENDAT.
    endloop.
    Thanks & Regards,
    Parameswaran.K

  • Print's first line then freezes

    Blue tooth connetion is fine on both printer and computer.  Computer recognizes printer.  Printer says "ready." When send a document to print, paper drops in properly, and printer makes printing noise. Display says "Now Printing," but nothing seems to be happening.  Eventurally an error message displays on laptop. Cancel printing (which requires disabling from labtop to get it to stop). When paper comes out, only first line of text printed. Called tech support. They asked me to print from notepad.  It prints from notepad (only tested on line of text).  It wll also print from Word doc if only one line of text.  WIth multiple lines of text or images from any program, it fails. I uninstalled, reinstalled, checked ink cartriges, checked paper, turned on-off, restarted, turned on devices in both orders (printer first, computer first)... all multiple times. Same result. The printer was able to print a webpage before (only printed one page since I've owned it). Now that I have installed the updated driver it does not work. 

    Hey , Welcome to the HP forums! I hope you enjoy your stay here. I see that you are experiencing some issues with printing from your Windows 8.1 machine to your Officejet 150. I can help with that. First, to make sure the printer itself is functional on the printer click on Setup and then Reports and then Print Status Report. If that prints then we know the printer itself is functional. Next, we'll test your print system. To do so:Turn the printer off.Go to your PC's Control Panel and then Printers and Devices.Right click on any picture of the printer you have.Click on Remove Device.Repeat for any other printers that are listed.Turn the printer on.Try printing.If this works then we know your print system is fine. From here we can try printing through Bluetooth. To do so:Return to Devices and Printers.Right click on the printer to remove it.Add the Bluetooth printer back.Try printing.Hopefully this will allow you to print. If you have any other questions please let me know. Likewise if it resolves your issues then please let others know by clicking on Accept as Solution below my post. I hope this helps and I hope you have a great evening!

  • Arraylist only reading first line of file

    I am reading a text file using an arraylist. my file has a single value on each line e.g.
    2
    3
    4
    5
    however this method is only reading only the first line of each file. is it because of this statement:
    String s1[] = number.split("\\s");
    I would like to change the method so its not expecting numbers in a single line.. but reads each line and adds it to the collection... how can I do that?
    here is getData method that gets the file and processes it.
         public static List<Integer> getData(String Filename) {
              List<Integer> array1 = null;
              // BufferedReader for file reverse.txt
              try {
                   array1 = new ArrayList<Integer>();
                   BufferedReader bf = new BufferedReader(new FileReader(Filename));
                   String number = bf.readLine();
                   String s1[] = number.split("\\s");
                   for (int i = 0; i < s1.length; i++)
                        array1.add(Integer.parseInt(s1));
              } catch (Exception e) {
                   e.printStackTrace();
              return array1;

    Faissal wrote:
    while(bf .ready()){
    readline() will return null if the end of the stream has been reached. ([http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html]). This condition can be used to determine when to stop reading thereby ensuring that all lines have been read.
    EDIT:
    Here's a code snippet from [Java Developers Almanac|http://www.exampledepot.com/egs/java.io/ReadLinesFromFile.html]: notice how they close() the stream when they're finished with it.

  • Only showing the first line.

    When I compile and run this program, it only prints out the first line of text. Any idea's why it might be doing this?
    public class app {
         public static void main(String[] args)
              int years;
                   years = 1000;
                        System.out.println("Millenium = " +years);
              int days;
                   days = 365;
                        System.out.println("Year = " +days);
              int hours;
                   hours = 24;
                        System.out.println("Hours = " +hours);
    }

    What are you expecting it to do? Do you want an applet instead?
    public class Test extends JApplet
       String message;
       public void init()
          message = "Hello World!";
       public void paint(Graphics g)
          g.drawString(message, 5, 5);
    }

  • D110 only prints the first line.

    If I send an item to the printer, it only prints the title. I have tried to copy to notepad and pasted to an email. Then sent it to the printer thru an email. It only prints the first line. How do I get it to print the whole item?

    You can use one of our diagnostic tool and can this can help you resolve the issue automatically and you can use it in future as well.
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4132&lc=en&cc=sg&dlc=en&sw_lang=&product=5169...
    Check if the issue gets resolved.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • JTextPane first line read only

    Hi all!
    I'm a beginner in java programming, that said im trying to make a simple text editor (who isn't?), it will be a part of another larger application, nevertheless this editor is a main component, just need some simple editing tips.
    I want to use a JTextPane for the editable surface, this is working fairly well but i am not able access other lines in the editor except from the first one. Meaning that when containing a large piece of text, my JTextPane is only able to edit the first line: For instance the caret will only show it self on the first line, I can write new letters, but only on the first line and i can erase them and so on. What am I missing? Have checked around many places for solutions
    To sum it up; I want to edit every line in my JTextPane instead of just the first one :)

    Ok! thanks a lot for the good advice, ant help is most appreciated. :-)
    Here is a piece of code that demonstrates my problem. Hope it brings insight! Try to write a line of text, then press enter to go to the next line, most probably you will find yourself unable to edit this line.
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.SwingUtilities;
    public class Test implements Runnable
         public static void main(String[] args)
              SwingUtilities.invokeLater(new Test());
         public void run()
              JPanel cP = new JPanel();
              JTextPane tP = new JTextPane();
    JScrollPane sP = new JScrollPane( tP );
    tP.setPreferredSize(new Dimension( 400 , 400 ) );
              sP.setPreferredSize(new Dimension( 300 , 300 ) );
              tP.setEditable(true);
              cP.add(sP);
              JFrame f = new JFrame();
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setContentPane( cP );
              f.setLocationRelativeTo( null );
              f.setVisible( true );
    }

  • Collecting Responses only collects first line in distributed form

    Does anyone know if this is a common problem with a known solution? I have a distributed dynamic form which starts out with one line. The user fills it in, then adds additional lines when necessary. User then uses the submit via email button on the form to email the form back to me. I receive the form, and am prompted to save response into a response file. However, when viewing the response file, only the first line of the form is entered, even though the user has added and filled in multiple lines. Any idea what is causing this?
    Thanks,
    Jo
    Edit: Actually, when I export it as a CSV file and open it in Excel, the data is there, but it is spread out...i.e., each line that has been added by the user is appended as additional columns, not as additional rows. I really only need to view it in Adobe, so is there any way of getting ALL of the collected data to display in the Adobe form collector?

    http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

  • Conditional Formatting: Bold first line only in formula

    Post Author: ccding
    CA Forum: Formula
    Crystal Reports XI, SQL Server
    I have a formula:  @AddressBlock.  (below)
    + " " + + chr(13) +
    + chr(13) +
    + chr(13) +
    Question 1:  How do I bold the first line only ( + " " + ); and also hyperlink the ?
    Question 2:  Is there a better way to write the formula above?
    (fyi - and are sometimes null)

    Post Author: SKodidine
    CA Forum: Formula
    You can try this as well.  Create a formula for the name, then another that has address ,phone and email.
    Create a text box then insert the name formula, then the address formula.  Then highlight the name formula in the text box and click on Bold.  That will boldface just the name alone.  Make sure you have the text box to 'can grow'.  That should solve your problem of boldfacing just the name alone.

Maybe you are looking for