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: 

How to change BP address when it's standard (with BAPI)?

Former Member
0 Kudos
2,605

Hello all!

The question: Is there any simple method to modify address' validity (or even delete it) using BAPI (e.i. BAPI_BUPA_ADDRESS_CHANGE) when address is standard address - it has XXDEFAULT usage??

When modifying data in BP transaction one has to manually choose other proper address which can take "default" flag - when there is no such address system allows change. But from BAPI, when there is a lot of addresses with complex time dependencies this becomes quite a challenge. Any shortcut? Or "manual-find-other-address" way is the only solution?

Thank you in advance

best regards

Maciej

4 REPLIES 4

Former Member
0 Kudos
454

Hi,

createa new FM. In that FM with the help of BAPI_BUPA_ADDRESSES_GET get all the address GUID's. Then with the help of those GUID's take the address numbers related to those address numbers and update the details in ADRC table.

Regards,

Raj.

0 Kudos
454

Maybe that would be a solution but:

1) I need to modify time dependent data. As far as I can see - columns date_from and date_to are not used (set to first and last date always) - where can I find it?

2) I also need to modify address' usages - that's the main point.

Besides I would prefer operating on proper BAPI buffers due to next operations which should be aware of changes made in address data in the same transaction, so db update makes it more difficult.

Any further suggestions would be appreciated.

regards

Maciej

Former Member
0 Kudos
454

I've solved it. Just standard BAPI and correct operation order makes it possible.

0 Kudos
454

Hi Maciej,

Can you please let me know the steps you followed for changing the standard address?

Appreciate your help,

~Athreya