cancel
Showing results for 
Search instead for 
Did you mean: 

Any method / bapi for creating BP address ?

Former Member
0 Kudos

Hi experts,

Someone mistakenly created 350 Business Partners without indicating an address (street, street #, zip code and country code are missing). I have been trying to solve that issue using the BAPI 'BAPI_BUPA_ADDRESS_ADD' without any success so far.

However I understood that others managed to get it over with using that same BAPI, so I figure I must be missing something; Even when I don't get any errors while executing the BAPI on a particular BP, no address is ever created ! I just get a GUID number as output data but absolutely no address.

Please any help would be highly appreciated,

Best regards,

C.K.

Accepted Solutions (1)

Accepted Solutions (1)

former_member189678
Active Contributor
0 Kudos

Hi Cedric,

Ideally speaking the Function Module "BAPI_BUPA_ADDRESS_ADD" should serve your purpose, this is written to add the address of the BP. Now, in your case, since it is not working try using the other FM "BAPI_BUPA_ADDRESS_CHANGE". If this also doesn't work, then i guess there are some issues in the BP's that you are mentioning and first priority should be to look into the root case of it.

Regards,

Harshit

Answers (3)

Answers (3)

Former Member
0 Kudos

For those that may read this in the future, here is the answer:

If the BAPI is returning a GUID then it is working correctly. The only reason that the address would not be there is if you forgot to run a BAPI_TRANSACTION_COMMIT afterwards.

Cheers.

Former Member
0 Kudos

Try with this FM : BAPI_BUPA_ADDRESS_CHANGE

Regards,

Siva

saumya_govil
Active Contributor
0 Kudos

Hi Cedric,

Check if you are passing the required details as below:


DATA:  IV_BP_NO             TYPE  BU_PARTNER,
            ls_address_data     TYPE  bapibus1006_address,
            lt_telephon_data    TYPE  STANDARD TABLE OF bapiadtel,
            lt_fax_data         TYPE  STANDARD TABLE OF bapiadfax,
            lt_email_data       TYPE  STANDARD TABLE OF bapiadsmtp.

      CALL FUNCTION 'BAPI_BUPA_ADDRESS_ADD'
        EXPORTING
          businesspartner              = iv_bp_no
          addressdata                  = ls_address_data
        TABLES
          bapiadtel                    = lt_telephon_data
          bapiadfax                    = lt_fax_data
          bapiadsmtp                   = lt_email_data
          return                       = lt_return
                .

Regards,

Saumya