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

How to create Dynamic ALV List

$
0
0

Hello Folks,

 

Need to create a Dynamic ALV List where first 5 columns are fixed whereas the count of remaining no of column are not fixed.

 

E.g.  ALV List Table Structure

 

DATA: BEGIN OF bestand OCCURS 0,

         Matnr LIKE mara-matnr,
         Werks LIKE t001w-werks,
         Charg LIKE mchb-charg,

         FieldValue1 type string,

         FieldValue2 type string,

         FieldValue3 type string,

         FieldValue4 type string,

         FieldValue5 type string,

         .

         .

         .

         FieldValueN type string,

 

DATAEND OF bestand.

 

How to set the 'N' nos of FieldValue with Column Header Transposed in a single row of ALV like below??

                                                                 ALV List Table/Column Fields

                                                                                    |

                                     MatNo   Plant    Batch    Characteristics1   Characteristics2  ......   CharacteristicsN

ALV List Table/Data ->     Matnr   Werks   Charg      FieldValue1          FieldValue2      .......    FieldValueN

      

 

 

Thanks !!


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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