Skip to Content

Output format in ALV

I used to display quantity in the ALV grid.

it displays like this

Po no Quantity

10000 1

1002 1

10009 100

I need my output to be

10000 1

1002 1

10009 100

Will this be possible.

At present I used my code like this for retreiveing the quantity value

va_quan1 type P length 15 decimals 0.

va_quan1 = wa_item-quantity

wa_test-quantity = va_quan1..

Put your suggestions

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:55 AM

    Hi,

    Could you please elaborate your query?

    There is no difference between the actual and desired output.

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

    • Sriram / Susheel

      I got the value from the function module

      which will give the value 1,00

      i want only 1 from this value

      so i used two variables the first variable from the Fm and then i pass it to the final internal table

      Now i want to align in the left of the column in the ALV grid.

      HOpe u understand

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:54 AM

    hi,

    Why u r passing quantity 2 time.

    Regards

    Susheel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 11:34 AM

    Hi,

    Divide the value by 100, will get u 1. And for left alignment.

    
    gs_fieldcat-just = 'L'.
    
    

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 11:41 AM

    Hi,

    Use UNIT field in your internal table which you are using to display. Which means that you can add one more field in that internal table. YOu can get the unit field from the same table when you click on Currency/Quantity fields tab. Then this values is not appearing in the output.

    Rgds,

    Bujji

    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.