SAP ABAP – Elementary Search helps

An elementary search help is exactly one combination of fields that will be used to determine the needed value.

Creation of  elementary search help.

1)  Go to the ABAP Dictionary: Initial Screen from the ABAP Development Workbench (Transaction Code SE11).

2)  Select the “Search helps” radio button.

3)  Enter a name for your search help.  It must begin with the letter Y or Z, and can be up to 30 characters.

4)  Hit the Create pushbutton.

5)  Select Elementary or Collective search help in the next screen.

  • Like with most objects in the Dictionary, you can also decide to make a search help at any point while in the Repository Browser.  It will assume you want to save your object under the development class you are browsing at the time.

 

  • The following are new terms you will see when you define your search help:
  • Hot key (optional) – Use this number to code values for the complex dialog box all in the original search field.
  • Selection method – The name of the table or view that holds the data that will form your help hit list.  The fields from this table/view will be used in the interface parameters.
  • Text table – If there is a text table available for your main Selection Method table, it will appear here.  You can then use its fields as well in defining your search help path.
  • Search help exit (optional) – A function module that enhances the typical processing of the search help.  Not commonly used.
  • Dialog Type – Controls how you see your results.  The options are:
  • D – immediate hit list of valid values
  • C – dialog box where you can narrow down your search, followed by the hit list
  • A – if there are less than 100 matches, acts like D, if more than 100 matches, acts like C
  • The interface parameters are covered in more detail on the next slide.
  • Search help parameters – Indicate all the values you will be passing to and from the search help.  When you click in the cell, a drop down arrow will appear.  This will give you a list of fields from your selection method table.  If you type in your parameters manually, be sure that they have the same name as the fields in the table.
  • IMP – Indicate parameters as import if you want to pass them from the initial screen to the search help to be used as search criteria.
  • EXP – Indicate parameters as export if you want them to be passed back to the screen from the search help.
  • LPos – Indicate which order on the hit list you want this parameter to be displayed at.  For example, value 3 means the parameter will be the third column of information in the hit list.
  • SPos – Indicate which order on the dialog box you want the data associated with this parameter to be displayed at.  If you leave this empty, the parameter will not be displayed on the dialog box.
  • SDis – If checked, this sets the parameter to display only.  That means the user will be able to see the value, but it will be grayed out, and the user cannot enter anything in the field.
  • Default value – Set literal in quotes, system field, or parameter ID as default.

0 Comments

Leave A Reply