10-14-2020 7:43 PM - edited 02-03-2024 7:12 PM
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:
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.
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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.