Finding the value of the text starting from x1 and ending at x2

Dear All,
While reading a notepad's each line, I need to take the each lines value starting from say 15th position to 20th position. If i use it_notepad-text+14(5) and the text does not contains any data, it generates dump.
pl. guide. Is there any function module to get the value of the string with starting and ending position.
Regards,
Vidhya

I think the best is what G@urav suggested. Simple catching this exception will solve your issue
data: word type string.
loop at it_notepad.
   try.
       word = is_notepad-text+11(4). "get the required word
   catch cx_sy_range_out_of_bounds.  "and catch the exception in case the word is too short
   endtry.
endloop.
This way you won't get dump and will be able to skip the line which don't have required number of chars.
Regards
Marcin

Similar Messages

  • How do I overide the values in the text file

    I am reading a text file using loadvars, to get some values
    such as
    &yourid=123456 from the text file.
    How do I overide the values in the text file
    <PARAM NAME=movie VALUE="jamietrailer.swf?yourid=65432
    <---- this doesn't seem to work
    So I can change the values from the html file?

    I want to do this:
    # It should look like this:
    <PARAM NAME=movie VALUE= "movie.swf?text=hello">
    # Find the EMBED tag. Look for this:
    <EMBED src="/support/flash/ts/documents/movie.swf"
    # Again, replace the filename "movie.swf" with
    "movie.swf?text=hello".
    It should look like this:
    <EMBED
    src="/support/flash/ts/documents/movie.swf?text=hello"
    Is this supposed to overide the value I am reading using
    loadvars?
    or do I have to not read the value from the file if I am
    going to give it a value in html?

  • The curser includes a text box from a previous image or link when the curser is positioned on the side of the page. i click and it goes away but only to return again on the next launched page. how do i get rid of this?

    the cursor includes a text box from a previous image or link when the cursor is positioned on the side of the page. it will mainly happen when i hit "back" from the page i was on. i click and it goes away but only to return again on the next launched page. i also keep several tabs open and it will carry over to any one of them i go to. how do i get rid of this?
    == This happened ==
    Every time Firefox opened
    == when i upgraded to most recent version 3.6.8

    A number of extensions can cause that problem, you'll need to do a little troubleshooting to find out which extension is causing that to happen for you.
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • How to find out the values of the pagecontrol

    Is it possible to find out the values of the pageitems in the request?

    hi
    keith posted an excellent code snipplet in the subject "A way to convert selection from query builder in DML language ", which can be found here :A way to convert selection from query builder in DML language
    ny tweaking the settings, you can retrieve the dimension members on the page axis, assuming that this is what you intended
    regards,
    thomas

  • How do I make a text box solid if the value in the field is greater than 0 and do this for all recor

    Hello,
    I have several text boxes on a document, and wish to make the boxes either solid or visible if the value in the field is greater than 0.
    I am using an excel file for the data, each cell with either 1 or 0 (true or false).
    Any help would be appreciated.
    Thanks,
    BJ

    Yes, I also sent an email regarding this problem.
    I am using XNET to write a custom device for PXI-8516 LIN card.
    I've attached a couple snippets showing where I've tracked the problem.
    The only error that I've seen comes from the XNET Wait vi in the timeout snippet.  I believe that error occurs because frame queued in the write snippet is never transmitted by the LIN card.
    Attachments:
    Timeout_Error_Snippet.png ‏22 KB
    XNET_Write_Snippet.png ‏24 KB

  • How to retreive the value of a text box that is created dynamically

    hi this is ravi kiran,
    i am working on a project which requires creation of as many text boxes as the number records fetched from the database i.e, if the result set contains 3 records three text boxes must be created.
    here is the code for that
    if(rs1.next()) { %>     //rs1 is the result set object
    <tr>
    <td width="130" ><%= rs1.getString(1)%></td>
    <td width="130" ><%=rs1.getString(3) %></td>
    <td width="184" ><%= rs1.getInt(2)%></td>
    <td width="149"><input type=text size="20" ></td>
    </tr>
    %>
    here the problem is the text boxes are getting created but what ever the value that is entered in the created text boxes must be added and must be displayed in another text box.
    i am having no idea how to do this
    can any one help me
    thanx in advance.

    may be this helps u ,
    Create a counter and increment it every time when it comes to rs.next
    Set ids for the text box with the value of the counter.
    eg: textbox1 , textbox2
    the 1 and 2 shld be created by the counte just append the count value to the string and set it as id of the new text box dinamically created.
    then get the ement by id and get its value and do the process.

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

  • Dynamically change the value in standard text

    Hi all,
      I have created standard text using SO10  transaction. I have included the text id in SAP FORM. My requirement is some text need to change dynamically in the text  when printing the form.Is there any way to do it.
    Thanks
    Suadrsana

    Hi .. Here is the solution ...
    Hi &V_NAME&
    Thanks
    XXXXXXXX
    U need to get the value of
    V_NAME
    from the SF.
    If u have the value of the variable in an internal table, then
    LOOP AT ITAB INTO WA.
      V_NAME = WA-NAME.
    ENDLOOP.
    I think this will be useful.
    Suhas
    Message was edited by:
            Suhas Saha

  • Get the value of output text box in javascript

    Hi all,
    I am trying to retreving the value of output text box using getElementById('form1:outputText3') but was not able to get it.
    Googled it but didnt find any way to get it on the page itself without going to backing bean
    jdeveloper version 10g
    Thanks in advance

    Hi,
    I think this is because out put text is not a component but text written to the page. So I thin you would have to parse the generated HTML for it or use a inputText field and set it to read only
    Frank

  • How to assign the Value to the Particular field-Text field

    Hi all,
    My requirement is to call the Web service with input from the ADF page.
    Steps I have done:
    1. I have created a Web service data control based on the WSDL file.
    2. Just drag and drop the Process, It is automatically created the form with the Input fields and then the Process button
    3. When I entered the values and then process button it will pass the values corretly.the web service is invoked correctly with the values entered.
    4. But when I try to assign the value from the some other field that is not working.
    I am assigning the Value to the field by go to the properties of the Particular field value =”CREATE”
    When I do like this that value is showing in the screen. But it will not pass the value to the web service.
    I think the value is only displaying in the screen. Not stored at bindings level. Kindly guide me in this.
    Thanks in Advance
    C.Karukkuvel

    If you want to have the value that is returned displayed in a field that has binding to another item and not the WS result item then the way to do this would be to override the method that is invoked with the button that calls the web service - you then take the result and assign it to the item you want.
    See the way it is done here:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html
    While this sample uses a simple method it would be basically the same for a Web service.

  • How can I get the value of a custom property from a resource object?

    I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.
    I have tried the following:
    PropertyName propName = new PropertyName("","status");
    value = res.getProperty(propName).toString();
    However, I am getting a NullPointerException when I try to create the PropertyName instance.
    Is there a better way to get the value of a specific property from a resource object?
    Thanks,
      Tom

    Thanks Praveen.
    I was missing the default namespace of "http://sapportals.com/xmlns/cm" - I thought I could just pass an empty string for the namespace, but it looks like I must always specifiy, even if it is default.
    Tom

  • I just bought a new Macbook Pro and transferred my iTunes archive of music to it. How do I transfer the playlists from my other computer(s)? iTunes on the new machine wants to start from scratch.

    How do I transfer playlists from my other Apple computer(s) to my new Macbook Pro? I think I have successfully moved the music (archive) but the new machine wants to start from scratch on the playlists.

    http://support.apple.com/kb/ht1751
    Essentially you need to copy over the itunes folder
    username/Music/itunes
    Over to your macbookpro I suggest using an ethernet cable as it is way quicker. Put it in the same spot on the new Macbook Pro
    username/music/
    This should bring over the playlists etc. Then just put the music back in from the archive

  • How to remove hash in the value of the field fetched from application serve

    Hi,
       I am populating values of the file which is in the application server to the internal table. But for the last field hash is also populating from the file along with the value.
    Please suggest me how to remove hash in the value of the last field.
    Thanks,
    Neelima.

    Hi Vinay,
    Please check the program. I have used the replace statement but it is not working.
    IF NOT v_sap_bom_rec IS INITIAL.
    Spliting the records at '~' delimiter
        SPLIT v_sap_bom_rec AT c_del INTO  wa_bom_file-model_name
                                           wa_bom_file-product_code
                                           wa_bom_file-description
                                           wa_bom_file-product_type
                                           wa_bom_file-mfg_part_num
                                           wa_bom_file-mfg_part_desc.
        REPLACE cl_abap_char_utilities=>horizontal_tab IN wa_bom_file-mfg_part_desc WITH space .
        wa_bom_file-status = c_status.
        APPEND wa_bom_file  TO i_bom_file.
    But it is not working.
    Please help me..
    Thanks
    Neelima

  • How to prevent numericstepper from setting the value to the defined Maximum when a number greater than maximum is entered in by keyboard and user hits the "Enter" key.

    I need to set the Maximum so that the use can use the mouse to change the value of numericstepper (and not go over a certain number), but at the same time I have to allow the user to enter their value by typing in the text field. When the user enters a number greater than the Maximum, I disable the "Ok" button of the dialog and show a red warning(error message). The issue is that the user can hit "Enter" and numeric stepper would set the value to the Maximum and the dialog box would close and the rest of code would run. I want the numericstepper not to change the value and keep showing the warning even if the user hits the "Enter".
    Note: Setting maxChar does not help since my maximum is 1000, and user might enter 5555
    I would appreciate the help.

    Thanks for trying to help, But
    The issue is that if I set the maximum value of stepper 1 greater than the max value that I want, then the user can select an invalid value(of myMax + 1) when he clicks on the UP arrow of the numeric stepper(which is not acceptable for what I am working on).
    I need to preserve the users invalid number, while not letting the user to select an invalid number by clicking UP key.
    I noticed that when the user enters a number greater than the Maximum, and then click on the down arrow, it would set the value to 1 less than the maximum. This is not acceptable either.

Maybe you are looking for

  • Macbook to LG television via hdmi - can;t get it to connect

    HelloI I have borrowed a friend's cables to see if I can connect my macbook to my LG television. I have the apple mini DVI to HDMI cable and the belkin HDMI to DVI cable and the television tuned to hdmi1 channel - there is only one hdmi port but i've

  • Bug or change in CS5 Extendscript Toolkit debugger or parser

    I got a strange error beginning to work with a script in CS5 (that is working in CS4, and has a script version setting making it run as CS4). This is what happened: Pressing Step into code in ExtendScript Toolkit. The window switches to InDesign CS5.

  • Migration from 8.1.6.0.0 - 9.2.0.6.0

    Hi all, I need some help with migrating a Database from an old Server to a new one. Here is the Scenario: An old DB (Oracle Version 8.1.6.0.0) runs on an old Server, which needs to be replaced with new Hardware. The new Hardware runs Oracle 9.2.0.6.0

  • Got the white screen with flashing ? But no startup disk to be found

    Need some help as following all instructions from everyone I cannot reinstall OS X mountain lion (I was using Mavericks but Mountain Lion is all that is coming up - issue is when asked to select disk where I want to install nothing come up??

  • Designing applications to connect to SQL DB

    Hi  I am developing an application which involves around 8 - 9 tables, the record count would go in thousands. So instead of having them in sharepoint lists with lookup columns, i am planning to use SQL database and use some stored procedures for que