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 to run BAPI_CUSTOMER_CHANGEFROMDATA1

Former Member
0 Likes
863

Friends,

Has anybody worked on this BAPI? Can tell how to run this I have to change the companycode bases teelphone numers for customer.

Many Thanks,

Albert.

Friends,

Has anybody worked on this BAPI? Can tell how to run this I have to change the companycode bases teelphone numers for customer.

Many Thanks,

Albert.

2 REPLIES 2
Read only

Former Member
0 Likes
706

Hi

You can't change the company data by that BAPI, but only master data and stored in KNA1.

Insert the new value in structure <STRUCTURE> and indicate with 'X' which fields have to be updating by structure <STRUCTURE>X.

Max

Read only

uwe_schieferstein
Active Contributor
0 Likes
706

Hello Albert

As Max Bianchi already said you cannot change company code data of the debitor using this BAPI. I assume that you simply want to change the address data of your debitor (which should be independet of the company code).

In order to change the address data (e.g. telephone number) you have to fill all obligatory data of parameter PI_PERSONALDATA (for customer) or PI_COMPANYDATA (for company). In PI_PERSONALDATAX you set the flag = 'X' for all fields you actually want to change (in your case TEL1_NUMBR = 'X').

However, there is one problem when changing adress data of customers. The BAPI reject the change due to a difference in company address and home address which it does not allow. This is probably due to the ZAV (central address handling) which for customers links company address and home address for a customer.

Regards

Uwe