Skip to Content
author's profile photo Former Member
Former Member

problem with numeric field

hi all,

i have defined a field as numaric

c_unrefunded_sum(9) type n value '000000,00'

but it is giving field value '00000000' in the output

i want output as 6 integers 1 comma 2 decimals

thanku all

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Dec 05, 2007 at 05:27 AM

    Hi,

    Declare that variable as type p with decimals 2

    data : lv_var type p decimals 2.

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:28 AM

    Hi,

    Define the fields as packed type with decimals 2.

    regards,

    Santosh Thorat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:28 AM

    if u want comma then use char

    Message was edited by:

    p498863

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:28 AM

    Hi,

    Numeric field will not accept special characters (like, comma, dot etc..)

    If comma is required, use define field as CHAR.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:29 AM

    HI,

    Declare that particular field with type P decimals 2.

    Cheers,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:50 AM

    hi

    i have given as packed decimal but it is giving

    ouptut as 0.00

    but i want out put as 000000,00

    thank u all

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.