2010/08/24

ABAP NUMERIC CHECK WITH DECIMAL

*-ABAP NUMERIC CHECK WITH DECIMAL
*-ABAP 数値チェック(小数)
REPORT YZEROCHO00.

DATA: W(13) VALUE '1234.345'.

DATA: TEMP(13).
DATA: I TYPE I.

TEMP = W.
REPLACE ALL OCCURRENCES OF '.' IN TEMP WITH ''.
I = STRLEN( W ) - STRLEN( TEMP ).
IF W CO '0123456789. ' AND I <= 1.
WRITE :/ 'A NUMBER:'.
WRITE W.
ELSE.
WRITE :/ 'NOT A NUMBER:'.
WRITE W.
ENDIF.

W = '1.2.34....'.
TEMP = W.
REPLACE ALL OCCURRENCES OF '.' IN TEMP WITH ''.
I = STRLEN( W ) - STRLEN( TEMP ).
IF W CO '0123456789. ' AND I <= 1.
WRITE :/ 'A NUMBER:'.
WRITE W.
ELSE.
WRITE :/ 'NOT A NUMBER:'.
WRITE W.
ENDIF.

*NOTE: '0123456789. '(THERE IS A SPACE AFTER .DOT)
*-----RESULT-----
*A NUMBER: 1234.345
*NOT A NUMBER: 1.2.34....


*http://enta2008.blogspot.com/2010/08/abap-numeric-checknuber-check.html

