‎2008 Jan 31 9:36 AM
Hi,
I would like to know whether this FM 'BAPI_BUPA_CREATE_FROM_DATA' will check the duplication for BP no.? If yes, how it will check the duplication for BP no. creation?
I have tried to run this FM for so many time using the same address data, but it will continue to create the new BP instead of display an error message "duplication records". Any one please advice and help.
Thank you.
‎2011 Mar 10 11:12 AM
hi did you get the solution for your question. i too wanna know its functionalities.
‎2011 Mar 10 12:04 PM
Hi,
Please check your system settings. That helps you in avoiding duplicates.
Regards,
Chandu.
‎2011 Mar 10 12:41 PM
You need to check that data exists in SAP table or not Tables: BP000, BP030, etc
If no data exists then only call the BAPI to create BP
else display message for duplicate BP
‎2011 Mar 10 12:46 PM
You can also use FM BAPI_BUPA_SEARCH to search for duplicate BP.
‎2011 Mar 10 1:14 PM
Hi
Please find the below code
The partner and partner guid are read and then
IF NOT iv_partner IS INITIAL OR
NOT lv_partner_guid IS INITIAL.
CALL FUNCTION 'BUP_CHECK_EXT_NUMBER'
EXPORTING
iv_partner = lv_partner
EXCEPTIONS
number_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
PERFORM exception_message_store TABLES et_return.
EXIT.
ENDIF.
The below FM is called for which it will check for the existence
CALL FUNCTION 'BUP_CHECK_EXISTENCE'
EXPORTING
iv_partner = lv_partner
iv_partner_guid = lv_partner_guid
EXCEPTIONS
partner_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
PERFORM exception_message_store TABLES et_return.
ENDIF.
ENDIF.This is how its happening
Thanks
Srikanth