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

Reg DYNP_VALUES_UPDATE.

Former Member
0 Likes
549

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

2 REPLIES 2
Read only

Former Member
0 Likes
516

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.

Read only

Former Member
0 Likes
516

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.