‎2012 Mar 26 7:32 AM
Hi Experts,
I have added an input element of the type CL_DD_INPUT_ELEMENT in my report program (as shown in the below screen shot). Now i want to enable F4 help for this input field
I tried using the event HELP_F4 event of the class CL_DD_INPUT_ELEMENT to capture the keystroke but my program does not seems to register the keystroke like it does for F1 or Enter key. Also in SE24, the HELP_F4 event description reads "Not yet implemented in HTML Viewer Control"
Is there a way in which i can achieve the same functionality . Will really appreciate any help in this regard.
Best Regards,
Sakshi Dogra
‎2012 Mar 26 7:45 AM
‎2012 Mar 26 7:45 AM
‎2012 Mar 26 8:17 AM
Thanks Kesavadas.
Your reply was very helpful. But again is it not possible to enable F4 Help functionality when the F4 key is pressed instead of using a button or down arrow as natural tendency of the users is to press F4 key on the keyboard.
Thanks
‎2012 Mar 26 9:41 AM
Its not possible I think so. You can try executing the same "button" logic by assigning the F4 to a function key. I have not checked this. May be you can try it once.
‎2012 Mar 26 12:40 PM
Hi Kesavadas,
I was able to achieve the F4 Help but now i am stuck at assigning the selected value back to the input field. It's not working even in the RPEGMAN001 program.
I tried using the following code for passing the selected value in the F4 Help list to the input1 but it is not working.
IF fg_changed = 'X'.
CALL METHOD input1->set_value
EXPORTING
value = g_inp_value.
ENDIF.
Am i doing it wrong or there is some other way to copy the values.
Thanks,
Sakshi Dogra
‎2012 Mar 26 12:50 PM
Hi Sakshi,
You seem to be doing it commendably However,try using it like :
input1->set_value( value = g_input_value ).
And please ensure that there is no type mismatch.
Regards,
Aastha
‎2012 Mar 26 1:16 PM
Hi,
The name of the text box in header is input1 and the value returned from search help is stored in g_inp_value. Am I correct ? Do you need to pass g_inp_value to input1 ?
‎2012 Mar 26 2:01 PM
Hi,
Use this way. For more details check the method handle_submit_buttons in program DD_ADD_FORM_INPUT
data:obj type ref to CL_DD_DOCUMENT.
CALL METHOD input1->SET_VALUE
EXPORTING
VALUE = g_inp_value.
CALL METHOD obj->merge_document.
CALL METHOD obj->display_document exporting reuse_control = 'X'.