Find
This method is obsolete. Instead use the method found in the business object LFA1 or the function module BAPI_VENDOR_FIND.This method finds all vendors that have stored transferred contents ina transferred field of a transferred table. The search terms are
transferred in table SELOPT_TAB. The vendors found are collected in table RESULT_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 othersearch terms. In each case, therefore, no more than one field is searched in the vendor master record table. This method is CASE sensitive, with the exception of the matchcode fields maintained in table TFMC.
Example- You want to find the vendors which have the value "23" in fieldLFB1-PERNR (personal number) in company code 0001. The system shoulddisplay all vendors found. The search should be run exactly, that is, without using meta characters.
Required entries:
Table SELOPT_TAB Field Content ----------------------------------------- COMP_CODE 0001 TABNAME LFB1 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 vendors whose LFB5-LFRMA field (dunningrecipient's account number) begins with the character string "SAP". The
search 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 LFB5 FIELDNAME LFRMA 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.
|