‎2009 Mar 12 7:37 AM
Hi All,
I have a select option and a parameter on the selection screen. The parameter is disabled for input and enabled for output. The F4 for the the select option has a numeric value and a corresponding text (comes from a standard function module). When I select a value from F4, the numeric value should go to the select-option and the text should go to the input disabled parameter.
At the moment, I am having to press an enter after choosing F4, for the text to reflect in the parameter field. I need both of them displayed at the same time, without having to press an enter.
Please guide me about how I could achieve this.
Thanks and Regards,
Vidya.
‎2009 Mar 12 7:48 AM
Hi,
I guess this cant be achieved. You have to press ENTER to get the text in input disabled field once you provide a valid value to the field.
Regards,
Tarun
Edited by: Tarun Gambhir on Mar 12, 2009 1:18 PM
‎2009 Mar 12 8:39 AM
hi
i think it cannot be achieved without pressing the ENTER button,
bcz u might have
AT SELECTION-SCREEN ON VALUE-REQUEST FOR select-option-low, u have defined only the select-option for F4 input help,not the parameter & this event is triggered in PBO.
only after pressing the 'ENTER' u get the text in parameter as this ENTER button is triggerd in PAI.
Regards
‎2009 Mar 12 9:43 AM
‎2009 Mar 13 8:18 AM
Hi Vidya,
As per the above description your requirement is to display the text of the selected numeric value in the input disabled parameter without pressing 'enter'. Generally this type of requirement can be achieved by using MODIF ID in case of radio buttons. When you select one radio button having modif id it will trigger the selection screen output event and you can cpde as per your requirement. But in your case you are trying to achieve this by selecting value from F4 help. This is not possible because modif id event will trigger only if you select particular field like in case of radio buttons.
Thanks
Sankar
‎2009 Mar 14 6:14 AM
use this code in your F4 Help of Select Option after F4 Help Function Module .
DATA SCR_FIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
SCR_FIELDS-FIELDNAME = ur parameter Name.
SCR_FIELDS-FIELDVALUE = ur parameter value(ur Text Field)
APPEND SCR_FIELDS.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = PROG_name
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = SCR_FIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
So you need not have to press Enter
Regards,
Alpesh
Edited by: Alpesh on Mar 14, 2009 11:44 AM