Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: you can also build your own customized search help within SAP and then use the custom search help created from your FAB application.

 *SAP Search Help

 3.  Designing   SAP Table query for search helps 

 4.  Designing and building your own Entity Sets from within FAB. 4.  CustomSearchHelp


Following is an example of each option.

...

TIP: Remember to give any select in the  backend the full variable value (including leading zeroes).


Example 3. Query from SAP Table  for search helps.

Identify the table that needs to be used.

On the FAB UI control where you want to initiate a search choose *SAP Table Search Help.

Image Added

Set the Search Definition property

Enter the title of the search help
Enter the relevant table to select the records from
Provide the where condition that needs to be implemented
Assign the exporting parameters

Image Added

Example 4. FAB Entity Set Designer. Build a Model from within FAB that you can use to retrieve data from SAP tables.

...

For details on how to proceed after defining your Entity Sets refer to the ‘How To Article’ – Dynamic Model/oData Service in the documentation.

Example 4. This search help depends on FAB class ZCL_IQX_SH_DATA and method GET_GENSEARCHHELP.

Within this method the system makes use of the standard SAP function module BAPI_HELPVALUES_GET.

FAB sends a string delimited by a colon (:) on the field required in the search.

Image Removed

Image Removed

Image Removed

Refer to FAB demo SEARCH_HELP_DEMO where the service is defined.

Also make use of the Data Provider Class provided with FAB that uses 

Class ZCL_IQX_SH_DATA and Method GET_GENSEARCHHELP to achieve the

required outcome.

Image Removed

 

The Standard SAP function module in use within the GET_GENSEARCHHELP method

is BAPI_HELPVALUES_GET.

call function 'BAPI_HELPVALUES_GET'
    exporting
        objtype                       = lv_objtype
        field                            = lv_field
        method                       = lv_method
        parameter                   = lv_parameter
        explicit_shlp                = lv_sh
    tables
        selection_for_helpvalues     = i_sel
        helpvalues                            = i_helpvalues
        values_for_field                    = i_values_for_field
        description_for_helpvalues  = i_desc.

Input to the SAP function module:

Image Removed

Results are returned in i_helpvalues and mapped back into FAB.

Experiment with the standard SAP function module before you weave its use into your FAB application.

Image Removed

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@223dfe
showSpacefalse
sorttitle
typepage
cqllabel in ("odata","input-control") and type = "page" and space = "IFAB"
labelskb-how-to-article