Skip to Content
0
Former Member
May 06, 2010 at 02:34 PM

FM bapi_bupa : need to change prefered communication

92 Views

Hi,

I want to use the FM BAPI_BUPA_CENTRAL_CHANGE to change the prefered communication for telephone (telephone or portable).

Did someone has already write something like this ?

Here is my code that does not work :

                  i_telephone_data2-r_3_user = '3'.
                  i_telephone_data2-telephone = m_model->gsm_mod.
                  i_telephone_data2-country = 'BE'.
                  i_telephone_data2-consnumber = '002'.
                  i_telephone_data2-std_no = 'X'.
                  APPEND i_telephone_data2 TO i_telephone_data.

                  i_telephone_datax2-r_3_user = 'X'.
                  i_telephone_datax2-telephone = 'X'.
                  i_telephone_datax2-country = 'X'.
                  i_telephone_datax2-consnumber = 'X'.
                  i_telephone_datax2-std_no = 'X'.
                  i_telephone_datax2-updateflag = 'I'.
                  APPEND i_telephone_datax2 TO i_telephone_datax.

              CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
                EXPORTING
                  businesspartner        = m_model->partner_no
                TABLES
                  telefondatanonaddress  = i_telephone_data
                  telefondatanonaddressx = i_telephone_datax.

              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  wait = 'X'.

Thank you,

Fethi