‎2011 Oct 20 3:35 PM
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
‎2011 Oct 20 4:17 PM
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
‎2011 Oct 21 3:07 AM
Try with these Functional Modules
DYNP_VALUES_UPDATE
DYNP_VALUES_READ
Hope it will help your Problem.
‎2011 Oct 21 9:24 AM
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?
‎2011 Oct 22 5:42 AM
hi Herbert Schlup ,
whatever you did is correct, where you used in these FM? Try use in PAI, between chain and endchain..
‎2011 Oct 21 3:46 AM
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
‎2011 Oct 21 9:23 AM
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?
‎2011 Oct 22 6:21 PM
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
‎2011 Oct 24 10:25 AM