2009 Jun 04 9:03 AM
Hi experts, I want to update an address. How should I parameter this function?
Which parameter should I pass with the new data?
2009 Jun 04 9:21 AM
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,
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
2009 Jun 04 9:21 AM
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
2009 Jun 04 9:50 AM
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
2009 Jun 04 11:20 AM
2009 Jun 04 11:11 AM
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.
2009 Jun 16 2:03 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |