Skip to Content
author's profile photo Former Member
Former Member

Problems using BAPI_BUPA_ADDRESS_CHANGE

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:

[BAPI for creating phone number, fax, e-mail, www for BP|BAPI for creating phone number, fax, e-mail, www for BP]

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 13, 2011 at 02:57 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.