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: 

testing BAPI_BUPA_ADDRESS_CHANGE

Former Member
0 Kudos

Hello Friends,

I have been trying to update Business Parter street-adresses for a while and are encountering problems. I am trying to use the function BAPI_BUPA_ADDRESS_CHANGE, but nothing hapens. I tried to test the function in SE37 where I enter a valid BUSINESSPARTNER and fill the firld STREET in the adressdata structure. When I execute nothing happens. I even tried to fill in the ADRESSGUID with the correct value extracted from the table BUT020. I am running SAP R/3 Enterprise 9.2.0.6.0... Can somebody please help me with this one?..

regards Baljinder

1 ACCEPTED SOLUTION

bernhard_frey
Explorer
0 Kudos

I have the same problem using BAPI_BUPA_ADDRESS_CHANGE. For testing purposes I entered a valid businesspartner, then I entered a new house_no in structure ADDRESSDATA and set the accordingly flag in ADDRESSDATA_X with 'X'. When I execute nothing happens.

What is wrong?

Best Regards

8 REPLIES 8

Former Member
0 Kudos

Hi Baljinder,

If u look carefully u'll c that there's another structure called adressdata_X with exactly the same field names (in the same order) as in adressdata, only the fields there are all flags. This is how u mark which fields u wish to update. If u filled the street in the adressdata, put 'X' in the adressdata_X structure in field street as well.

Igal

pls reward if it helps

bernhard_frey
Explorer
0 Kudos

I have the same problem using BAPI_BUPA_ADDRESS_CHANGE. For testing purposes I entered a valid businesspartner, then I entered a new house_no in structure ADDRESSDATA and set the accordingly flag in ADDRESSDATA_X with 'X'. When I execute nothing happens.

What is wrong?

Best Regards

0 Kudos

Hi Bernhard,

Try to Change it using the Test Sequence, In that Use BAPI_TRANSACTION_COMMIT after the BAPI call. and see..

Regards

vijay

bernhard_frey
Explorer
0 Kudos

Perfect help, thanks a lot.

I wrote a small testing abap where I call BAPI_BUPA_ADDRESS_CHANGE and after that I call BAPI_TRANSACTION_COMMIT. That works!

0 Kudos

Hi Bernhard,

I am facing similar kind of problem, I am running BAPI ' BAPI_BUPA_ADDRESS_CHANGE", with BP number I have tried changing address and phone numbers, after executing this BAPI, I can see changes, but when open same BP number from BP transaction. Changes are not reflected.

Please advise, how I can try out.

Thanks in advance.

VV Rao.

Former Member
0 Kudos

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 whole 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

Stefan

0 Kudos

Dear all,

I tried the two BAPIs BAPI_BUPA_ADDRESS_CHANGE and BAPI_TRANSACTION_COMMIT with a change to city and area code. However, I didn't see the changes using BAPI_BUPA_ADDRESS_GETDETAIL nor the standard transaction FTBP3. There wasn't any error message to help me troubleshoot the problem.

I appreciate if someone can help me on this asap.

Thanks

Francis

Former Member
0 Kudos

Hi,

I am trying to pass a new work order address to my work order in my BAPI,

'BAPI_ALM_ORDER_MAINTAIN' either while I am creating the work order'IW31' or when I am changing the order 'IW32'.

I can't find a way to this, any ideas?

Ed