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

Error 882: Problem with BAPI_CUSTOMER_CREATEFROMDATA1

Former Member
0 Likes
1,937

Hello All,

I am calling the function BAPI_CUSTOMER_CREATEFROMDATA1 and getting this error

Internal Error: "External no.assignment for reference customer/customer"

I am not providing any optional data and filling the PI_PERSONALDATA and PI_COPYREFERENCE.

I am new to SAP and i guess something needs to be configured with customer or in sales area.

Any suggestion?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,309

The documentation for this BAPI states that the number range of the account group you are copying must be internal numbering assignment. As for changing the number range, you use transaction ovt0 to change the number range assignment for an account group. You can use transaction ovzc if you want to create or change number ranges. If you are implementing a new system, then you are probably ok to make these changes. Otherwise, changes like this should be thought about carefully. I recommend getting help from someone who knows about making these configuration changes.

Brian

4 REPLIES 4
Read only

Former Member
0 Likes
1,309

The error message mentions external number assignment. Are you copying within the same account group? It looks like the number range for the account group is for external assignment, which means you must assign the customer number for the new customer that you are creating. Post some of your code if you still need help.

Brian

Read only

0 Likes
1,309

Hello Brian,

Thanks for your pointer. Actually The customer's reference number i was providing in the PI_COPYREFERENCE structure was a sold-to party customer and it uses external customer number assignment. When i used "New Internet Customer" (that doesnt use external assignment by default) as customer's account group, the customer was created successfully and assigned customer number was returned.

I want to ask now how could we give a customer number in the BAPI as i am unable to find any such column in any of the tables. (Customer number is an "out" parameter so it can only return the number of created customer). Secondly, how to chnage the external assignment property of a particular account group (like sold-to party). i.e, how could we change the account group configurations through SAP GUI??

- Umair

Read only

Former Member
0 Likes
1,310

The documentation for this BAPI states that the number range of the account group you are copying must be internal numbering assignment. As for changing the number range, you use transaction ovt0 to change the number range assignment for an account group. You can use transaction ovzc if you want to create or change number ranges. If you are implementing a new system, then you are probably ok to make these changes. Otherwise, changes like this should be thought about carefully. I recommend getting help from someone who knows about making these configuration changes.

Brian

Read only

0 Likes
1,309

Thats what i was looking for. I am using the test system so changing the number range was acceptable and it did the work. Thanks for your help Brian !!!

-Umair