In ABAP P data type is packed byte with total number of packed byte as n and Decimaldigits. i.e. so it would mean 2n digits. Last packed byte uses 1 byte for number and other for sign, Thus you get 2n-1 digits to encode a number. Out of those 2n-1 digits, d digits are reser...
SAP Managed Tags: ABAP Development Hi, Check the Below.. DATA: VALUE TYPE P DECIMALS 1. VALUE = '12345678901234.4'. WRITE: 'VALUE : ', VALUE. Type P Length 8 Output length 17 Decimal places 1 Regards, Viji. Former Member In response toFormer Member ...
SAP Managed Tags: ABAP Development Hi, i would like to convert a packed decimal to character variable, but i dont want to use the users profil defaults, i would like to choose whether i'm getting 1.234,56 or 1,234.56 so WRITE TO is not an option (or i missed a parameter somewhere...
456 SAP Managed Tags: ABAP Development hi, Checkthis code data: v_char1(13) type cvalue'1.215.700,000' v_flag1 type p decimals 0. translate v_char1 using '. '. translate v_char using ',.'. condense v_char no-gaps. pack v_char1 to v_flag. write v_flag1. ...
SAP Managed Tags: ABAP Development hi look at this ... REPORT zceil_floor . parameters: p_int type i , p_int1 type i . data: value type p decimals 2 , value1 type p decimals 2 , value2 type p decimals 2 . start-of-selection. value = p_int / p_int1 . value1 = ceil...
SAP Managed Tags: ABAP Development Hi, I have problem while assigning values with different number of decimals. I am using it in enhancement. For test program its working fine. But in enhancement, it gives following result. data : lv_b type bapicurext. data : lv_a type netwr. lv_...
SAP Managed Tags: ABAP Development Hi: There are two main categories of data in ABAP/4: character and numeric. Integers, Packed decimals and floating point are Numeric data types - Packed Decimal: Packed decimal values are stored two digits per byte. The end byte is an exception; it...
SAP Managed Tags: ABAP Development Remove the coma in the value and pass, as coma is given by system itself according to user settings Data : char(10) type c value '1200.12', pack type p decimals 2, int type i. pack = char. int = char. Write 😕 pack, int. Reply Former Mem...