Skip to Content
author's profile photo Former Member
Former Member

Problem : How to fill value in a particular column of dynamic itab

Hi Experts,

I have created an dynamic itab using create_dynamic_table method of cl_alv_table_create class. Now in the dynamic itab created i want to fill a particular column with value from a particular column of an static internal table.

May i know how could i do this ?

Thanks in advance,

Akash

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 16, 2009 at 10:15 AM

    Hello,

    You have to use ASSIGN COMPONENT stmt for this:

    
    FIELD-SYMBOL: <VAR> TYPE ANY.
    
    "Field Symbol <VAR> points to the column COLUMN of the structure <DYN_STRUC>
    ASSIGN COMPONENT COLUMN OF STRUCTURE <DYN_STRUC> TO <VAR>. 
    
    IF SY-SUBRC = 0.
    <VAR> = STAT_STRUC-COLUMN. 
    ENDIF.
    

    Further details on SDN.

    BR,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.