Skip to Content
0
Former Member
Feb 15, 2011 at 02:07 PM

Problems with the BAPI BAPI_BUPA_CENTRAL_CHANGE

870 Views

Hi Community,

right now im trying to use the BAPI_BUPA_CENTRAL_CHANGE . Unfortunately it just works partly.

It just works for the information stored in centraldata and centraldataperson.

The information stored in the tables fax, email, uri, etc isnt changed at all although i dont have any entrys in the error tab after the function call!

to mark the x tables i use the following code

DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE l_bapifax_x TO <fld>.

      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
  <fld> = 'X'.
    ENDDO.

I although do check wether the updateflag should be set to U for update or I for insert in the next step!

FC looks like this:

CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        businesspartner           = im_centraldata_ma-partner
        centraldata               = l_str_centraldata
        centraldataperson         = l_str_centraldataperson
        centraldata_x             = l_centraldata_x
        centraldataperson_x       = l_centralpers_x
      TABLES
         faxdatanonaddress         = l_tab_fax
         uriaddressdatanonaddressx = lt_bapiuri_x
         e_maildatanonaddressx     = lt_bapiemail_x
         faxdatanonaddressx        = lt_bapifax_x
         e_maildatanonaddress      = l_tab_email
         uriaddressdatanonaddress  = l_tab_uri
        return                    = l_tab_return.

To change the address of a specific businessparter i use the bapi BAPI_BUPA_ADDRESS_CHANGE

Here i have the same problem as in the bapi above... the change of adressdata works, the tables except bapiadtel didn't work at all.

CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
      EXPORTING
        businesspartner              = im_centraldata_ma-partner
        ADDRESSDATA                  = l_str_addressdata
        ADDRESSDATA_X                = l_address_x
     TABLES
       BAPIADTEL                    = l_tab_phone
*       BAPIADFAX                    = l_tab_fax
*       BAPIADSMTP                   = l_tab_email
*       BAPIADURI                    = l_tab_uri
       BAPIADTEL_X                  = lt_bapitel_x
*       BAPIADFAX_X                  = lt_bapifax_x
*       BAPIADSMT_X                  = lt_bapiemail_x
*       BAPIADURI_X                  = lt_bapiuri_x
       RETURN                       = l_tab_return
.

It would be very nice if somebody could help me out. Is there any other / better BAPI for changing E-Mail, URI and FAX of a Businespartner?

Best Regards,

Matthias