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

ALV Quantity problem

Dear all,

Im using REUSE_ALV_Grid and displaying 2 Fields of Qyantity type as editable .

On display when i cahnge muy Quantity to '50' and press save tha value is automatically cahnged to '0.50'.

Can any one tell me what is the problem

.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 03:49 PM

    Modify the field catalog for the quantity field.

    ls_fcat-decimals = 2.

    Your ALV will then take into consideration the 2 decimal places.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 03:53 PM

    You need to associate a quantity unit field in ALV field catalog. That field must be editable too and user make an input there before press enter key.

    Regards.

    Rafael Rojas.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 03:58 PM

    Best would be take the quantity field as char type while declaring field catalog and then while saving into data base table use again quantity type.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 04:47 PM

    Put a break point on the PAI for your ALV and see what is happening

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 07:38 PM

    Just try with the input 50.00

    ( Don't type 50 , otherwise it will take 0.50 )

    Because the decimal place in quantity field is 2. you have to change it

    from 2 to 0.

    Or change the decimal place in Is_fieldcat to your own entries.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 07:49 AM

    Hi,

    U give like this

    Data : quantity type p decimals 2.

    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.