‎2006 Oct 26 4:49 PM
Hi all,
Does the FM DYNP_VALUES_UPDATE work only with the same screen?My requirement is to update the field values of a main screen according to the value selected from a drop-down in a subscreen.I am able to update values of the same subscreen using this FM but not other screens.Can anyone tell me whether it will work.
Thanks in advance,
Anjaly
‎2006 Oct 27 11:58 AM
Dear Anjaly,
I think it should work.But if it is not then u can use another method.
eg : ur main Program is ZMAIN_PGROGRAM.
And the field u want to update is MYFIELD.
MY_VALUE is the value u need to assign to MYFIELD.
so u can use .
DATA : FLD_NAME(60).
FIELD-SYMBOLS : <FS> TYPE ANY.
FLD_NAME = '(ZMAIN_PGROGRAM)MYFIELD' .
ASSIGN (FLD_NAME) TO <FS>.
IF SY-SYBRC EQ 0.
<FS> = MY_VALUE.
ENDIF.
‎2006 Oct 27 1:20 PM
Hi Anjaly,
nomally this function module uses to update same screen.
if you want to change values in other screen, directly change the values of the variable it self.it will do.
and assign the sceen field to the program variable.
-Anu.