Ansicht
Dokumentation

BAPI_DEBTOR_FIND - Customer Matchcode

BAPI_DEBTOR_FIND - Customer Matchcode

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

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 contents in 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 0 indicates 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, you permit 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.

Example

You want to find the customers which have the value "23" in field KNB1-PERNR (personal number) in company code 0001. The system should display 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.
  1. You find to find the customers whose LFB5-LFRMA field (dunning recipient'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 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.

Notes

Further information





Parameters

MAX_CNT
PL_HOLD
RESULT_TAB
RETURN
SELOPT_TAB

Exceptions

Function Group

1007

TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3156 Date: 20240523 Time: 090940     sap01-206 ( 49 ms )