Application Development and Automation 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: 
Read only

BAPI_BUPA_ADDRESS_CHANGE parameters

Former Member
0 Likes
3,494

Hi experts, I want to update an address. How should I parameter this function?

Which parameter should I pass with the new data?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,764

Hi,

Pass the following data


      CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
        EXPORTING
          businesspartner = bpnumber
          addressguid     = addressguid                            "optional
          addressdata     = ls_address                              "address data
          addressdata_x   = ls_addr_change                     "flag fields to update address
          accept_error    = 'X'
        TABLES
          return          = l_return.

fill address details in the ls_address(type bapibus1006_address), and mark the fields you want to update or change in the structure ls_addr_change (bapibus1006_address_x).

George

Hi,

for which transaction you want to update address.

above BAPI is able to update.but still you are not able then let me know.

Regards,

Sujeet

5 REPLIES 5
Read only

Former Member
0 Likes
2,765

Hi,

Pass the following data


      CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
        EXPORTING
          businesspartner = bpnumber
          addressguid     = addressguid                            "optional
          addressdata     = ls_address                              "address data
          addressdata_x   = ls_addr_change                     "flag fields to update address
          accept_error    = 'X'
        TABLES
          return          = l_return.

fill address details in the ls_address(type bapibus1006_address), and mark the fields you want to update or change in the structure ls_addr_change (bapibus1006_address_x).

George

Read only

SujeetMishra
Active Contributor
0 Likes
2,764

Hi,

for which transaction you want to update address.

above BAPI is able to update.but still you are not able then let me know.

Regards,

Sujeet

Read only

0 Likes
2,764

I want to update the entries in ADRC.

Read only

Former Member
0 Likes
2,764

Hi,

Below is the sample code to use this BAPI:

DATA: wa_address TYPE BAPIBUS1006_ADDRESS,

wa_addressdata_x TYPE BAPIBUS1006_ADDRESS_X.

wa_address-city = 'London'.

wa_address-country = 'GB'.

wa_addressdata_x-city = 'X'.

wa_addressdata_x-country = 'X'

CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'

EXPORTING

BUSINESSPARTNER = lv_businesspartner

ADDRESSDATA = wa_address

ADDRESSDATA_X = wa_address_x

TABLES

RETURN = t_return.

LOOP AT t_return WHERE type = 'E'.

IF sy-surc <> 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
2,764

thanks