cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically value change in Non-Tabsrip Field when changes done in Tab-strip Field

bipin_poddar
Explorer
0 Kudos

Hi Abap Gurus !

In one of the tab-strip screen where 3 columns are there. The 3rd column is editable.Corresponding to a certain row  there is a another field where I have to show the calculation of  3rd column & 2nd column.

If I edit 3rd column's field value the related effect should be shown in the that separate field by an enter-key stroke.

How could it be done ?

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Bipin,

In the 'on enter' event of the 3rd input field, please write the logic to add up the 3rd and 2nd column, and bind the sum to the corresponding attribute.

The current values of the element for which the enter event is being triggered, can be fetched by,

data lo_element type if_wd_context_element.

lo_element = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).


When you add up and bind, the updated values will be shown on the table, automatically.


Regards,

Harsha