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: 

Problems with BAPI_BUPA_ADDRESS_CHANGE

Former Member
0 Kudos

Hi

after reading all this (), I tried to change the city of a BuPa.

So what I did is

- setting BUSINESSPARTNER to a certain number

- setting ADDRESSGUID.GUID to a GUID I got from BAPI_BUPA_ADDRESSES_GET

- setting ADDRESS.CITY = "myNewCity"

- setting ADDRESS_X.CITY = "X"

But before calling BAPI_TRANSACTION_COMMIT I get the following error from the export RETURN.

"Jurisdiction code 0508525201 does not correspond to address entered"

I am doing the entire thing from Ruby with Piers' great saprfc library, but I think this is more an unterstanding-the-ABAP-world problem.

I would appreciate your help

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Stefan,

Are you getting all the tables or just GUID from BAPI_BUPA_ADDRESSES_GET..

1) If you are populating the header using the above then exclude the tax jurisdiction code..

2) If you not then try sending a blank tax jur in header field.. ADDRESSDATA-TAXJURCODE = ' '. And do not forget the ADDRESSDATA_X-TAXJURCODE = 'X'.

Try these and let me know if problem persists further..

BR

Rakesh

PS: Please close the thread if your question is answered..

4 REPLIES 4

Former Member
0 Kudos

Hi Stefan,

Are you getting all the tables or just GUID from BAPI_BUPA_ADDRESSES_GET..

1) If you are populating the header using the above then exclude the tax jurisdiction code..

2) If you not then try sending a blank tax jur in header field.. ADDRESSDATA-TAXJURCODE = ' '. And do not forget the ADDRESSDATA_X-TAXJURCODE = 'X'.

Try these and let me know if problem persists further..

BR

Rakesh

PS: Please close the thread if your question is answered..

Former Member
0 Kudos

Thanks for your answer, Rakesh

1) I am just getting the addressGUIDs. What do you mean by Header?

2) Setting the TAXJURCODE to ' ' resp. 'X' doesn't work either. The error is "No jurisdiction code could be determined".

Do you have other ideas?

thanks

Stefan

Clemenss
Active Contributor
0 Kudos

Hi Stefan,

My guess is that in your system any kind of address check addition is active. When you change the city, you may have to change the postal code as well enabling the address check to determine a valid jurisdiction code.

Just a guess.

Just found this link:

<a href="http://help.sap.com/bestpractices/crossindustry/crm/v240/BBLibrary/Documentation/B09_BB_ConfigGuide_EN_US.doc">If you calculate tax via the jurisdiction method, you must maintain a region.</a>

Hope it helps.

Regards,

Clemens

Message was edited by:

Clemens Li

Former Member
0 Kudos

Thanks Clemens, for the information and that document.

It looks like it is more complex than I thought.

For my trainings purposes I am now changing just the street number. So I am not about to change major parts of the address anymore. That is far less complicated.

Thanks again for your help

Stefan