Hi,
Can you please check that the address types of both sets of data is same?
Also you can try using below code :
CALL FUNCTION 'BAPI_BUPA_ADDRESSES_GET'
EXPORTING
BUSINESSPARTNER = gv_partner
ADDRESSTYPE = is_addrtype
VALID_DATE = syst-datum
TABLES
ADDRESSES_ALL = lit_addresses
RETURN = lit_Return.
loop at lit_addresses into wa_addresses.
CALL FUNCTION 'BAPI_BUPA_ADDRESS_GETDETAIL'
EXPORTING
BUSINESSPARTNER = gv_partner
ADDRESSGUID = wa_addresses-addressguid
VALID_DATE = syst-datum
IMPORTING
ADDRESSDATA = wa_address_data
tables
RETURN = lit_return2.
endloop.
Regards,
Amrit