cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using BAPI_BUPA_ADDRESS_CHANGE

Former Member
0 Kudos

Dear experts,

I have migrate in real estate modules many business partners and found out,

That i have forgotten the phone number...

So i searched for an solutions and found the hint in the followin thread:

[|]

here is my conding...

CLEAR lt_tel_x[].

ls_tel_x-updateflag = 'I'.

APPEND ls_tel_x TO lt_tel_x.

CLEAR lt_tel[].

ls_tel-telephone = ls_deb-telefonnummer.

APPEND ls_tel TO lt_tel.

CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'

EXPORTING

businesspartner = ls_but000-partner

addressguid = ls_but020-guid

TABLES

bapiadtel = lt_tel

bapiadtel_x = lt_tel_x

return = ret.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

.

I found out that my field of the struction ls_but020-guid is initial.

But in the but020 the ADDRESS_GUID is filled.

However it doesent work...

Also the table return - is initial - i have no returned messages...

anyone some ideas...

regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Take value of field ADDRESS_GUID from table BUT020 for the business partner and pass it to ls_but020_guid.

change the coding as under ..

CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'

IMPORTING

businesspartner = ls_but000-partner

addressguid = ls_but020-guid

TABLES

bapiadtel = lt_tel

bapiadtel_x = lt_tel_x

return = ret.

check return parameters.

rgds,

Srini