* http://www.regular-expressions.info/floatingpoint.html DATA: lv_in TYPE string VALUE '-1.23'. " oder 1.23E-10 oder -1 DATA: lv_out TYPE f. DATA(matcher) = cl_abap_matcher=>create( pattern = '^[-+]?[0-9]*[.]?[0-9]+([eE][-+]?[0-9]+)?$' text = lv_in ignore_case = abap_true ). IF matcher->match( ) = abap_true. lv_out = lv_in. WRITE: / lv_out. ENDIF.
Kategorien
-
Neueste Beiträge
- [SAP] IDOC-Verarbeitung
- [SAP] Analyse der Performance von ABAP CDS Views
- [SAP] ABAP CDS Views und Verwendung von Annotations
- [SAP] Adobe Forms Administration
- [Raspberry Pi] ZigBee USB-Sticks im Vergleich
- [Raspberry Pi] ZigBee: zigbee2mqtt einrichten, mosquitto broker installieren
- [ABAP] Leistungstammsatz anlegen
- [ABAP] Leistungstammsatz lesen
- [Raspberry Pi] Betriebsystemfunktionen ausführen
- [SAP] Übersichten zum ABAP Programming Model