Skip to Content
avatar image
Former Member

Dynamic Rows and Columns in ALV using vendor number

Hi Experts,

Could some one help me to populate the dynamic alv using vendor and document number. my requirement is as in below screenshot..


Dynamic Alv.JPG (23.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 30, 2014 at 05:42 AM

    Hi Experts,

    Could you please let me know, how can I display the values as below in ALV?.

    I have a vendor and quotation values in GT_EKKO table. please provide me if any code similar to this.

                


    Vendor



    110004994



    110004995



    110004996



    Quotation No.



    6000000715



    6000000716



    6000000717


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2014 at 10:58 AM

    hi siva,

    I think you should try to make this report using alv hierarchical grid.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 10:59 AM

    Hi Siva,

    below is the process to create a dynamic internal table.

    1. Create a variable LVC_T_FCAT.

    2. Append the total No of Vendor Information and give a proper FIELD_NAME (like Vendore No).

         parameters:     fieldname

                                 intlen

                                datatype

                              

    3. Use below class to create internal table

        

         Cl_ALV_TABLE_CREATE=>create_dynamic_table

         exporting

              it_fi** = LVC_T_FCAT

         importing

              ep_tab** = t_table (type data)

    4. assign T_table->* <it>

    5. create data wa(type data) Like line of <IT>.

    6. Assign wa->* <WA>.

    after table to update the information in your dynamic table, use below statement (to read / update ).

    ASSIGN COMPONENT (FIELD_NAME) of STRUCTURE <WA> to <VAL>

    Hear <val> type any.

    Regard.

    Praveer.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2014 at 11:15 AM

    Hi Siva,


    How to create a dynamical internal table refer this link, http://wiki.scn.sap.com/wiki/display/Snippets/Example+-+create+a+dynamic+internal+table

    And populated value to this dynamical itab, you need this grammar, 'ASSIGN COMPONENT fieldName OF STRUCTURE <dyn_wa> TO <fs>'.

    regards,

    Archer

    Add comment
    10|10000 characters needed characters exceeded