Check your lt_outmap when you select the F4 value help second time in debug mode. Is the mapping between fields here are correct.
This may be the reason value in field B is not getting changed , because iv_output_mapping is responsible for mapping the values in F4 with the UI fields when we select any value in the F4 .
Hope it helps.
Thanks
Kumar.