Fonction SAP BAPI_CREDITOR_FIND - Vendor matchcode

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAX_CNT BAPI1008_9-MAX_CNT I 4 0 X Maximum number of records found
PL_HOLD BAPI1008_9-PL_HOLD C 1 SPACE X Meta character permitted?

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return code

Paramètre Reférence Long. Facultatif Description
RESULT_TAB BAPI1008_8 680 Results
SELOPT_TAB BAPI1008_7 196 Search fields

Functionality

This method is obsolete. Instead use the method found in the businessobject 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 aretransferred in table SELOPT_TAB. The vendors found are collected intable 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 acharacter 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 issearched in the vendor master record table.
This method is CASE sensitive, with the exception of the matchcodefields 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". Thesearch should be run in all company codes, and the hit list should belimited 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.