10-24-2006 3:45 PM
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
10-24-2006 3:47 PM
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
10-24-2006 3:56 PM
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
10-24-2006 3:48 PM
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
10-24-2006 4:01 PM
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
10-24-2006 4:08 PM
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.