‎2005 Jun 27 2:13 PM
i have two fields in my screen.i have to enter a value in the first field and all the values pertaining to the first field should come in the second field as a F4 help.
After i enter a value in the first field,all the values in the second field are getting populated in the form of a F4 help only after the press of enter button.how to do it without the press of enter button.can any one of u please provide help on this to how to go about and provide some sample code.
Thanks.
‎2005 Jun 27 2:31 PM
Hello,
I think instead of doing it at the enter event why can't you use the process on value request event in which once the user presses the F4 key then you go and fetch the values from your earlier field.
Regards,
Shekhar Kulkarni
‎2005 Jun 27 3:33 PM
Hi Murthy,
This is a very common problem. The reason is that the data entered on the screen will not be available in the program till the PAI event is triggerred (in your case, the enter key does it).
However, this problem can be bypassed using the Function Module DYNP_VALUES_READ. This FM is very well documented. You need to get the data entered for the first field using this FM. This code should be written in the AT SELECTION-SCREEN ON VALUE REQUEST event for the second field in question.
Regards,
Anand Mandalika.