Barcode Reading to next line automatically

Dear Experts.
we implemented Barcode for PO Number in Ecc 6.0.
It is Printing &reading   fine.
For reading the Barcode(Bar Text)  I designed a module POol Program with Table controll.
But My requirement is while reading , I am getting that bar text in a field.Once After reading one Barcode(One Po), the controll automatically should move to next line.i.e with out touching the Key pad they want to contionuously reading the Barcodes.
And automatiaclly each one bartext come in one line.
Please help to solve this issue.
Thanks in advance,
Regards,
Venkat

Hi
I hope ur reading the BArcodes using RF guns , if so then u  have an Option in the RF GUN to move automatically to next field , u have to check with the RF users  to configure and change the settings.
surya

Similar Messages

  • Getting Buffered Reader to read next line and update.

    Hello.
    I have been trying to get this program to read the next line in a txt file correctly. This is a GUI program
    where clicking the button is supposed to bring up the next bit of information for the user to see.
    I can get the first line of information to come out correctly, but I am unable to get it to read the next line when I click the next button.
    Here is a snippet of my coding...
    private JFileChooser fileChoose;
    private File openedFile;
    private int recordNumber = 0;
    FileReader inFile;
    String sMaker = new String (  );
    else if ( ae.getActionCommand (  ) == "Next Record" )
         if ( openedFile.exists (  ) )
              nextRecord (  );
         else
         JOptionPane.showMessageDialog ( null, "No Files Opened", "No Files Found", JOptionPane.ERROR_MESSAGE );
    public void nextRecord (  )
         recordNumber ++;  // Increment record number
         fileNumber.setText ( sMaker.valueOf ( recordNumber ) );  // Prints to JTextField for user to see
         BufferedReader inText;
         String lineRead;  // Holds line read in
         String [] organizedInfo;  // Array to hold info after being split
         try
              inFile = new FileReader ( openedFile );
              inText = new BufferedReader ( inFile );
              lineRead = inText.readLine (  );
              organizedInfo = ( lineRead.split ( "," ) );//.trim (  );
              for ( int i = 0; i < organizedInfo.length; i ++ )
                   organizedInfo[i] = organizedInfo.trim ( );
    name.setText ( organizedInfo[0] );
    city.setText ( organizedInfo[1] );
    state.setText ( organizedInfo[2] );
    catch ( FileNotFoundException fnfe )
    JOptionPane.showMessageDialog ( null, "Selected File was Not Found", "File Not Found", JOptionPane.ERROR_MESSAGE );
    catch ( IOException ioe )
    JOptionPane.showMessageDialog ( null, "IO Error. Please Try Again.", "IO Error", JOptionPane.ERROR_MESSAGE );
    employee.txt
    William Wallace,Richmond,VA
    Samuel Gompers , San Francisco , California
    Andy Smith,Rochester,NY
    Sandy Beach,Pittsford,NY
    Slim T. None,San Francisco,CA
    George Jones, Washington , D.C.
    Marvin Martin, Boston , Massachusetts
    I. M. Last , Deadmans Gulch, Arizona
    Everytime I click the next button, it should go through the list in employee.txt until i reach the end. But it just stops at William Wallace.
    I know that this can be recoded to make it more efficient, but before that, I still need to figure out how to get the line read to update to next line.
    Thank you in advance.

    Your program works perfectly correctly!
    Each time you click the button it reads the first line and displays it. Why? Because you create a new reader everytime you enter the nextRecord method and the reader reads the first line. Each new reader has no idea where the last reader was upto in your file. It has to start at the beginning.
    <cue response>How do I fix it?

  • How to read the second line in a .txt file with bufferedReader?

    hi,
    i am not the best in speaking english and programming java :)
    so, just try to make sense of my question:
    Im using a BufferedReader to read a .txt file.
    the .txt file has 5+ different lines, and each line has 6 tokens (separated with ; )
    My java file has 6 textFields and each textfield is filled with one of the 6 different tokens.
    and my problem is:
    I want my buffered reader to read the next line (with 6 new different tokens) by pressing a button.
    if somethings not understandable, just ask :)

    maybe its easier to help me, when i publish my code, so here it is:
    (its my version, without Thof's code. Sorry, but the comments are the most in german)
    /* userdata.java */
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class userdata extends Frame {
    //-----------------------------------KlassenVariablen------------------------------------------------
    private JPanel panel = new JPanel ();
    String tokId = "";
    String tokName= "";
    String tokAge= "";
    String tokTel= "";
    String tokMail= "";
    String tokText= "";
    BufferedReader br;
    String zeile;
    StringTokenizer st;
    String delim = ";";
    //---------Buttons f?r Panel 1-------------------------
    Button first = new Button("|< First");
    Button back = new Button("< Back");
    Button next = new Button("Next >");
    Button last = new Button("Last >|");
    //---------Buttons f?r Panel 3-------------------------
    Button neu = new Button("New");
    Button safe = new Button("Safe");
    Button refresh = new Button("Refresh");
    //--------Labels f?r Panel 2-----------------------------
    Label lid = new Label("ID",Label.LEFT);
    Label lname = new Label("Name",Label.LEFT);
    Label lage = new Label("Age",Label.LEFT);
    Label ltel = new Label("Tel.",Label.LEFT);
    Label lmail = new Label("E-Mail",Label.LEFT);
    Label ltext = new Label("Spruch",Label.LEFT);
    Label lub = new Label("Last Button",Label.LEFT);
    TextField id = new TextField();
    TextField name = new TextField();
    TextField age = new TextField();
    TextField tel = new TextField();
    TextField mail = new TextField();
    TextField text = new TextField();
    TextField usedbutton = new TextField();
    //--------ActionEvent bla sachen eben--------------------
    public static void main (String[] args) throws IOException {
    userdata wnd = new userdata();
    wnd.setVisible(true);
    public userdata() throws IOException {                                                                                                                                                                                                                                                                                
    //--------------------------------Layout mit panel bestimmung--------------------------------------
    setLayout(new BorderLayout());
    JPanel p1 = new JPanel();
    JPanel p2 = new JPanel();
    JPanel p3 = new JPanel();
    add(BorderLayout.NORTH ,p1);
    add(BorderLayout.CENTER , p2);
    add(BorderLayout.SOUTH , p3);
    //-------------------------------Funktionslose Buttons in PANEL 1------------------------------------
    p1.add(first);
    p1.add(back);
    p1.add(next);
    p1.add(last);
    p1.add(usedbutton);
    //--------------------------------Funktionierende Textfelder in PANEL 2------------------------------
    Panel labelpanel = new Panel();
    p2.setLayout(new GridLayout(7,3));
    p2.add(lid);
    p2.add(id);
    p2.add(lname);
    p2.add(name);
    p2.add(lage);
    p2.add(age);
    p2.add(ltel);
    p2.add(tel);
    p2.add(lmail);
    p2.add(mail);
    p2.add(ltext);
    p2.add(text);
    p2.add(lub);
    p2.add(usedbutton);
    //--------------------------------------Buttons in PANEL 3-----------------------------------------
    p3.add(neu);
    p3.add(safe);
    p3.add(refresh);
    //--------------------------------BufferedReader -------------------------------------------------
    readData();
    //--------------------------------Panel 2 TextField-----------------------------------------------
    fillForm();
    //================================ActionPerformed==================================================
    first.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("First");
    usedbutton.setText("First");
    back.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Back");
    usedbutton.setText("Back");
    next.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Next");
    usedbutton.setText("Next");
    last.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Last");
    usedbutton.setText("Last");
    neu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("New entry");
    usedbutton.setText("New");
    safe.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Now Saving, do not turn off!");
    usedbutton.setText("Save");
    //-----------------refresh
    refresh.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    try{
    readData();
    }catch( IOException ioe){
    System.out.println("Fehler beim lesen aus Datei");
    fillForm();
    usedbutton.setText("Refresh");
    //=============================================================================Button Funktionen!!!
    pack();
    //--------------------------------WindowsListener hinzuf?gene--------------------------------------
    addWindowListener(
    new WindowAdapter() {
    public void windowClosing(WindowEvent event)
    setVisible(false);
    dispose();
    System.exit(0);
    //-----------------------------------readData() - > Buffered Reader in aktion! --------------------
    private void readData() throws IOException{
    BufferedReader br = new BufferedReader(new FileReader("My .txt File with path"));
    String zeile;
    StringTokenizer st;
    String delim = ";";
    zeile = br.readLine();
    st = new StringTokenizer(zeile, delim);
    st.hasMoreTokens();
    //System.out.println (st.nextToken());
    tokId = new String(st.nextToken());
    tokName = new String (st.nextToken());
    tokAge = new String (st.nextToken());
    tokTel = new String (st.nextToken());
    tokMail = new String (st.nextToken());
    tokText = new String (st.nextToken());
    //--------------------------fillForm() - > f?llt die TextFelder aus!--------------------------------
    private void fillForm(){
    id.setText(tokId);
    name.setText(tokName);
    age.setText(tokAge);
    tel.setText(tokTel);
    mail.setText(tokMail);
    text.setText(tokText);
    }

  • Reading in a line of text and breaking it up, complicated

    Hi all,
    At the moment im reading in a few 100 lines of text from a file, each line contains a command and a few variables which need to be set to existing variables I have created shown below;
    Int variableA ;
    Int variable B ;
    Int variable C;
    Int Variable D;
    However I have no way to know which command will go with which variables,
    On every line there will be one command and two variables..
    The possible command are; ADD, SUB, TIMES, Divide, COPY, SET
    And the text coming in look like this;
    SET A10, B15 // set each variable
    SET C33, D50 // as above
    COPY A, B // which means assign copy what ever in variableA to variableB
    ADD C, D // which mean add variableC�s contents to variableD contents
    SUB B, C // which is subtract variableC contents by what ever is in variableB
    Does anybody know of a way where I can test what the next command is, and assign the correspond variables , so far I have come up with;
    But am not sure if this is the best way to go about it, was thinking maybe I should put the text file into an array, which might make it easyer to process.
    public static void main (String [] args)
    int D = 0 ;
    int C = 0 ;
    int B = 0 ;
    int A = 0 ;
    StringTokenizer st ;
    String line ;
    String buffer = "";
    String file ="test2.txt" ;
    String name = "";
    String billy = "";
    try
    FileReader fr = new FileReader(file) ;
    BufferedReader inFile = new BufferedReader (fr) ;
    //read in one line @ a time
    buffer =inFile.readLine() ;
    while (buffer !=null)
    StringTokenizer words = new StringTokenizer (buffer) ;
    //put the buffer "line" into a tokenizer for individual characters out of a line;
    while(words.hasMoreTokens())
    String letter = words.nextToken() ;
    if(letter.charAt (0) == 'S') // if first letter = S would be SET
    System.out.println(letter) ;
    //display the token as a test output;
    if(letter.charAt (0) == 'A') // if letter = A would be ADD
    System.out.println(letter) ;
    buffer = inFile.readLine() ;
         //read in next line
    inFile.close();
    catch (FileNotFoundException e)
    System.out.println("File not found");
    catch ( IOException e)
    System.out.println("IO Exception") ;
    }

    hi,
    i think that what u r tring to do is "parsing" where u translate these primatin=ve commands to execute them, if so here what u need to do:
    Rad a line untell end of file
    for each token in the line
    if(token="SET" || token="ADD || token=""SUB")
    {       //save operation for later use
    operation=token;
    //now u expect the next token to be an operand
    token=nextToken;
    if (token!="" and token!=",")//it must be an operand
    {operand1=token;
    token=next token;
    if(token=",")//do nothing just read the nest operand
    token=nexttoken;
    else //syntax error in file, exit ;
    if (token!="" and token!=",")//checking the 2nd operand
    operand2=token;
    //now check value of operation and call the right method and send operand1,operand2 as arguments to get the result e.g
    if(opration=="ADD")
    system.println("result of addition is"+addMethod(operand1,operand2));
    hope that helps,
    Insighter

  • System should take automatically to next line after scanning serial number

    When in SAP serial selection screen i scan serial number(barcode) with scanner system should take me to next line after population of serial number in one line is completed.
    In delivery in select serial numbers window against serial number field in multiple selection if i scan barcode a single serial number is populated in one field after this system doesnt take me to next field automatically ,I am manually taking the cursor to next line.
    If i scan the barcodes with the same scanner in Excel file cursor moves automatically to next line.I want same in SAP
    Make of the scanner is TVS electronics made barcode scanner -BS- L 101 Platina U
    How to automize it.
    Please suggest me solution.
    We tried with BDC but it failed.

    Hi,
    We can set the cursor postion using this statement SET CURSOR FIELD f LINE lin [OFFSET off].
    We need to use this in custom Programs.
    Please reffer the links below:
    [Cursor Position In TABLE CONTROL;
    [How to set cursor on next  row in TAble control?;
    [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm]
    I hope this may helpfull.
    Thank you,
    Thanks,
    AMS

  • How can I delete a "e-mail" without the next email automatically opening?

    I know with my iPhone 5 I can swipe to the left and delete a email in my inbox without the next unread email opening automatically. But with my iPad doing the same task I just mentioned doesn't work. It seems to still open up the next unread email if I delete or even if I delete it the edit way. In fact it seems like if I do it the edit way once I check off the circle to select what I want to delete it still previews or opens the message. Is their a way around it? I like to be able to just look at my 3 lines of text of the email and decide if I want to delete it without it opening and I like to be able to open a message that I want to open, but I don't want to have it open up the next email automatically because I may not want that next email to open.

    Yeah!!  Edit to delete opens the email you want to delete before you can delete it!!  I don't want to open those creepy spam phishing emails!!  So now I just let them pile up and go onto my PC to delete them, where I have the option of not opening them first.  I came on here looking for an answer but I'm just finding snarky retorts with no answers!  :(

  • How to print three different Barcodes in the same line

    I am trying to print Barcodes for three different fields in a single line, it is taking the combined one & printing only one barcode for  all those three fields.
       When I tested it by printing them in diff lines, it is working fine. But the requirement is to  print all fields in the same line

    Hi
    Look at this , may be useful
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Cursor postion on next line after scanning

    Hi All,
    My requirement is to automatically set the cursor position on the next line in SALES tab of standard sales order. once the material barcode is scanned and the material number, quantity and price get populated , the cursor position should be set to next line on material column, is it doable with ABAP? if yes, kindly suggest how.
    thanks,
    Binita

    Hi,
    We can set the cursor postion using this statement SET CURSOR FIELD f LINE lin [OFFSET off].
    We need to use this in custom Programs.
    Please reffer the links below:
    [Cursor Position In TABLE CONTROL;
    [How to set cursor on next  row in TAble control?;
    [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm]
    I hope this may helpfull.
    Thank you,
    Thanks,
    AMS

  • Synchronize barcode reader with SAP Gui

    Hi,
    to speed up the order entry in transaction VA01 we've added a small dynpro which collects the line items before sending them to VA01.
    Now the users are using a barcode reader to enter the product code. In the current configuration the barcode reader is sending an additional ENTER after each product code to perform some checks and to jump to the next field.
    The problem is that the user is scanning the next item before the SAPGui is ready for input again (it's still executing the checks initiated by ENTER). This results in characters being lost without notification by the user, because they are not checking the screen after each scan.
    Configuring the barcode reader to send TAB instead of ENTER is no solution either since this will result in problems when the screen is full and the user does see it.
    Is there anything I can do to prevent that the input is corrupted?
    TIA,
    Martin

    Hi Martin,  I've seen that same thing at my company.  We got rid of the problem just by upgrading the sapconsole to 6.40,  with this release,   there was something added,  a screen which says  " Processing.......... "  when the system is processing the data.  It is the only thing on the screen at the time and returns control back to the user when complete.  This does not keep them from scanning but does keep them from scanning in your your custom screen(which may or may not be helpful)  WIth this message, by itself,  this did not fix our problem, but it did give the users something to look at instead of a the same screen being locked up.  The user did not know whether the system was ready or not, so they kept scanning. 
    In conclusion,  I think you need to do two things.  a) Get to SAPconsole 6.40, so that the processing message will be there,  b)  train the users to look at the screen,  if it says "Processing",  then they MUST wait.
    Regards,
    Rich Heilman

  • Need Barcode Reading details

    Hi All,
    I would like know the details about Barcode Reader. As per th requirement i have capture the serial number using ABAP prog when the barcode is scanned. I don' have any idea about how to proceed.
    I would like to know the full details about the process. Whethr any SAP Standard program is available, how to configure the barcode, how to link th input field etc.
    thanks in advance
    Regards,
    Swetha

    Hi Swetha,
    Details information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool. 
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
    Not to fear though, there are two ways to get around this:
    - You can have your IT department do some research - 
    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
    Now you have a barcode printed - what next?
    Well there are two options, depending on your business requirements:
    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
    - Another solution is to use SAPConsole transactions
    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
    Thanks,
    Ruthra

  • A word skips to next line even though there's room

    I'm currently typing bylaws for an organization. Occasionally, even though there's plenty of room for another word or two on a line, it automatically skips to the next line. I'm finally getting used to Pages thanks to this forum, but this problem is really frustrating me. Thanks.

    It would have helped if I had actually included the screenshot.

  • How do you make the sentences you input in a drop down list wrap to the next line?

    How do you make the sentences that you input in a drop down list to wrap to the next line?

    You can't.
    see this thread for more info:  Can you set drop down list as multi-line???

  • Next line character error

    Hello All,
    I am trying to concatenate two strings along with next line character. I am using the following syntax.
    v_str1||chr(13)||chr(10)||v_str2;
    The problem I am facing is if the string is like greater than about 40 characters, then the new line character is not getting appended . Instead they are concatenated together without the new line character.
    I also tried using only chr(10). But it is not working. Can anybody plz suggest me a soln to this.
    Thanks,
    Myway
    Edited by: myway on Mar 29, 2009 3:16 PM

    Hi,
    Please post your code that raises the problem, I use this simple example and works fine:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select 'line 1' || chr(13) || 'line 2' from dual;
    'LINE1'||CHR(13)||'LINE2'
    line 1
    line 2
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2     v_string VARCHAR2(4000);
      3     v_line1  VARCHAR2(4000) := 'LINE 1';
      4     v_line2  VARCHAR2(4000) := 'LINE 2';
      5     c_line_break CONSTANT VARCHAR2(1) := CHR(13);
      6  BEGIN
      7     v_string := v_line1 || c_line_break || v_line2;
      8     dbms_output.put_line(v_string);
      9  END;
    10  /
    LINE 1
    LINE 2
    PL/SQL procedure successfully completed
    SQL> Regards,

  • How can I find the words which spans across end of line to next line in pdf ?

    I am using Acrobat Adobe X Pro version for our form development and maintanence. I am writting a Acrobat JAVA batch script which reads through all the words and execute spell check and reports the mispelled words in a excel sheet. Since I am running this script in batch mode for more than 1000 pdfs - I am getting many words joined together. When I looked in to those pdfs all such words are looking okay because it is appearing in end of right margin and the next word is in the next line. Since there was no space between them it was extracted as a single word. Hence the failure.
    I used wordf = this.getPageNthWordQuads(i,j)  to get the word begin and end coordinates. when I closely observe the values are creating a rectangle and that doesnt span across lines. I got the coordinates for the regular word and the word which span acoross two lines. both of the coordinates are same.
    I think I am screwed - I have 8000 such words and no clue of how to get rid of them from the actual misspelled words.
    please help. let me know if any class /method if I call will give me the end of line or do I need to go to next layer to find this split.
    the addnot is somehow marking the words using this coordinates - please hellp me understand how this works. Thanks.
    // for all pages
    for (var i = 0; i < this.numPages; i++ )
    // For all the words
    pg += 1;
    numWords = this.getPageNumWords(i);
    for ( j = 0; j < numWords; j++)
    //get the spell check 
    ckWord = spell.checkWord(this.getPageNthWord(i,j))
    if ( ckWord != null )
    jn=0
    ml=0
    // if mispelled word found.
    wordf = this.getPageNthWordQuads(i,j)
    swordf = wordf.toString()
    var st = swordf.split(",")
    var diffx0 = parseInt(st[0])-8
    var diffx1 = parseInt(st[1])-8
    var diffx2 = parseInt(st[2])-8
    var diffx3 = parseInt(st[3])-8
    var diffx4 = parseInt(st[4])-8
    var diffx5 = parseInt(st[5])-8
    var diffx6 = parseInt(st[6])-8
    var diffx7 = parseInt(st[7])-8
    if (cWord == csword)
    jn = 1
    if ( st[1] != st[3] )
    ml = 1
    //dataLine += "\r\n write "
    else
    ml=2
    dataLine += "\r\n"+this.documentFileName
    + "\t" + this.getPageNthWord(i,j)
    + "\t" + pg
    + "\t" + j
    + "\t" + ml
    + "\t" + jn
    + "\t st[0] " + diffx0 + "\t st[1] " + diffx1 + "\t st[2] " + diffx2 + "\t st[3] " + diffx3 
    + "\t st[4] " + diffx4 + "\t st[5] " + diffx5 + "\t st[6] " + diffx6 + "\t st[7] " + diffx7 
    ck=1

    If Acrobat is reading each word part as separate words, you have a problem.
    The way I approached it in some of my tools was to check if a word ends
    with a hyphen, and if so, to check if it's the last on the line. If both
    conditions are true, combine with the next word on the next line. This is
    not fool proof, of course, as there are documents with columns are other
    structural elements that prevent this from working. Better than nothing,
    though...
    However, it is also possible that Acrobat does see both parts as parts of
    the same word. In that case, getPageNthWordQuads() will return multiple
    quads arrays. As you know, that method returns an array of quad arrays.
    There's usually only one, but in principle there could be more... Something
    to check before giving up.

  • Loop won't increment to next line

    My assignment is to do a simple encryption (A-->F,G-->L, etc.) My program will do the encryption, but will only read one line of the text document. How do I get it to read all the lines?
    Assigned text doc.:
    A long time ago there was a young boy
    who went to town 2 buy
    some bread? Yes, some bread!
    0ne ,abcdefgHIjklmnopq, is this a word?
    Fin.
    Current output of my program:
    F qtsl ynrj flt ymjwj bfx f dtzsl gtdi?
    (This is based on a 5 letter incrementation. I'm not sure where the "i?" at the end of the sentance are coming from. They aren't in the text doc.)
    //Matthew Bogard - Project 1
       import java.io.*;
       import java.util.*;
       import java.lang.*;
    //This program takes a text file and encrypts it using a simple encryption.
    //Then it prints the encryption to another text file.
        public class EncryptIt
           public static void main(String[] args)
                               throws FileNotFoundException
             String FileName, OutFileName;
             String AString;
             int numberOfPositions;
             Scanner console = new Scanner(System.in);
             System.out.println("Please enter the File Name to encrypt: ");
             FileName = console.next();
             Scanner InFile = new Scanner(new FileReader(FileName));
             System.out.println("Please enter the File Name that will accept the encrypted file: ");
             OutFileName = console.next();
             PrintWriter OutFile = new PrintWriter(OutFileName);
             System.out.print("Enter an integer for the number of shifts in the encryption: ");
             numberOfPositions = console.nextInt();
             char X;
             int positionNumber = 0;
             int len;
             while (InFile.hasNext()) //I have tried hasNext and hasNextLine
                AString = InFile.nextLine();
                len = AString.length();
                while (positionNumber < len)
                   X = AString.charAt(positionNumber);
                   if ((X >= 65) && (X <= 90))
                      X += numberOfPositions;
                      if (X > 90)
                         X = (char) ((X - 90) + 65 - 1);
                         OutFile.print(X);
                      else
                         OutFile.print(X);
                   else if ((X >= 97) && (X <= 122))
                      X += numberOfPositions;
                      if (X > 122)
                         X = (char) ((X - 122) + 97 - 1);
                         OutFile.print(X);
                      else
                         OutFile.print(X);
                   else
                      OutFile.print(X);
                   positionNumber++;
             InFile.close();
             OutFile.flush();
             OutFile.close();
       }

    Your code is really hard to read. It should be broken down into methods.
    I see your problem though.
    while (InFile.hasNext()) //I have tried hasNext and hasNextLine
                AString = InFile.nextLine();
                len = AString.length();
                // ADD THESE LINES
                System.out.println("Just read len " + len + " for line: " + AString);
                System.out.println("positionNumber is " + postionNumber);
                while (positionNumber < len)
                   X = AString.charAt(positionNumber);
                   if ((X >= 65) && (X <= 90Also, "AString" is a really bad variable name. It should start with lowercase, as per the java convention, and it should have a more descriptive name, like "line" or something.

Maybe you are looking for

  • Ipod 160 Classic Constantly Skipping Songs. :c

    I have an Ipod 160 Classic thats been working just fine til now. Now it skips a whole lot of songs and plays some half way. It does it both on the ipod and computer. I dont wanna restore my ipod because I dont have all my music saved into my computer

  • Save for Web & Devices problems

    Hi. I have sliced all my pieces in PS. I then went to Save for Web and Devices. For some reason my slice tool cannot be grabbed (I click on it and it doesn't turn to slicer). Also, the color table is all gray. No colors. I am going nuts! I have tried

  • Printer not working wireless

    I have a HP Officejet Pro 8600. I have my printer hooked to my home network. Each computer can see the printer and will print from it. Well almost. I have a Windows 7 desktop and laptop. Both can print fine from the 8600. The desktop is connected by

  • FaceTime connection problems since IOS6. Are there any solutions?

    I have an iphone 4 my friend has iphone 4S.  We have both successfully used FaceTime previously as she is based in another country.  We can use iMessages but neither can connect to the other with FaceTime.  It calls but then says Connection Lost.  I'

  • OCI crash in Threaded mode.

    hey, I am trying to do this, using oci connect to a database in THREADED mode and after processing some selects and updates, close the connection. The application then sleeps for a few and connects again to the database. The issue is the app runs fin