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: 

alv addition of column

Former Member
0 Kudos

Hi friends,

I have a senario in alv,

I have 10 columns in my alv report.

iam uisng grid display.

iam getting all the values from internal table ITAB1.

now my requiremnet is i need a 11th column an it should be a combination of 8 , 9 , 10 column.

ie : 11th column = ( 9th column / 10 column ) * 8th column.

i knw have to store that value in varible and should take the varible into ITAB1

how can i do that.

can any one help me out.

regards,

priyanka.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

have an extra field to store the the detail for extra column.

populate the extra field value based on the formula you have.

*11th column = ( 9th column / 10 column ) * 8th column.*

now populate the fieldcatalog for this extra column also along with others.

call the Function and display the extra column.

summary

1. add the extra field in itab

2. loop at internal table and populate the extra field

3. populate fieldcatalog for this extra column.

4. display it.

1 REPLY 1

former_member188685
Active Contributor
0 Kudos

have an extra field to store the the detail for extra column.

populate the extra field value based on the formula you have.

*11th column = ( 9th column / 10 column ) * 8th column.*

now populate the fieldcatalog for this extra column also along with others.

call the Function and display the extra column.

summary

1. add the extra field in itab

2. loop at internal table and populate the extra field

3. populate fieldcatalog for this extra column.

4. display it.