Application Development 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: 

How can I populate main screen fields accdng to value frm subscreen field?

Former Member
0 Kudos

Hi All,

I need to populate some main screen fields according to values obtained from a subscreen drop-down field.<b>I require to do this without any 'ENTER' or 'SAVE' triggers of main screen</b>.That is,once a value is selected from the subscreen drop-down field ,some of the main screen fields should get populated.the The subscreen is called from the main screen PBO using 'CALL SCREEN'.Can anyone help me in this.

Thanks in advance,

Anjaly

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

YOu have to make use of the function modules:

DYNP_VALUES_READ Read screen field values before PAI field transport

DYNP_VALUES_UPDATE Change screen field contents w/o PBO

Each of which is very well documented.

Regards,

ravi

0 Kudos

Hi Ravi,

Thanks a lot for your reply.Can you please be a little more clear on where to write this READ and UPDATE FM's?

Thanks,

Anjaly

Former Member
0 Kudos

Hi

U should call the search help (drop-down list) in POV event and here use the fm DYN_VALUE_UPDATE to update others fields.

Max

0 Kudos

Hi Max,

Thanks for ur reply.But I am using a drop-down list and hence not using F4.Hence how can I use a POV event?

Anjaly

0 Kudos

Hi

U can triggered the drop-down in POV.

PROCESS PAI.

FIELD <FIELD>.

PROCESS ON VALUE-REQUEST.

FIELD FIELD MODULE F4HELP_FOR_FIELD.

MODULE F4HELP_FOR_FIELD.

-


> Call search help: see the fm VRM_* to manage dropdown list

DATA: DYNAME LIKE D020S-PROG,

DYNUMB LIKE D020S-DNUM.

DATA DYNPFIELDS LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.

DYNPFIELDS-FIELDNAME = <other field name>.

DYNPFIELDS-FIELDVALUE = <value>.

APPEND DYNPFIELDS.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = DYNAME

DYNUMB = DYNUMB

TABLES

DYNPFIELDS = DYNPFIELDS.

ENDMODULE.