Fonction SAP BAPI_VENDOR_FIND - Vendor Matchcode

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAX_CNT BAPIVENDOR_12-MAX_CNT I 4 0 X Maximum Number of Records Found
PL_HOLD BAPIVENDOR_12-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 BAPIVENDOR_11 680 Results
SELOPT_TAB BAPIVENDOR_10 196 Search Fields

Functionality
This method searches for all vendors, that store a transferred contentin a transferred table field. The search terms are transferred instructure SELOPT_TAB. The vendors that are found are collected in thetable RESULT_TAB.
The probable blocks or deletion flags will be marked for the vendorsfound.
The number of hits can be restricted by the parameter MAX_CNT. Value"0" means that there is no restriction on the search result.
The standard search is for the exact field content (FieldSELOPT_TAB-FIELDVALUE). If the parameter PL_HOLD is selected, the useof wild cards is allowed. "*" is for any character string and "+" forany character.
The search terms are processed individually and not joined to othersearch terms, that is, only one field from the vendor master table isexamined at a time.
The method is case sensitive with the exception of the match codefields that are maintained in the table TFMC.

Example
Vendors should be found that have "23" in the field KNB1-PERNR(personnel number) for the company code 0001. All the vendors that arefound should be displayed. The search should be carried out exactly,that is, without match codes.
The required entries:
Table SELOPT_TAB
Field Content
-----------------------------------------
COMP_CODE 0001
TABNAME LFB1
FIELDNAME PERNR
FIELDVALUE 23
IMPORT Parameter
MAX_CNT 0
PL_HOLD SPACE
The transfer of import parameter MAX_CNT and PL_HOLD is optional, as
the values named above correspond to the standard settings.
Vendors should be found that have that "SAP" at the beginning of fieldKNB5-KNRMA (account number of the dunning recipient). The search shouldbe cross-company code and the number of hits should be restricted to100. The use of wild cards is allowed.
The required entries:
Table SELOPT_TAB
Field Content
-----------------------------------------
COMP_CODE SPACE
TABNAME LFB5
FIELDNAME LFRMA
FIELDVALUE SAP*
IMPORT Parameter
MAX_CNT 100
PL_HOLD X
The import parameters MAX_CNT and PL_HOLD have to be transferred, asthe values named above do not correspond to the standard settings.

Description
Maximum number of records found

Value range
Maximum number of matches

573396HR customer/vendor determination: New search term
572659Search term for BAPI_VENDOR_FIND and BAPI_CUSTOMER_FIND