ABAP数字类型合法性检查函数NUMERIC_CHECK 查看原文 Data: Values, types and expressions and Variables Values and Types Everyvaluehas atypeValue(data) typesinpython: - Integers (typeint... Types determine what we can do with va
这个函数可以检查一个输入串的类型,返回CHAR或者NUMC,但是只能检查整数,带小数点的都被当作CHAR了。
SAP Managed Tags: ABAP Development Hi sam, You can use the Function Module: numeric_check. Usage: CALL FUNCTION 'NUMERIC_CHECK' EXPORTING STRING_IN = X IMPORTING STRING_OUT = X HTYPE = H_TYPE. if h_type = 'CHAR'. WRITE:/ 'NOt Numeric'. else. write:/ 'Numeric'. ENDIF. Reply ...
SAP Managed Tags: ABAP Development Yep, try this. report zrich_0001. data: str type string. str = '15263459846'. if str co '1234567890'. write:/ 'This is numeric'. else. write:/ 'This is not numeric'. endif. Regards, Rich Heilman Reply Former Member 2006 Aug 17 3:00 PM...
SAP Managed Tags ABAP Development SAP Business Process Management Hi All Is there any direct command or function module which will find numbers in alpha numeric string or it will check that the string contains only numbers ? Regards YogeshKnow...
CATS_NUMERIC_INPUT_CHECKを通った際に、小数点以下が欠けてしまったという内容です。 ■これから注意すること CATS_NUMERIC_INPUT_CHECKを使う際はOUTPUTのパラメータの桁数に注意する →INPUTパラメータの数値の最大桁数を外部形式にした状態+1桁が必要(詳細は下記参照) ...
SAP Managed Tags: ABAP Development hi peggy, to check whether a number is numeric or not try this out, number='1234'. If number = N.<for numeric checking> write:/ number is numeric. endif. Hope this helps u. Regards, Nagarajan. Reply Former Member 2005 Nov 30 1:00 PM 0 ...