Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for finding a Customer

Former Member
0 Kudos

Hello,

Is there a BAPI which helps me to find a customer using just a "rough" name? For example, consider a company called Test Corp.

Someone laying down an offer for the company would need to know the customer number for Test Corp in the SAP system. I am trying to build in functionality in an application that helps him find the details of the company based solely on, say for example, "Test".

The entry Test should list all the possible companies (or a single one if so be) for which the details in the SAP system exist.

Is there a BAPI which can help me do such a search?

Sameer

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

BAPI_CUSTOMER_FIND Customer Matchcode

BAPI_CUSTOMER_SEARCH Only for ONLINE Store!!! Customer: Find Customer

Reward points if useful..

Regards

Nilesh

6 REPLIES 6

Former Member
0 Kudos

Hi,

BAPI_CUSTOMER_FIND Customer Matchcode

BAPI_CUSTOMER_SEARCH Only for ONLINE Store!!! Customer: Find Customer

Reward points if useful..

Regards

Nilesh

Former Member
0 Kudos

Hi Sameer,

check 'BAPI_CUSTOMER_SERACH'

Reward points if helpful.

Regards,

Hemant

Former Member
0 Kudos

Hello,

The BAPI_CUSTOMER_FIND needs me to enter the company code. It is exactly the opposite I am trying to do - find a company code from a simple name.

In the BAPI_CUSTOMER_SEARCH, I need to enter the e-mail address of the company.

Just to make it clear, I am trying to search for a company's code in SAP by just entering (part of) the name. Is there a BAPI which can help me with that?

Sameer

uwe_schieferstein
Active Contributor
0 Kudos

Hello Sameer

Perhaps BAPI <b>BAPI_COMPANYCODE_GETLIST</b> may be helpful. The BAPI returns a list of all company codes including their description.

You probably have to split the search for the customer data into two parts:

(1) Search for company code
(2) Search for customer within the selected company code

Regards

Uwe

Former Member
0 Kudos

Hi Sameer ,

I dont think there is a BADI which gives a set of values based on a wildcard entry , why dont you select the data directly from table KNA1.

Regards

Arun

Former Member
0 Kudos

Hi,

Turns out the BAPI_CUSTOMER_FIND is the one which helps me. I unfortunately had understood it's way of working in a wrong way.

This thread helped me further too -

Thanks for all your help,

Sameer