Ansicht
Dokumentation

COM_BPUS_RELDAT_FOR_CPUSER_CH1 - Change Contact Person Data for a User

COM_BPUS_RELDAT_FOR_CPUSER_CH1 - Change Contact Person Data for a User

TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to change some of the following master data on an assigned user for a contact person:

  • The data of the is contact person of relationship between the contact person and the organization.
  • The central data on the business partner of the contact person (IS_CENTRALDATA and IS_CENTRALDATAPERSON)

You can enter the business partner of the contact person or organization directly by using import parameters IV_CONTACTPERSON and IV_BUSINESSPARTNER. If these import parameters are not filled, you have the option of using import parameter IS_ALIAS and/or IS_USERNAME to enter the user. The existence of the user defined by the import parameters is checked. If IS_ALIAS and IS_USERNAME are entered, the system checks whether an assignment exists between the alias and user name. If you do not enter a user, the value of the system variable SY-UNAME is transferred to the CRM system as the user.

A contact person can be linked to several organizations through a is contact person relationship. You can choose a determination rule to help select an organization by using import parameter IV_ORG_SEARCH_MODE.

The is contact person of relationship can reference none, one or several addresses of the organization. If import parameter IV_ADDRESSGUID is filled, the system tries to determine the address reference defined by the GUID and to change the corresponding communication data. Otherwise the standard address reference is determined or a standard address reference is created for the standard address if one does not already exist.

For information on the support of jurisdiction tax codes, see Jurisdiction Tax Code.

If no business partner is found or a different error occurs, processing is stopped and an error message is written in export parameter ET_RETURN. In addition to this, all messages that come from the BAPI called are written in export parameter ET_RETURN.

If business partners are found and no error occurs when you change data, the export parameter ES_RETURN remains initial.

If the import parameter IV_COMMIT is set to value X, the data is written in the database when the change is successful.

Example

Notes

For more information on the significance of using import parameters, see the method documentation:

BAPI_BUPR_CONTP_CHANGE

BAPI_BUPR_CONTP_ADDR_CHANGE

BAPI_BUPA_CENTRAL_CHANGE called from this function module.

Import parameters that end with *_X , control the type of change to the import parameter without this ending.

Further information





Parameters

CS_E_MAILDATA
CS_E_MAILDATA_X
CS_FAXDATA
CS_FAXDATA_X
CS_TELEFONDATA
CS_TELEFONDATA_X
ES_RETURN
ET_RETURN
EV_BUSINESSPARTNER
EV_CONTACTPERSON
IS_ADDRESSDATA_REL
IS_ADDRESSDATA_REL_X
IS_ALIAS
IS_CENTRALDATA
IS_CENTRALDATAPERSON
IS_CENTRALDATAPERSON_X
IS_CENTRALDATA_REL
IS_CENTRALDATA_REL_X
IS_CENTRALDATA_X
IS_USERNAME
IV_ADDRESSGUID
IV_BUSINESSPARTNER
IV_COMMIT
IV_CONTACTPERSON
IV_DEFAULTRELATIONSHIP
IV_DEFAULTRELATIONSHIP_X
IV_ORG_SEARCH_MODE
IV_VALIDFROMDATE
IV_VALIDUNTILDATE

Exceptions

Function Group

COM_BUPA_USER_REGISTRATION

CPI1466 during Backup   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4326 Date: 20240523 Time: 121022     sap01-206 ( 92 ms )