Skip to Content

WD4A Dynamic programming

In my web dynpro application, I'm using 2 ALV components usage.

1 to display a list of articles according to the selection-criteria.

1 to display the quota scale of the selected article of the first ALV.

I could seperate the logic in different WD components for better reusability, but let's say for now everything is in one WD component.

The second ALV (quota scale) will be editable. The user can change the qty and I have to save this data to my context for eventual posting. The quota scale here represent how many articles should we received in a prepack by color and size.


BLACK 1 2 2 1 1

RED 1 1 1 1 1

WHITE 1 3 3 4 4

Now I must create my context, I will have a node ARTICLES(O:N) for the first ALV and a second node QUOTA_SCALE(O:N)

Displaying the table as COLOR SIZE QTY will be much easier. But I want to represent it as a matrix.

Here is my problem:

Depending on which article you select, the size could change, so it means the columns for sizes will have to be created dynamically.


When an article is selected, I retrieved the quota scale in and internal table (color size qty).

After I will have to create the context dynamically ??? and represent the data as a matrix......

Do you have any idea about how can I handle that??



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 16, 2008 at 02:36 PM

    Have a look at how Mr. Jung is doing it in his SE16 emulator.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • The ALV component context data node can only be map to a node that contains only attributes, no sub-node.

      So I can't create a dynamic sub-node (quota_scale) under my context node articles.

      I will create another context node (articles_quota) as a main node.

      After populating the first context node articles, I will populate the second context node (articles_quota), this context node will only contains the articles number and a sub-node that will be created dynamically for the quota scale.

      Now, If a user select an article from the first ALV, I will have to find this article in the other context node where I will build my sub-node quota-scale, then this sub-node will be bind to the second alv component usage dynamically,

      what do you think?

      I have to find a way of cross-referencing from my first context (articles) to another context (articles_quota)??


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.