SAP® Documentation

Single view

/AIF/CL_EXT_CONTACT_SRV - Service Class external contact

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

Functionality

The service class /AIF/CL_EXT_CONTACT_SRV is used to maintain AIF external contacts.

Methods:

SEARCH_4_EXTERNAL_CONTACTS ,,The method is used to select external contacts from database with select options. Only fields of External Contacts can be used as select options.

SAVE_EXTERNAL_CONTACT,, ,,,,The method is used to do external contact database changes with or without update task. The changes are processed by Class /AIF/CL_EXT_CONTACT_DB

READ_EXTERNAL_CONTACT,,,,,,The method is used to read external contacts with key from database

TOGGLE_CHANGE_2_DISPLAY,,,,The method unlocks external contacts and is used from UI if the user toggle from change to display mode

TOGGLE_DISPLAY_2_CHANGE,,,,The method checks authority and lock external contact. The method is called from UI if the user toggles from display to change mode

CHECK_AUTHORITY_CHANGE,,,,The method checks if the current user has sufficient authority for external contact changes.

CHECK_EXT_CONTACT_4_SAVE,,,,The method checks if the contact fulfills all criteria's for saving on database. e.g. mandatory fields

CHECK_VALIDITY_4_CONTACT,,,,The method checks if the contact is still valid or if the validity date is reached. Not valid External Contacts should not be available in External Recipients

CHECK_EMAIL_FORMAT,,,,,,The method is used to check if value for Email has the Email format

Relationships

The Class /AIF/CL_EXT_CONTACT_SRV used methods of class /AIF/CL_EXT_CONTACT_DB

Example

To insert, change or delete external contacts the method SAVE_EXTERNAL_CONTACT can be used. In case of change the external contact should be locked before reading and the authority should be checked (method TOGGLE_DISPLAY_2_CHANGE).

1. Insert a new contact in database:

The import parameter IT_EXT_CONTACT_COM should get entries with mandatory fields NAME and ACTIVITY = '01' (constant /AIF/CL_EXT_CONTACT_AUTHORITY=> MC_INSERT). At least one communication address value must be transferred. Optional fields are CONTACT_GUID and VALTO. The fields MANDT (system client) and USER_CREATED and CREATION_DATE are determined during saving process.

2. Change a contact in database:

The import parameter IT_EXT_CONTACT_COM should get entries with mandatory fields NAME, CONTACT_GUID and ACTIVITY = '02' (constant /AIF/CL_EXT_CONTACT_AUTHORITY=> MC_INSERT). The communication address fields, NAME and VALTO are overwritten by the import parameter values. The fields USER_CHANGED and LAST_CHANGE_DATE are determined during saving process.

3. Delete a contact in database:

The import parameter IT_EXT_CONTACT_COM should get entries with mandatory fields CONTACT_GUID and ACTIVITY = '05' (constant /AIF/CL_EXT_CONTACT_AUTHORITY=> MC_DELETE)

The Import parameter IV_IN_UPDATE_TASK can be set to 'X' for all operations and update functions are called. If the Import parameter IV_IN_UPDATE_TASK is space the database is changed directly with ABAP statements.

Notes

Further information






rdisp/max_wprun_time - Maximum work process run time   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3415 Date: 20190619 Time: 084811     sap01-206 ( 35 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.