06-04-2008 8:02 AM
How can I change/remove the address usage for a Business Partner? Currently, in table BUT021 the field ADR_KIND can have only 2 values: CON_OBJECT & 0001.
I need to add a new address number for a BP with ADR_KIND = 0001 (which I have already done) & remove the previous address numbers for the same BP with ADR_KIND = 0001. How can I delete/modify address usage data without affecting other address data associated with the BP?
06-10-2008 9:56 AM
You can try updating using the BAPI
BAPI_BUPA_ADDRESS_CHANGE
Populate the strucutres ADDRESSUSAGE and ADDRESSUSAGE_X
Address usage is time dependent and is therefore stored in table BUT021_FS also.
Do not use direct updates on standard tables.
Edited by: Parmarth Naswa on Jun 10, 2008 10:56 AM
06-05-2008 11:10 AM
In transaction BP on tab 'Address Overview', you can see 'Address Usage'. There you can move new address to other address type and remove from old one.
06-06-2008 6:41 AM
I specifically require a FM that can make changes (delete/remove entries) in table BUT021 for address usages (Address for correspondence, Connection object address etc). [Field: BUT021-ADR_KIND]. As this field is a part of Primary key, i cannot change it. Hence, i need to delete the entire tuple.
I can use this statement: DELETE but021 FROM TABLE itab. But this might cause synchronization problems. Any thoughts?
06-09-2008 10:10 AM
I think that for such mass changes you've to write report. I would use some of these FM
BAPI_BUPA_ADDRESS_ADD
BAPI_BUPA_ADDRESS_CHANGE
BAPI_BUPA_ADDRESS_GETDETAIL
BAPI_BUPA_ADDRESS_REMOVE
I think that using DELETE is not good idea. For sure there'll be no history of changes. Beside I don't know if there are some other connections to but021 or not, that could cause you problems in near future.
06-09-2008 3:41 PM
Additionally you can also try to use the ISU-function modules created just for stuff like that, in your case: BAPI_ISUPARTNER_CHANGE.
KR
Uwe
06-10-2008 9:56 AM
You can try updating using the BAPI
BAPI_BUPA_ADDRESS_CHANGE
Populate the strucutres ADDRESSUSAGE and ADDRESSUSAGE_X
Address usage is time dependent and is therefore stored in table BUT021_FS also.
Do not use direct updates on standard tables.
Edited by: Parmarth Naswa on Jun 10, 2008 10:56 AM
06-28-2019 7:08 PM
Hi,
Im using this to change address usages with no problem,
Thing is when I got a BP with 2 addresses and I need to change the XXDEFAULT assigment from one address to another.
its there any special treatment for this ussage type?
06-29-2012 12:19 PM
hi
this solved the problem for me.
in SM30 / SM31 add entry.
Table: SMOFPARSFA
Key: CRMADDR
Parameter Name: CHECK_ADDR_USE
Parameter Value: X
see also: http://scn.sap.com/thread/1342299
then use previously mentioned BAPI's.
kind regards
markus