SAP Managed Tags: ABAP Development data: var1(5) type p decimal 2. This will solve your problem. please take F1 help for such issues. Regards Suvendu Reply Former Member 2009 Apr 23 4:20 PM 0 Kudos 13,378 SAP Managed Tags: ABAP Development data: variable(5) type p decim...
In database fields of this type, decimal floating point numbers are stored as a packed number (formatDEC). The length and the number of decimal places must be specified when defining a data type in ABAP Dictionary. Calculations (SELECTwith appropriateSQL expressionsor with the aggregate functions...
Database error text: "SQL message: Numeric overflow for parameter/column (1) source type DECIMAL, target type DECIMAL, value 'unknown'" 分类:SAP-ABAP 好文要顶关注我收藏该文微信分享 萧静默 粉丝-69关注 -3 +加关注 «ABAP-ICON的一些应用 ...
SAP Managed Tags: ABAP Development Hi, How do I add 2 Decimal places to a Type 'P' value? I cannot do this in the data declaration step, because of the following: 1. Once the number is determined, there will be another field that will define the number of decimal places. 2. For...
SAP Managed Tags: ABAP Development Hi all sap master. i want to ask how to remove zero after decimal point in abap code? I have code like this DATA: numb(13) TYPE c VALUE '12123.010'. SHIFT numb RIGHT DELETING TRAILING '0'. WRITE: numb. But its not work. Any clue? Thank and ...
7,808 SAP Managed Tags: NW ABAP Print and Output Management hello does anybody know how to round a value to the nearest integer in a smartform if the value is 2.67, it should be 3 if the value is 3.01, it should be 3Know the answer? Help others by sharing your knowledge. Answer...
DATA: pack1 TYPE p DECIMALS 2 VALUE '400', pack2 TYPE p DECIMALS 2, pack3 TYPE p DECIMALS 2. FIELD-SYMBOLS:<f1>TYPE ANY ,<f2>TYPE ANY. * correct --- ASSIGN pack1 TO<f1>CASTING TYPE p DECIMALS 1. out->write( |<f1>: {<f1>}| ). ...
SAP Managed Tags: ABAP Development Hi Mansi, in the fieldcatalog which is of type SLIS_T_FIELDCAT_ALV u have 'decimals_out' field where u can specify the no.of decimal places reqd... data :VBAK_B TYPE SLIS_T_FIELDCAT_ALV . fs-decimals_out = 3. modify <it_fieldcat> from fs...
ABAP Extensibility Hi Nishant Arora, Please check this code. DATA:N1TYPEPDECIMALS4VALUE'0.0565',N2TYPEPDECIMALS2.MOVEN1TON2.WRITE:N2. Here the value is get rounded to 0.06. Rather than function modules you go with this. I think it is easier. ...
SAP Managed Tags: ABAP Development Hi.. that depends on the data in the character variable.. if that character variable contains onli numbers then it is possible. data c type c value '1'. data p type p. p = c. write p. *** here the outputis 1. *** If it contains even ...