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

how to restrict floating variable

Hello Abapgurus,

I need to restrict floating values to 2. and any DataElement aviable for Pack type.Please give your valuable suggestions to solve my problem.

waiting for your favourable replies.

Regards

Maruthi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:45 AM

    data: amt(6) type p decimals 2.

    amt = itab-amt.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 05:47 AM

    hi,

    try this.

    DATA V_PD TYPE P DECIMALS 2

    Regards

    anver.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:47 AM

    Hi,

    Please use FLAP with 2 decimals dataelement.

    You can search for dataelement. I found following dataelement.

    ACC_COV

    While displaying the floating value you can format as 2 decimal value.

    write <flaot variable> to <decimal varibale> 2 decimals.

    Regards

    Bhupal Reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:56 AM

    hi maruthi,

    i am not getting u exactly . if u need a data element corresponding to pack type, do as follows .

    goto se11 and in domain field give as PACK and press f4 . u will get a series of list of domains . there will be domains of ur requirements . to know the data element select the domain and choose display .

    u will get to the main screen of domain and select WHERE USED LIST icon . u will get an option of domain in which u can choose from that .

    regards

    magesh

    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.