Skip to Content

Dynamic Table - Deep Structure

Hi Gurus,

this is my first posting, so be patient!

I want to create a deep structure dynamic table via method

cl_alv_table_create=>create_dynamic_table, is this possible? Are there tricks to make it happen?

Background: i wanna create an alv with dynamic fieldcatalalog, in this case i want to colour special fields, which is done by lvc_s_layo-?csp_fieldname? in combination with a field in my internal table which is typed ?lvc_t_scol?. Is this possible under 6.2.43

thanxs for your replies

juergen

- ?i dont actually know by rote the correct fieldnames of lvc_xxxxx?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2005 at 05:28 AM

    Look if this weblog gives you any help for creating a deep structure dynamic table. If you are successful, do let us know. I am quite eager to find out how you did and the venture looks interesting.

    /people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table

    Regards,

    Subramanian v.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 28, 2005 at 09:31 PM

    Hi J├╝rgen

    At the end if you aim to build an ALV Grid list, I could not understand your requirement to have a dynamic field catalog. That is because, field catalog holds metadata and its structure is predefined. You can change its contents and reflect it to your ALV Grid (using the method "set_frontend_fieldcatalog") at any instance of runtime.

    If your requirement is to create your data table dynamically, then it is insignificant whether you can create a deep-structured internal table since ALV Grid does only support flat structured (except special style table usage) data tables.

    Hope I have understood your question right...

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2005 at 12:10 AM

    Have you tried building a field catalog to pass to method create_dynamic_table, setting the last field to dictionary type lvc_t_scol? If so, did you get an error?

    If this works, you will need a field catalog without this field to pass to your ALV call.

    Let us know how it goes.

    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.