Skip to Content
avatar image
Former Member

display without decimal

Hello Friends,

I have a quantity field in internal table which is having decimal 3 places

the data element is DZMENG.

I am using this internal table for ALV display.

User wants to see this quantity as number field, no decimal.

I tried with modifying field catalog with no decimal field & this I set to '0'.

But I still see the quantities separated by decimals.

Any idea how we can do without changing the field type in internal table.

Regards

Prashant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 16, 2007 at 07:06 PM

    Try changing the DATATYPE in the the fieldcatalog.

    xfc-DATATYPE = 'QUAN'.
    xfc-decimals_out = 0.

    Regards,

    RIch Heilman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 07:06 PM

    try this

    DATA pack TYPE p DECIMALS 4 VALUE '1234.5678'.

    WRITE pack NO-GROUPING DECIMALS 0.

    write your field to a local variable with above statement and move it to the catalogue.

    A.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 07:10 PM

    use Decimals_out in field catalog.The problem is because of reference field name and reference table name.Do not use this field in case of no decimals.

    Thanks

    Seshu

    Add comment
    10|10000 characters needed characters exceeded