Ansicht
Dokumentation

COM_BPUS_BUPA_EXISTENCE_CHECK - Check Existence for one Business Partner Only

COM_BPUS_BUPA_EXISTENCE_CHECK - Check Existence for one Business Partner Only

General Material Data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to determine whether exactly one business partner fulfills your search criteria.

The search for a business partner is a two level process:

  • Firstly, all business partners whose attributes match the values transferred to the import parameters IV_TELEPHONE, IV_MAIL, IV_URL, IS_ADDRESSDATA_SEARCH, IS_CENTRALDATA_SEARCH and IV_BUSINESSPARTNERROLE are determined. Only those fields that contain a (non-initial) value are considered. During the search, all the addresses for a business partner are included in the selection.
  • In a second step, all those business partners found in the first step that do not exactly fulfill the additional selection criteria are discarded. The additonal selection criteria are defined using the import parameters IS_CENTRALDATA and IS_ADDRESSDATA and using one of the three import parameters IS_CENTRALDATAPERSON, IS_CENTRALDATAORGANIZATION or IS_CENTRALDATAGROUP.

If the import parameters IV_CENTRALARCHIVINGFLAG_CHECK or IV_CENTRALBLOCK_CHECK contain the value X, all the business partners found, for which the central archiving flag or the central block is set, are removed from the list.

If the import parameter IV_USER_EXISTENCE_CHECK is set at the value X, a check is performed to see whether the business partner is already linked with a user via the central person. If this is the case, it is removed from the list of business partners found.

If successful, that is, if exactly one business partner fulfills the search criteria, the business partner number is returned to the export parameter EV_BUSINESSPARTNER.

In all other cases, exceptions are triggered. Messages for the BAPIs called are written in the export parameter ET_RETURN.

Example

Notes

You can find more information about the first step in the business partner search in the documentation for the function module BAPI_BUPA_SEARCH.

Further information





Parameters

ET_RETURN
EV_BUSINESSPARTNER
IS_ADDRESSDATA
IS_ADDRESSDATA_SEARCH
IS_CENTRALDATA
IS_CENTRALDATAGROUP
IS_CENTRALDATAORGANIZATION
IS_CENTRALDATAPERSON
IS_CENTRALDATA_SEARCH
IV_BUSINESSPARTNERROLE
IV_CENTRALARCHIVINGFLAG_CHECK
IV_CENTRALBLOCK_CHECK
IV_EMAIL
IV_TELEPHONE
IV_URL
IV_USER_EXISTENCE_CHECK

Exceptions

ADDRESS_GETDETAIL_ERROR
BUPA_GETDETAIL_ERROR
BUPA_HAS_ALREADY_USER
MORE_THAN_ONE_BUPA_FOUND
NO_BUPA_FOUND

Function Group

COM_BUPA_USER_REGISTRATION

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4299 Date: 20240523 Time: 115256     sap01-206 ( 63 ms )