Application Development and Automation 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: 
Read only

BAPI for finding a Customer

Former Member
0 Likes
873

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
Read only

Former Member
0 Likes
742

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
Read only

Former Member
0 Likes
743

Hi,

BAPI_CUSTOMER_FIND Customer Matchcode

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

Reward points if useful..

Regards

Nilesh

Read only

Former Member
0 Likes
742

Hi Sameer,

check 'BAPI_CUSTOMER_SERACH'

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
742

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
742

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

Read only

Former Member
0 Likes
742

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

Read only

Former Member
0 Likes
742

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