cancel
Showing results for 
Search instead for 
Did you mean: 

LTMC - Making data visible in BUT051 and in BP transaction for Contact Persons

mmoisa
Participant
0 Kudos

Dear community,

I am currently trying to find a solution to migrate BPs (Customer + Contact Persons) correctly. Why do I say correctly?

Well, at the moment, I've managed to migrate the BPs (Customer + Contact Persons) via the Migration Cockpit, the relationship is created properly, also the Department & Function Fields are visible in both BUT051 and in the transaction, but the telephone number & the e-mail address are missing.

Please see some screenshots below for better understanding:

  • BP transaction for the Contact Person, correctly created

  • BP transaction for the Customer with CP relationship, yet without sychronized data in the Phone & E-mail fields:

  • Example from table BUT051: first line, manually adjusted CP with correct information and the second line is corresponding to the example from above:

I've mapped everything in LTMOM (hopefully...), yet the e-mail address & telephone number are not populated here nor shown in BP. As mentioned above, it works for the Department & Function fields.

Does anyone have any idea how this could be solved? Thank you and kind regards.

Accepted Solutions (1)

Accepted Solutions (1)

mmoisa
Participant

Again, it seems I have to answer my own questions...:)

We came up with a solution for this by using FM BAPI_BUPR_CONTP_CHANGE:

DATA: ls_centraldata  LIKE bapibus1006002_central,
      ls_centraldatax LIKE bapibus1006002_central_x,
      lt_return TYPE TABLE OF bapiret2,
      ls_return TYPE bapiret2,
      lv_error(1) TYPE c.
...                  " here we do the translations & conversion of fields
ls_centraldata-function = gv_func.
ls_centraldata-department = gv_dept.
ls_centraldata-vip = gv_vip.
ls_centraldata-tel1_numbr = source-telno.
ls_centraldata-e_mail = source-email.
...                  " here we prepare the centraldata_x data
CALL FUNCTION 'BAPI_BUPR_CONTP_CHANGE'
  EXPORTING
    businesspartner             = gv_kunnr
    contactperson               = gv_cp
*    VALIDFROMDATE               =
*    VALIDUNTILDATE              = '99991231'
*    DEFAULTRELATIONSHIP         =
*    DEFAULTRELATIONSHIP_X       =
    centraldata                 = ls_centraldata
    centraldata_x               = ls_centraldatax
 TABLES
   return                      = lt_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Answers (0)