cancel
Showing results for 
Search instead for 
Did you mean: 

Adding address

shiny_victoria
Explorer
0 Kudos

Hi,

I have an issue with adding an address.

I have a PCUI application.It has an Address tab.

For Eg:

I have 2 records already in BUT020 with address number 11424, 11427 respectively.

When I click on Add entry thru the application,

'BAPI_BUPA_ADDRESS_CHANGE' is called.In this the exporting parameter is sent as the 1st records Address number ie., the address number is sent as 11424.So it is updating the 1 st record instead of creating a new entry.

How to create a new Address number in BUT020 for a partner? Is there any function module for it?

Regards,

Shiny

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you can use FM : BAPI_BUPA_ADDRESS_ADD

you need to just pass partner no and address data.

which is the application from which ur adding the address.

if want to add new address.

go to transaction BP

click button open BP

enter the BP no

go in change mode

click on Address overview Tab

click create Button.

it will popup for new addess ; put the addess and save it.

using FM for adding address will be bit complex.

please close the thread if solved

Regards

Manoj

Answers (3)

Answers (3)

shiny_victoria
Explorer
0 Kudos

Issue solved

shiny_victoria
Explorer
0 Kudos

Hi,

It helped thanks a lot.

Regards,

Shiny

Former Member
0 Kudos

Hi Shiny,

Use FM BAPI_BUPA_ADDRESS_ADD.

In the exporting structure BUSINESSPARTNER give partner number and in ADDRESSDATA input address details.

Also in the table ADDRESSUSAGE , you can give ADDRESSTYPE ,USAGEVALIDFROM and USAGEVALIDTO .

After that don't forget to call FM BAPI_TRANSACTION_COMMIT.

Hope it works,

Thanks,

RR