Find
This method is obsolete. Instead use the method found in the business object KNA1 or the function module BAPI_CUSTOMER_FIND.This method finds all customers that have stored transferred contentsin a transferred field of a transferred table. The search terms are transferred in structure SELOPT_TAB.
Any blocks or deletion flags found for these vendors are marked. The number of hits can be limited using parameter MAX_CNT. The figure 0indicates that there is no limit set to the number of hits. In the standard system, an exact search is run for the field contents
(field SELOPT_TAB-FIELDVALUE). If you select the PL_HOLD parameter, youpermit the use of the meta character, which means that "*" masks a character string, and "+" masks a character. Each search term is processed separately and is not linked with other
search terms. In each case, therefore, no more than one field is searched in the customer master record table. This method is CASE sensitive, with the exception of the matchcode fields maintained in table TFMC. ExampleYou want to find the customers which have the value "23" in field
KNB1-PERNR (personal number) in company code 0001. The system shoulddisplay all customers found. The search should be run exactly, that is, without using meta characters. Required entries:
Table SELOPT_TAB Field Content ----------------------------------------- COMP_CODE 0001
TABNAME KNB1 FIELDNAME PERNR FIELDVALUE 23
IMPORT parameters MAX_CNT 0 PL_HOLD SPACE Transferring the IMPORT parameters MAX_CNT and PL_HOLD is optional, because the above values are the same as those in the standard system.
- You find to find the customers whose LFB5-LFRMA field (dunningrecipient's account number) begins with the character string "SAP". Thesearch should be run in all company codes, and the hit list should be limited to a mximum of 100. Meta characters may be used.
Required entries:
Table SELOPT_TAB Field Inhalt ----------------------------------------- COMP_CODE SPACE TABNAME KNB5 FIELDNAME KNRMA FIELDVALUE SAP*
IMPORT parameters MAX_CNT 100 PL_HOLD X You must transfer the import parameters MAX_CNT and PL_HOLD because the above values are different to those in the standard system.
|