How to veriy if the contents of a field is STRING

Hello All,
In START_ROUTINE of Tranfer routine:
I would like to verify that a field in DATA_PACKAGE-CUSTNM is string. Because, due to bad data I am finding numeric values, in this field.
I would like to remove that record from DATA_PACKAGE, if there is no STRING in this field.
How do I do it? Is there a function / code?
<REMOVED BY MODERATOR>
Thanks,
Pramod.
Edited by: Alvaro Tejada Galindo on Jan 22, 2008 5:09 PM

Do you want to discard the data package if all characters in custnm are numbers or also if only one charcter is a number?
form check_number using iv_value type string changing cv_is_number type c.
  data:
        lv_length type i,
        lv_index type i,
        lv_char type c,
        lv_num type n.
  describe field iv_value length lv_length in byte mode.
  cv_is_number = 'X'.
  lv_length = lv_length / 2 - 1.
  do lv_length times.
    lv_index = sy-index - 1.
    lv_char = iv_value+lv_index(1).
    try.
      lv_num = lv_char.
     catch cx_sy_move_cast_error.
       clear cv_is_number.
    endtry.
  enddo.
endform.
this one says not a number as soon as one character is not a number. you can easily modify it to check whether all characters are numbers

Similar Messages

  • How do I highlight the contents of a field

    HI,
    When I click on a field I would like the contents were revealed . can someone help me?
    thanks
    Silvia

    Check out the Cursor Position JPC demo in the Oracle Forms 10g Sample Code. This isn't exactly what you are looking to do but it is pretty close! :D
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.

  • How can i get the content of JTextArea with out loosing Indentation.

    I am developing one mail sending application. I am getting mailid , from address, mail body from one Swing. In one JTextArea i am typing i have typed some matter. When i call the content of JTextArea using
    jtx.getText() method, i am getting all the content as one paragraph. That means there is no indentation which was there in TextArea.
    Please provide me some solution how can i get the content of JTextArea wiht out loosing indentation.

    And it was you who asked the question!

  • IPod classic content is missing from my iTunes library after a reinstallation of Windows 7 on my PC. How do I restore the contents of my iPod classic to my iTunes library WITHOUT losing that content on my iPod?

    iPod classic content is missing from my iTunes library after a reinstallation of Windows 7 on my PC. How do I restore the contents of my iPod classic to my iTunes library WITHOUT losing that content on my iPod?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

  • How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    If you're talking about music and movies an i-device was not designed for unique storage of media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing music and movies is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred from a device to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • How to read the contents of Input Field created via Screen Painter?

    Hi All,
    I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
    now in my PAI, how can I read the contents of the input/outbox field?
    Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL TC_DATA.
        MODULE MODIFY_DATA.
      ENDLOOP.
    I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
    Any helpful inputs will be appreciated/rewarded.
    Thanks.
    Jaime

    Hi, Jaime
    Do the following Change in you Follow Logic
    PROCESS AFTER INPUT.
    MODULE read_or_change_value. " Add this
    LOOP WITH CONTROL TC_DATA.
      MODULE MODIFY_DATA.
    ENDLOOP.
    Add the Bellow Module code in you Driver Program.
    MODULE read_or_change_value.
    DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
    " Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
    END MODULE.
    Please Reply if any Issue..
    Best Regards,
    Faisal

  • How can I view the contents of a free trial for adobe fireworks cs6 on mac

    how can I view the contents of a free trial for adobe fireworks cs6 on mac.
    My friend told me to find the application in finder then hit control and click it and then it should give you the option to click
    "view package contents"
    This was not the case
    please help thank you

    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which iMac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK---> https://discussions.apple.com/docs/DOC-3602
    CLICKY CLICK-----> Help us to help you on these forums

  • How do you limit the content of Launch pad screens

    How do you limit the content of Launch pad screens - mine is cluttered with many applications - which are all valid - but many are so raely used they are causing me to have two screes - I want one screen possibly half filled. Can anybody help...

    I believe you need to manually delete them one at a time..
    Are the emails from an IMAP account(s)

  • How do I save the contents of all of my saved mail folders?

    How do I save the contents of all of my saved mail folders?

    Oh, I see...
    All the mail is stored in ~/Library/Mail (and its associated subdirectories).
    Your Library holder is hidden by default under Mountain Lion (and Lion, too?), so hold the Option key when selecting the Window menu in the Finder to add it to the menu, from where you can access it.

  • How to get(copy) the contents i.e the cell of an excel sheet to other excel

    How to get(copy) the contents i.e the cells of an excel sheet to another excel sheet.
    I can read the contents i.e the text in the cells and able to display it in the Java console
    i want these contents to be copied to another excel sheet with the cells data.
    I am using Java Swing for the UI, POI framework for the excel work.
    Please anyone suggest some code to this requirement.

    [spreadsheets with poi|http://poi.apache.org/spreadsheet/converting.html] Hi
    on the poi apache site there's a number of good examples...
    I started with poi only a week ago, but just from reading these examples
    (especially SS Usermodel code) i managed all i needed to know (so far).
    kind regards
    BB
    Edited by: BugBunny on Feb 22, 2010 4:36 AM

  • How do I set the content type ?

    Hi
    I have to upload a file from my Java Application to a remote servlet.
    I have used the HTTPConnection class to connect to the remote servlet and made it call the POST method explicitly.
    How do I set the content type of the file I am uploading from my Java apllication?
    I tried to change the content type in the doPost method. by giving
    req.setContentType("multipart/form-data"); in the doPost.
    It still doesnt work..
    Is there any way to set the content type in the Java application?
    Thanks in advance

    What class is your req variable? If your using a HttpServletRequest, then there is no method req.setContentType("");
    In the HttpServletResponse this is for telling the web browser or receving medium what kind of mime type to expect.
    And what package is the HttpConnection class from?
    I think more precise info is required before this question can be answered.

  • Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Numbers does not have rotated text within cells.  You can place a text box over the cell that has rotated text but you cannot rotate text within a cell.

  • How can i compare the contents of two folders ?

    how can i compare the contents of two folders and find out which files are in one but not in the other?? Knowing how to do this would be the best thing ever, especially when dealing with a large number of files. Often, for instance, I'm dealing with a large number of images, processing them, and saving the retouched ones to a new folder, and need to check that they are all there. If there are say three files missing in the second folder (out of say a hundred in total) being able to automate the process of elimination would be very useful. Please help!!!
    B

    I really wish I knew the answer to this. I work between two macs, a G5 and MacBook Pro when I'm on the go. Each time I move from one to the other I have to copy all my files to the computer I'm going to work on, so I end up with the same files being duplicated. It's not a problem if it's not much data but in my case the it can be to 30GB, mostly graphics files, photoshop, motion, final cut pro, etc.
    There's has got to be a way automator can make a comparison between two folders to sort out what's changed and what's remained the same. It would be nice also if this feature could be done globally on the hard disk using spotlight's technology to stop files being duplicated in places you didn't even know about and taking up valuable disk space. I'm not sure how this could be done.
    Any bright ideas Apple?

Maybe you are looking for

  • RS480M2 - environmentals - have I got a problem?

    Hi, Well what a MB to pick for my first build ;-) Thanks for all the great advice on this site. After a problem that turned out to be RAM based (not compatible although passed memtest86 for over 20 hours; replacement seems fine now) I'm wondering if

  • Tab-order in sub-forms

    Hello, I have a problem to define tab-order in sub-forms. I am using the instance manager (addinstansces) to generate subforms (dynamic), but have problems to define the tab's to go horizontal and not top-down. I.e. if I have defined 3 subforms with

  • Not print the time?

    Hi, I am trying to print out this years calendar, and since not all my events have a known time, or a time at all, i was wondering if it were possible NOT to have the time printed? Thanks,

  • ITunes suggested to upgrade iOS for my iPodtouch but couldn't upgrade and asks to restore the iPod. But it doesn't restore also and gives error (1). Pl help.

    iTunes suggested to upgrade iOS for my iPodtouch but couldn't upgrade and asks to restore the iPod. But it doesn't restore also and gives error (1). Pl help.

  • Lightroom 5 stops working

    Have just purchased upgrade. When selecting Slideshow tab or impromptu slideshow and or try to print Sys info under help notice appears to say that Lighjtroom has stopped working and will close. When I revert to Lightroom 4 I have no problem with the