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

How do I use Customer BOR in BAPI?

Former Member
0 Likes
694

Hi,

I tried to implement methods like BAPI_CUSTOMER_CREATEFROMDAT1, GETLIST, FIND,etc. Nothing works? It returns error messages. Can anyone point me out to some BAPI code examples that deal with customer BOR.

Thank you,

Sunny

Hi,

I tried to implement methods like BAPI_CUSTOMER_CREATEFROMDAT1, GETLIST, FIND,etc. Nothing works? It returns error messages. Can anyone point me out to some BAPI code examples that deal with customer BOR.

Thank you,

Sunny

3 REPLIES 3
Read only

Former Member
0 Likes
517

There are two ways to tackle this problem at hand:

1) Where-used-list (most likely you might have done this already)

2) help of functional expert

First of all, you need to know which information should already be present in the system, which would help in creating a customer.

Secondly, you need to know, in order to create a customer, what are the various fields which are mandatory.

I believe, if you are able to create a customer using the standard transaction, there should not be much difficulty to create a customer using BAPI.

In your message, you mention, you tried to implement methods like BAPI_CUSTOMER_CREATEFROMDAT1.

BAPI_CUSTOMER_CREATEFROMDAT1 is an R<b>FC-enabled Function Module</b> and not a method.

In order to test for GETLIST, one of the approaches could be find the name of the BAPI (FM), for eg. BAPI_CUSTOMER_GETLIST, go to SE37, put the customer number(KUNNR). As far as my knowledge goes on GETLIST, it should fetch the entire list of customers.

Customers are stored in <b>KNA1</b> table.

I hope you find, at least some part of this message useful.

Regards,

Subramanian V.

Read only

Former Member
0 Likes
517

Hello,

Another problem might be the external / internal format of the field KUNNR (customer number).

On standard SAP dynpros you will see the customer number 4711. But KUNNR is of type CHAR with length 10 - so internally you would have to use the number 0000004711. All BAPIs require the use of the internal format (i. e. with leading zeroes).

Hope this helps,

Joerg

Read only

Former Member
0 Likes
517

Hi,

I was checking the import parameters and wonder maybe one of those like BAPICustomer_IDRangeTable or BAPIKNA110Table do no have any record. Does ant one happen to know which table these two represent in the database?

Thank you in advance,

Sunny