cancel
Showing results for 
Search instead for 
Did you mean: 

how to link two table with Link to Action

Former Member
0 Kudos

Hi Experts,

I have a Web Dynpro table containing the status field which should have two values

status table

PASS
FAIL
FAIL
FAIL
PASS
PASS

and below it I have another table containing failed items

my question is : I want to link the first table with the second table dynamically with Link To Action, but when the status in the first table is FAIL only .

Failed items table

Failed items
failed item number 1

failed item number 2

failed item number 3

failed item number 4

failed item number 5

failed item number 6

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi,

Habeeb Ali wrote:

my question is : I want to link the first table with the second table dynamically with Link To Action, but when the status in the first table is FAIL only .

Here you need to enable link to action only if status is FAIL.

Steps to achieve this :

  1. Create an attribute ENABLE in context node of status table
  2. Bind the context attribute ENABLE to the property ENABLED of table column editor STATUS.
  3. Based on status set the value of field ENABLE

          if ls_status-status = 'PASS'      

                ls_status-enable = abap_false.

          else.

               ls_status-enable = abap_true.

          endif.

This could enable/disable the link to action cell of status table.

Hope this helps you.

Regards,

Rama

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

Apart from the steps suggested in previous post, perform the enabling/disabling of the links when the data is loaded on the Table 1 ex: while looping through the internal table and creation & binding of  elements to the table.

Regards,

Sharath