Application Development 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: 

BAPI_BUPA_ADDRESS_CHANGE is not updating Service address on BP

Former Member
0 Kudos

I am currently using BAPI_BUPA_ADDRESS_CHANGE to make changes to addresses on the business partners. It is working perfectly when I update address information on the mailing address on the business partner . When I try to update the service address information on the Business Partner Service Address it is not working. What could be the problem?

CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'

EXPORTING

businesspartner = wa_cs009_infile-buspartner

addressdata = addrdatab

addressdata_x = zaddressdata_x

accept_error = zia_ut=>cc_off

TABLES

return = z_return

EXCEPTIONS

OTHERS = 1.

Edited by: Steve Atlas on Mar 24, 2011 8:16 PM

6 REPLIES 6

Former Member
0 Kudos

What do you mean by "it is not working"? Have you examined the return table?

Rob

Former Member
0 Kudos

Rob - I have examined the return table and there is nothing in it. As for it not working the address that was supposed to be updated had a zip code change. After I ran the program and looked at the CIC0 screen the service address zip code had not changed to the new value. When I run the program and update a mailing addresses I see that the zips and street numbers were changed using CIC0.

Thanks,

Steve Atlas

0 Kudos

Did you do a commit after running the BAPI?

Rob

Former Member
0 Kudos

I do have a commit running after the BAPI. Could it be that for service addresses some other parameter need needs to be populated in the address table? As I stated its working fine for Business Partner Mailing Addresses.

Former Member
0 Kudos

Hi All,

I am facing the same issue. I am not able to update the address and i am not getting any errors either.

please can anyone let me know whats the problem.

My other queries are,

1)Suppose for the address there are many telephone numbers or email address..

Now there is a request for change in one telephone number. How will the function module behave. how will it know as which

telephone number or email address needs to be changed among many entries already existing.

2)suppose the address already exists in the crm system.

now there is new telephone number needs to be added.

should i call a different function module to add the new telephone number or call the same BUPA_ADDRESS_CHANGE

function module.

Regards,

sharry.

0 Kudos

I not sure if you have red BAPI_BUPA_ADDRESS_CHANGE document for how to use it in SAP system? that probably give you a clue.

-- go to SE37 and put BAPI_BUPA_ADDRESS_CHANGE

-- click DISPLAY

-- click "Function Module Documentation" button on upper right side

There is lot of parameters in the BAPI call, you need to choose one you need, and also need to be carefully using those X structure to decide which filed you need to set.

From my experience, the address usage is more complicated part, but the first step to understand the document is very help to me solved my problems.