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

Search Help

Former Member
0 Likes
232

Sir,

this code is working properly . But I want serch help

on two,three values means two three valuse in single row

in search help window just like sales order (VA02) help

on purchase document, sales order, distribution challan,sales office

like that.

Manoj.

    REPORT  YKC_SEARCH_HELP.
DATA: BEGIN OF IT_FINAL OCCURS 0,
      WERKS TYPE MARC-WERKS,
      END OF IT_FINAL.
data: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH header line.
parameters: p_werks(10) type c.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.

  select  werks from marc
  into table IT_FINAL.
  delete adjacent duplicates from IT_final comparing werks.


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
      RETFIELD               = 'WERKS'   "field of internal table
     VALUE_ORG              = 'S'
    TABLES
      VALUE_TAB              = IT_FINAL
*   FIELD_TAB              =
     RETURN_TAB             = IT_RETURN
            .
 WRITE IT_RETURN-FIELDVAL TO P_WERKS.
  REFRESH IT_FINAL.

1 REPLY 1
Read only

Former Member
0 Likes
202

Hi,

Refer this link and create a search help in SE11.

[http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm]

You can code to get the other values in the Search Help Exit.

If your requirement is very similar to that you have seen on standard transactions, then try to find the standard search help and use it in your code.