cancel
Showing results for 
Search instead for 
Did you mean: 

how to check FIND * symbol in my workarea

0 Kudos
245

star1.pngstar1.png

this is my data

hi

i had field workarea as TTA1 this is my table value it is maintained

which i am reading has data TV* or *TV etc so it should check the symbol and of TT of my data should check and T is available so it should append .

how to check the star value

Accepted Solutions (0)

Answers (1)

Answers (1)

NTeunckens
Active Contributor
0 Kudos
DATA lv_lgort TYPE lgort_d.

lv_lgort = 'TV*'.

FIND '*' IN lv_lgort.
IF sy-subrc = 0.
  WRITE '* found via Option 1'.
ENDIF.

IF lv_lgort CA '*'.
  NEW-LINE.
  WRITE '* found via Option 2'.
ENDIF.

IF lv_lgort+2 = '*'.
  NEW-LINE.
  WRITE '* found via Option 3'.
ENDIF.