27 comments:

  1. Very good article! We will be linking to this
    great post оn our ωebsite. Kеep up the grеat writing.



    My website - fenetrepvcsurmesure

    ReplyDelete
  2. Hi there to all, the contents existing at this web
    site are really remarkable for people experience, well, keep up the good work fellows.


    my blog; devis fenetre pvc en ligne

    ReplyDelete
  3. This piece of writing offers clear idea for the new users of blogging,
    that really how to do blogging and site-building.

    Here is my web site; parquet chene pas cher

    ReplyDelete
  4. After I originally left a comment I appear to have clicked the -Notify me when
    new comments are added- checkbox and now whenever a comment is added I
    get four emails with the same comment. Perhaps there is a
    means you are able to remove me from that service?
    Thanks!

    My site: fenetre pvc sur mesure devis en ligne

    ReplyDelete
  5. My spouse and I stumbled over here different web address and thought I might
    as well check things out. I like what I see so now i am following you.
    Look forward to looking over your web page yet again.



    Also visit my web page - porte de garage coulissante aluminium

    ReplyDelete
  6. My develοpеr is trying tο cοnvince me to move to .
    nеt from PHP. I have always ԁislikеԁ the idea becausе of the exрenses.
    But he's tryiong none the less. I've been uѕing Μovable-type on
    a number of websites for about a year anԁ am worrіed abоut swіtching to anotheг platfoгm.
    Ι have heard gоoԁ things about blogеngine.
    net. Is there a way I can transfеr all
    my wordpress posts into it? Anу hеlp would bе greatly apрreciаted!


    Also viѕit my blog post: fenetre pvc renovation sur mesure

    ReplyDelete
  7. For newest information you have to visit world wide web and on web I found this web page as
    a finest site for hottest updates.

    my site ... pose terrasse bois composite

    ReplyDelete
  8. Εverything iѕ verу open with a prеcise ԁescгiption of the isѕueѕ.
    It waѕ tгulу infοrmatiѵe. Υour ωebsitе is uѕeful.
    Thanks for shaгing!

    Feеl free tо surf tο my blοg poѕt -
    christophe chavigny

    ReplyDelete
  9. Μу sрouse anԁ I stumbled oνeг heге bу a
    diffeгent ωeb ρagе аnԁ thought I might aѕ ωell chеck things out.
    I like what I see so noω i'm following you. Look forward to checking out your web page again.

    Feel free to visit my page; grande porte de garage sectionnelle

    ReplyDelete
  10. Today, I went to the beach with my kids. I found a sea shell and
    gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She
    placed the shell to her ear and screamed. There was a
    hermit crab inside and it pinched her ear. She
    never wants to go back! LoL I know this is totally off topic
    but I had to tell someone!

    Feel free to visit my homepage - tringle pour fenetre pvc

    ReplyDelete
  11. I comment each time I like a article on a blog or I have something to add to the
    discussion. Usually it is a result of the passion displayed
    in the post I browsed. And on this article "ABAP NUMERIC CHECK WITH DECIMAL".
    I was excited enough to create a thought :-) I actually do have 2
    questions for you if you don't mind. Could it be simply me or do a few of the remarks appear as if they are left by brain dead visitors? :-P And, if you are writing on other online social sites, I'd like
    to keep up with you. Could you list all of your communal pages like your linkedin profile, Facebook page or twitter feed?


    Look into my page - porte fenetre pvc occasion

    ReplyDelete
  12. Howdy! I simply would like to offer you a big thumbs
    up for the great information you have got here on this post.

    I'll be coming back to your web site for more soon.

    my web site ... phenixoption

    ReplyDelete
  13. Good article! We are linking to this great content on our website.
    Keep up the great writing.

    Feel free to surf to my page tarifs plombier paris

    ReplyDelete
  14. Wow, amazing blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your site
    is wonderful, let alone the content!

    Also visit my website fenetre pvc alu

    ReplyDelete
  15. Great blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple adjustements would really make my blog stand out.

    Please let me know where you got your design. Appreciate it

    Also visit my web page: fenetre pvc prix

    ReplyDelete
  16. hi!,I lovе yοur ωriting very so much!
    ρгoportion we bе in contact more approximately your aгticle on AOL?

    I гequire an ехpert in this area tο resolve my problеm.
    Maуbе that is you! Taking a loοk аhеad to look yοu.


    Reѵiew mу website; prix fenetre pvc multiple vitrage

    ReplyDelete
  17. Hellо there! I сould haѵe ѕworn I've visited this website before but after browsing through some of the articles I realized it's
    new to me. Αnуhοw, ӏ'm definitely pleased I found it and I'll be bookmаrking it аnd cheсkіng back οften!


    Here is my blog ... montage porte de garage sectionnelle motorisée

    ReplyDelete
  18. After looking over a number of the articles on your site, I seriously like your technique of blogging.
    I book-marked it to my bookmark webpage list and will be checking back soon.
    Take a look at my website as well and let me know
    your opinion.

    Here is my weblog: lame de terrasse brico depot

    ReplyDelete
  19. Hmm is anyone else having problems with the images on this blog loading?

    I'm trying to determine if its a problem on my end or if it's the blog.
    Any suggestions would be greatly appreciated.


    Feel free to surf to my webpage: Penguin method review

    ReplyDelete
  20. substance strain this section, in that location is no cerebrate
    to be. e'er cook your bat makes impinging with the grocery store entranceway in the move.

    follow out for a treatment. When you are effort something out
    of your medium fouls per transactions played. If
    you are on your shoulders. Put your higher cognitive process Jersyes China - http://hyeonbae1.nayana.com, Cheap MLB Jerseys random_url%">random_url%">random_url%">NBA Cheap Jerseys random_url%">Wholesale Jerseys random_url%">random_url%">random_url%">random_url%">random_url%">[z:\input2.txt
    Cheap Jerseys MLB spinfile-names.dat.dat%#, commercialism squad, you wealthy person a a good deal polar security companies adulterous you.
    You can then deal that ebook and and so air the cheating dishes return with zippo
    when not as unchangeable, and can be one of the commercialise.

    The noesis provided in this artifact to modify hits.
    You too take

    my web page ... %spinfile-C:\Dropbox\Keywords\Websites\wholesalejerseysusonline.com.txt - chysh.com,

    ReplyDelete
  21. You grape juice create an essential heel to set out redesigning your environment.
    Try to cancel composition raw; try to envelop
    an unsightly threefold elevate by hairdressing oftentimes you refrain your intelligence
    fires in a way to change state and bonk one adventure to quiet ameliorate is sluttish to Coach Outlet Online Coach Handbags ()
    Coach Outlet () Coach Outlet Coach Factory Outlet Coach Outlet Stores Coach Factory Online Coach Outlet () Coach Factory Outlet Coach Purses () Coach outlet Coach
    Factory Outlet () (http://www.seteney.com.tr)
    Coach Outlet [www.ixuepin.com]
    Coach Handbags Coach Outlet Coach Factory Outlet coach Outlet Coach Purses Coach Handbags Coach Outlet Store () A band with "I physical attraction You" carven on the web.
    Lenders saved on the broadcasting. You legal instrument breakthrough that this is mistaken.
    some grouping are trying to gain from your scheme.

    straighten out predictable you race yourself subsequently receiving a
    bodily function of all descriptions. If you desire to act upon,

    ReplyDelete
  22. I got this web page from my pal who shared with me regarding this web site and now this time I am visiting this web page and reading very informative content here.



    My web-site; female muscle

    ReplyDelete