Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem refreshing field on screen

Former Member
0 Likes
1,119

Dear all

I have a dynpro where I have a container in the lower screen with a tab.

On the upper screen I have a simple field holding a variable.

when I do a modification on the table on the lower field, i like to refresh the value in the simple field.

Changing the variable, don't change the field value. (only when I move over to the field and press enter).

How can I refresh this?

thank you

Herbert

8 REPLIES 8
Read only

Former Member
0 Likes
1,031

Hi

There is no ON FOCUSE EXIT events in ABAP

so you need to use POPUP_GET_VALUES Function Module in PBO once you give a value and press enter you can refresh the screen if there is no change in Value you need to refresh the Screen

Hope this would serve your purpose

Cheerz

Ramchander Rao.K

Read only

surajarafath
Contributor
0 Likes
1,031

Try with these Functional Modules

DYNP_VALUES_UPDATE

DYNP_VALUES_READ

Hope it will help your Problem.

Read only

0 Likes
1,031

Here is what I did

CLEAR l_dynpfields.

REFRESH l_dynpfields.

l_dynpfields-fieldname = 'W_DISPOF'.

l_dynpfields-fieldvalue = w_dispo.

APPEND l_dynpfields.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = 'ZSDAT01'

dynumb = '9000'

TABLES

dynpfields = l_dynpfields

EXCEPTIONS

CLEAR l_dynpfields.

REFRESH l_dynpfields.

l_dynpfields-fieldname = 'W_DISPOF'.

APPEND l_dynpfields.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'ZSDAT01'

dynumb = '9000'

tables

dynpfields = l_dynpfields

The FM DYNP_VALUES_READ gives me the value back of my field. But the Update does not refresh the screen..... strange. Any ideas?

Read only

0 Likes
1,031

hi Herbert Schlup ,

whatever you did is correct, where you used in these FM? Try use in PAI, between chain and endchain..

Read only

Former Member
0 Likes
1,031

Hi,

Make sure you change the variable before the PBO and check whether the PBO of the screen of that simple field is triggered.

You can check this by debugging.

Regards,

Karthik D

Read only

0 Likes
1,031

There is no PBO called after t he change of the variable... as it's not on the same Dynpro i guess.

Can I force a PBO?

Read only

Former Member
0 Likes
1,031

Hi,

Can't you just call the function SAPGUI_SET_FUNCTIONCODE after you have changed your variable?


  CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
   EXPORTING
     FUNCTIONCODE                 = '=ENT'
   EXCEPTIONS
     FUNCTION_NOT_SUPPORTED       = 1
     OTHERS                       = 2.

Kr,

Manu

Read only

0 Likes
1,031

ok, a combination of all this worked