Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Output format in ALV

UmaArjunan
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Could you please elaborate your query?

There is no difference between the actual and desired output.

Thanks,

Sriram Ponna.

5 REPLIES 5

Former Member
0 Kudos

hi,

Why u r passing quantity 2 time.

Regards

Susheel

Former Member
0 Kudos

Hi,

Could you please elaborate your query?

There is no difference between the actual and desired output.

Thanks,

Sriram Ponna.

0 Kudos

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

Former Member
0 Kudos

Hi,

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



gs_fieldcat-just = 'L'.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

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