Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Find Spec. Char and skip it.

Former Member
0 Kudos

Hi All,

Does anybody know the function model to find the spec. char and skip it?

Regards,

Luke

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

using Reg Ex:

3 REPLIES 3

former_member156446
Active Contributor
0 Kudos

using Reg Ex:

Former Member
0 Kudos

Hi,

You can use 'Contains Only' CO to check if it contains any special characters...

Former Member
0 Kudos

Hi,

You can try this code:



IF NOT so_name[] IS INITIAL.
    LOOP AT so_name.
      lv_len = strlen( so_name-low ).
      CLEAR lv_pos.
      WHILE lv_pos LT lv_len.
        lv_c = so_name-low+lv_pos(c_no).
        lv_pos = lv_pos +  1.
        IF c_wild CA lv_c.   <------- constants: c_wild(32)  TYPE c VALUE '*`~!@#$%^&()-_+=|\}{][;:,<>./?'''.
" Do what you want
          REFRESH so_name.
          CLEAR so_name.
          EXIT.
        ENDIF.
      ENDWHILE.
    ENDLOOP.
  ENDIF.

Hope this will help you..