Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Several mechanisms are available for building search helps into your FAB applications.

In summary there are four options.

  1.   Search help supplied as standard within FAB.

CompanyCode

ControllingArea

CostCentre

PersonnelNo

Plant

Material

 2.  A mechanism for leveraging off existing SAP search helps.

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.  SAP Table query for search helps 

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


Following is an example of each option.

Example 1: Using search help provided as part of FAB. In the FAB Properties, select Search Help

and make use of the search icon on the Search Help.

Select one of the in-built search helps. 

 


Move to the Search Definition and bind your Company Code variable and Company Code name variable to the search.




Example 2. Use SAP transaction code SE11 and Search Help.

Search for a suitable SAP search help or create your own.

Using the SAP transaction code SE11 and the values it requires as input and

test it here before deciding to use it.




Once you have established the SAP search help that you are going to use and tested it

to see if it is fit for purpose then proceed to use it within FAB.

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



Go to the Search Definition and fill in your requirements binding the SAP Search Help variables

(seen before using SE11) to the fields on your form.



If you tick Remove Leading Zeros the data presented to the form shows without leading zeros on the key.

The value is also saved without leading zeros in the FAB form.

Later in your development  you may need to pick up the value  e.g. during a backend validation.

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.

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

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

In the FAB workbench use the Entity Set Designer icon.


This allows you to build a dynamic gateway service specific to your requirements.

In the example below two Entity Sets have been defined from within FAB using the FAB Entity Set Designer.

Add ABAP code and activate the service.

Make the Model of the service available within your FAB application.

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



  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.