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

f4 help

hi,

i have created a ztable in se11.

i have a field called zid.

now on my selection screen i want a f4 help for p_zid (parameter) field displaying the values which are present in the ztable for the zid field.

for that i ve to create f4 help in the ztable for the available values.

how can i get those?

thanls in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Dec 03, 2007 at 01:47 PM

    hi Sneha,

    in SE11 you have to maintain the search help for the field you created. Then it will appear automatically, if you place this field as parameter (or select option) on a selection screen.

    PARAMETER : p_zid TYPE ztable-zid.

    if it does not work you can add:

    PARAMETER : p_zid TYPE ztable-zid MATCHCODE OBJECT name_of_the_search_help.

    hope this helps

    ec

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sneha,

      1. Import Perameter : This flag is used to Read the Values from table

      Export Parameter : This Flag is used to get the value in your field

      when you double click the value

      in Posible values (f4).

      2. Lpos,Fpos : One is Line Position and another is Field Position.

      Ex: If you want to display carrid , connid in your f4 button

      if Lpos Fpos

      Carrid 1 2

      Connid 2 1

      In Selection Screen Carrid -


      Connid -


      In F4 Selection Connid | connid

      -


      | -


      Plz Reward if help,

      Mahi.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 01:54 PM

    Hi ,

    Try this..

    Eg:

    PARAMETERS Matnr TYPE mara-matnr MATCHCODE OBJECT Mat1.

    Here, Mat1 is the search help for Matnr which Has defined as the Search help.

    Rgards

    Bala.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:22 PM

    Try this code...

    TABLES : ztab.
    
    TYPES: BEGIN OF itab,
    zid TYPE ztab-zid,
    END OF itab.
    
    DATA: itab TYPE STANDARD TABLE OF itab WITH HEADER LINE.
    PARAMETERS: p_zid TYPE ztab-zid.
    
    
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_zid.
      SELECT zid FROM ztab INTO TABLE itab.
      SORT itab.
      DELETE ADJACENT DUPLICATES FROM itab.
    
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'ZID'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'P_ZID'
          value_org   = 'S'
        TABLES
          value_tab   = itab.
      IF sy-subrc <> 0.
        "some message
      ENDIF.
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 02:38 PM

    What you asked for, may look like

    1-Create the search help

    Give the field zid as import/export parameter

    Add a text field not as parameter but as a displayed field

    2-In the PARAMETERS instruction use the clause MATCHCODE OBJECT

    Other ways to perform it

    - In your Z-table define zid as a foreign key on himself

    - In the domain definition of zid give the ztable as a table of value

    - Create the search help and add it to data-element definition

    - Use function modules like F4IF_INT_TABLE_VALUE_REQUEST in an AT SELECTION-SCREEN ON VALUE REQUEST event.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

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.