Skip to Content
author's profile photo Former Member
Former Member

Value help for input field

Hi,

I want to set a value help for a input field.

I want to select data from an itab and set that itab as value help.

Plz any one Help me.

Thanks & Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 03:09 AM

    Hi sreeram,

    In BSP youcan't do this directly as in aBAP.

    U have to design one BSP page ,that displays the records from the table . If u select any one of the field you want that it shd be mapped to field in the Original page .

    I hope this is the way to acieve search help.

    If u need sample code , i will help.

    Regrds,

    J.

    Do Award points for helpful answers.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 04:42 AM

    Hi sree ram,

    You can try this way round roughly..you can set a help to select data into a input field by adding a small button adjacent to the input field and by clicking the button Java script is executed and a pop up window is opened which in turn is a page with flow logic with a table view showing the content of the value help internal table itab. Then from that pop up window upon selection of the field again java script is executed, to get the selected value on the input field.

    Hope this helps. For futher help you can revert back.

    Regards,

    Ravikiran.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 04:53 AM

    Hi,

    The other way you can build a htm page in which you can fill up the values from your itab in column order (or any other design you want). and then pop up this window using javascript on the various client side events of the inputfield (like OnBlur(), OnFocus etc) or put a button next to it.

    when the user selects a value in popup the input field will automatically filled up.

    if you want javascript code to implement it reply,

    hope this will help you, else reply.

    Regards,

    Hemendra

    Add a comment
    10|10000 characters needed characters exceeded

    • *give an id to ur form

      <htmlb:form id = "myTest">

      *in page layout enable f4 help for input field

      <htmlb:inputField id = "MATNR"

      value ="<%=txt_Matnr%>"

      showHelp = "X"

      onValueHelp="return htmlbSL(this,2,'F4EVENT:helpERNAMClick');" />

      *declare a variable in page attribute

      gv_valuehelp_visible type boolean.

      *in onInputProcessing set this variable

      if event->id = 'F4EVENT' .

      gv_valuehelp_visible = 'X'.

      ENDIF.

      *IN LAYOUT open a new window if it is set

      <% IF gv_valuehelp_visible = 'X' . %>

      <script>

      var result = window.open("mm_F4help.htm", "helpWindow", "top=320,left=300,height=300,width=500,status=no, menubar=no");

      </script>

      <%ENDIF.%>

      *In F4help page create a tableview and pass ur internal table

      *create two variable in page attribute

      window_close type boolean.

      gv_field_value type string.

      *on selection event of table view

      set window_close to 'X'and gv_field_value to selected row of tableview .

      *in layout write script to close this window if close_window is set

      <% if close_window = 'X'.

      clear close_window .

      data fieldid type string.

      fieldid = 'MATNR'."input field id

      %>

      <script>

      opener.document.forms["myTest"].FIELDID.value

      = '<%=gv_field_value%>';

      window.close();

      </script>

      <% endif. %>

      I hope it will help u.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.