Ansicht
Dokumentation
EXIT_SAPLEECIC_COMP00_001 - IS-U Finder in CIC: User-Exit Structure of Search Criteria
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
This function module is called in the CIC before an IS-U data finder search begins. You can add your own search criteria to the function module which then exist alongside the standard search criteria. You can also change the standard search criteria here.
To enhance the CIC to include your own search criteria, proceed as follows:
- Enhance the search criteria (DDIC structure EFINDD_CIC) by adding your search criteria to table include CI_EFINDD .
- Create a customer subscreen and add the fields from CI_EFINDD to this subscreen.
- In the function module, fill the free selection for the finder (parameter YT_FREE_SELECTIONS). You must analyze the contents of your CI_EFINDD table include and fill the free selection correspondingly.
You can specify free selections for the following tables: :
EKUN_EXT | business partner |
FKKVKP1 | contract account |
EVER | contract |
V_EANL | installation |
EVBS | premise |
V_EHAU | connection object |
EGPL | device location |
V_EGER | device |
ERDK | print document |
Example
You want to search for business partners by birth date, and have defined a field, CI_EFINDD-BIRTHDT
for this purpose. You can enter data in the field on the customer subscreen. The corresponding field
in the data finder is called EKUN_EXT-BIRTHDT. To enable the data finder to search business partners by birth date, you must fill the free selection in this function module as follows:
if not x_finder_fields-birthdt is initial.
yt_free_selections-tablename = 'EKUN_EXT'.
yt_free_selections-fieldname = 'BIRTHDT'.
yt_free_selections-option = 'EQ'.
yt_free_selections-low = x_finder_fields-birthdt.
append yt_free_selections.
endif.
Notes
If free selections have been specified then in each case the finder makes a selection in the corresponding table. You must therefore make sure that the table has an appropriate index. Otherwise, the database searches through all the records, which can lead to very long runtimes. In the above example, you must ensure that there is an index ordered by birth dates.
The standard search criteria and the free selections are used together. A UND link is carried out each time you select.
You can also change the standard search criteria (parameter X_FINDER_FIELDS). However, this is only necessary in a few cases.
Further information
Parameters
XY_SEARCH_PARAMSX_FINDER_FIELDS
YT_FREE_SELECTIONS
Exceptions
Function Group
XEECICCOMP02BAL_S_LOG - Application Log: Log header data ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 3495 Date: 20240523 Time: 054921 sap01-206 ( 44 ms )