Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Generating dynamic columns in ALV Report

$
0
0

Hi All,

 

Can any one guide me how to display the ALV Report based on the values in internal table.Here in my report(PP Module) the selection screen is the Material Number only.after executing this report, it will show the different defects for that particular material.That means based on the material the number of defects in different columns will be appeared.

 

eg1.

                                                   def1    def2   def3   def4

Material-1                                      1        2        4       0

Material-2                                      3        0        6       2

 

here i need to generate the columns dynamically based on the defect values for each material.

 

eg.2

                                                   def1    def2   def3   def4   def5

Material-1                                      1        2        4       0       0

Material-2                                      3        0        6       2       0

 

 

in the above eg.2 the two materials are not having def5 value (i.e ZERO) then no need to display, if the values is present for at least one material  like in  eg.1 for Material-2 (for Def4) then that column should be displayed. Hope my query so clear with the above examples....and please let me know the solution and more over i am using reuse_alv_grid_display for this report. if not possible with this FM then atleast suggest me some code snippet using oops....

 

Thanks in Advance


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>