cancel
Showing results for 
Search instead for 
Did you mean: 

About create BP in CRM

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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..

Former Member
0 Kudos

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

Former Member
0 Kudos

Who can help me?

The issue is a very urgent.

Thanks you very much!

Former Member
0 Kudos

This issue has been resolved.

Thanks you very much!

Former Member
0 Kudos

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.

Former Member
0 Kudos

This issue is very urgent, please give help!

Thanks you very much!

Sm1tje
Active Contributor
0 Kudos

Did you call the 'BAPI_TRANSACTION_COMMIT' function module after calling 'BAPI_BUPA_FS_CREATE_FROM_DATA2' ?

Former Member
0 Kudos

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!