2005 Apr 09 1:40 AM
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
2005 Apr 09 2:10 AM
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.
2005 Apr 11 8:31 AM
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
2005 Apr 11 5:29 PM
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