DATA:alpha(10) type c VALUE '0123456789 ' .
DATA:str(5) type c VALUE '11' .

if CL_ABAP_MATCHER=>MATCHES( PATTERN = '^{0,20}[.,]{0,1}{0,10}$' TEXT = str ) = ABAP_TRUE . 
    write : 'true' .
else .
    write : 'false'.
endif.

 

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-06
  • 2021-12-19
  • 2021-06-26
  • 2021-11-11
  • 2021-06-02
相关资源
相似解决方案