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

hi

hi,

how to create a search help to a field in se38?

Regards,

kb

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 12:42 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2007 at 12:43 PM

    Just like this.

    
    report zrich_0001 .
    
    tables: t001.
    
    data: begin of it001 occurs 0,
          bukrs type t001-bukrs,
          butxt type t001-butxt,
          ort01 type t001-ort01,
          land1 type t001-land1,
          end of it001.
    
    select-options s_bukrs for t001-bukrs.
    
    initialization.
    
      select bukrs butxt ort01 land1 into table it001 from t001.
    
      sort it001 ascending by bukrs.
      delete adjacent duplicates from it001 comparing bukrs.
    
    at selection-screen on value-request for s_bukrs-low.
    
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'BUKRS'
                dynprofield = 'S_BUKRS'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = it001.
    
    start-of-selection.
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2007 at 01:07 PM

    simple create a SEARCH HELP using SE11 or go for the FM F4IF_INT_TABLE_VALUE_REQUEST.For the fields which are already defined in the SAP(like MATNR and VBELN) no need to create search help.Search help maximum of the times only created on Primary keys.If you created a Z table then you have to create a search help if you want F4 Functionality.In the program you use that using MATCH CODE OBJECT .

    <b>SAMPLE CODE FALLOWS.</b>.

    supose you created a ZTABLE ZTAB1 and for the primary key field FIELD1 you create a <b>SEARCH HELP ZSEAR1.</b>

    data: lf_field1 type field1.

    select-options: so_field1 for lf_field1 MATCH CODE OBJECT 'ZSEAR1'.

    <b>REWARD POINTS IF HELPFUL.</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:30 PM

    thanks

    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.