Application Development and Automation 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: 
Read only

F4 Help in Dynamic Document

Former Member
0 Likes
1,399

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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,273
Hi,
You can refer example program RPEGMAN001( Refer the local class lcl_html_header & method handle_button_f4 ). You will find the function module HELP_START being called for this . You can see the down arrow button near to the text box. Its just as similar to the f4 help in se80 input field. For an example refer program DD_ADD_FORM_INPUT where you can see the execute button near to the text box. Replace this execute button with F4 help functionality.
7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,274
Hi,
You can refer example program RPEGMAN001( Refer the local class lcl_html_header & method handle_button_f4 ). You will find the function module HELP_START being called for this . You can see the down arrow button near to the text box. Its just as similar to the f4 help in se80 input field. For an example refer program DD_ADD_FORM_INPUT where you can see the execute button near to the text box. Replace this execute button with F4 help functionality.
Read only

0 Likes
1,273

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

Read only

0 Likes
1,273

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.

Read only

0 Likes
1,273

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

Read only

0 Likes
1,273

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

Read only

0 Likes
1,273

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 ?

Read only

0 Likes
1,273

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'.