Skip to Content
avatar image
Former Member

Hi decimal issue

i

want data in following format

50.00- as 50-

50.45 as 50

50.00 as 50 which should be right aligned in alv

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 15, 2007 at 07:59 AM

    Hi Mitesh,

    do like this

    Data: var1 type p decimals 2 value '50.45',

    var2 type i.

    var2 = var1.

    write var2.

    Reward if it helps,

    Satish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2007 at 08:04 AM

    Hi,

    Declare ur variable type p with decimal 0.

    Regards,

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2007 at 08:43 AM

    In the field catalog pass

    wa_fieldcat-just = 'R'. " R - Right Justified, L - left justified, C -Center.

    Add comment
    10|10000 characters needed characters exceeded