Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_BUPA_CREATE_FROM_DATA

Former Member
0 Likes
1,411

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,078

hi did you get the solution for your question. i too wanna know its functionalities.

Read only

0 Likes
1,078

Hi,

Please check your system settings. That helps you in avoiding duplicates.

Regards,

Chandu.

Read only

prasoon_sahay
Participant
0 Likes
1,078

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

Read only

prasoon_sahay
Participant
0 Likes
1,078

You can also use FM BAPI_BUPA_SEARCH to search for duplicate BP.

Read only

Former Member
0 Likes
1,078

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