on 04-13-2008 7:04 PM
hi, Experts
I call the function "BAPI_BUPA_FS_CREATE_FROM_DATA2" remote to create BP data in CRM.
the return message is "Instance BJXE001005 belonging to object type BusinessPartnerFS was created".
But the BP "BJXE001005" has not been successfully created in CRM.
Why? How to solve the problem?
The issue is a very urgent!
Thanks you very much!
Hi use the BAPI with the paramenter's you need and after that call the BAPI transaction Commit.
Create the Business Partner
CALL FUNCTION 'BAPI_BUPA_FS_CREATE_FROM_DATA2'
EXPORTING
partnercategory = uv_cat
centraldata = w_centraldata
centraldataperson = w_centralperson
centraldataorganization = w_centralorg
centraldatagroup = w_centralgrp
addressdata = w_address
IMPORTING
businesspartner = g_buspartner
TABLES
telefondata = it_phonedata
faxdata = it_fxdata
e_maildata = it_email
communicationnotes = it_bapicomrem
return = it_bapiret2
roles = ut_partner_role.
Commit the transaction to save the changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Hope it will help you if not i will send you the whole code..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks you for your reply.
I has used the function ''BAPI_TRANSACTION_COMMIT''
after function FUNCTION 'BAPI_BUPA_FS_CREATE_FROM_DATA2'.
My code is:
CALL FUNCTION 'BAPI_BUPA_FS_CREATE_FROM_DATA2'
DESTINATION lv_dest
EXPORTING
BUSINESSPARTNEREXTERN = lv_BUSINESSPARTNEREXTERN
PARTNERCATEGORY = lv_PARTNERCATEGORY
CENTRALDATA = ls_CENTRALDATA
CENTRALDATAORGANIZATION = ls_CENTRALDATAORGANIZATION
ADDRESSDATA = ls_ADDRESSDATA
TESTRUN = p_check
IMPORTING
BUSINESSPARTNER = lv_BUSINESSPARTNER
TABLES
TELEFONDATA = lt_telefondata
FAXDATA = lt_faxdata
TELETEXDATA = lt_teletexdata
TELEXDATA = lt_telexdata
E_MAILDATA = lt_e_maildata
RMLADDRESSDATA = lt_rmladdressdata
X400ADDRESSDATA = lt_x400addressdata
RFCADDRESSDATA = lt_rfcaddressdata
PRTADDRESSDATA = lt_prtaddressdata
SSFADDRESSDATA = lt_ssfaddressdata
URIADDRESSDATA = lt_uriaddressdata
PAGADDRESSDATA = lt_pagaddressdata
COMMUNICATIONNOTES = lt_communicationnotes
RETURN = lt_return
ROLES = lt_roles
EXCEPTIONS
others = 1.
if p_check = 'X'.
loop at lt_return.
write: /5 lt_but000-partner,
16 lt_return-type,
18 lt_return-id,
39 lt_return-number,
43 lt_return-message.
endloop.
else.
read table lt_return with key type = 'S'.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
endif.
loop at lt_return.
write: /5 lt_but000-partner,
16 lt_return-type,
18 lt_return-id,
39 lt_return-number,
43 lt_return-message.
endloop.
endif.
The return message is "Instance BJXE001005 belonging to object type BusinessPartnerFS was created".
But the BP "BJXE001005" has not been successfully created in CRM.
how to solve the problem?
Thanks a lot!
Edited by: Ken.Li on Apr 14, 2008 6:50 AM
Hi Ken Li,
I've faced the same error with you. After testing so many times, I've found the reason is: the BP ID is not exactly inside the number range of the related BP Grouping.
Now it's working perfectly.
Hope this will help.
Btw, would you please share your experience with me about your solution?
Thanks & Best Regards,
Duc Lam.
This issue is very urgent, please give help!
Thanks you very much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you call the 'BAPI_TRANSACTION_COMMIT' function module after calling 'BAPI_BUPA_FS_CREATE_FROM_DATA2' ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, Micky
Thanks you for your reply!
I have used this Function after
calling 'BAPI_BUPA_FS_CREATE_FROM_DATA2' .
But i don't use the parameters "roles", Whether there is a relationship with this?
If i use parameters "roles", the return message is "No update is defined for BP role"?
How to solve the problem?
Thanks you very much!
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.