Description
Contacts is a business object that represents the activities with customers and vendors in the Business Partners module.
This object enables you to:
- Add an activity.
- Retrieve an activity by its key.
- Update an activity.
- Save the object in XML format.
Source table: OCLG.
Object Model
Contacts![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Remarks
Mandatory fields in SAP Business One: CardCode (only if the activity is not personal) and ContactPersonCode.
To display the form in the application:
- Select Business Partners --> Activities.
Auto-complete of the Activity Schedule Properties (new for release 2005)
The schedule of the activity must be specified at the database level, therefore the system completes automatically the values of the properties that are related to the activity schedule. These properties include:
- Start time - combination of StartDate and StartTime.
- Duration - combination of Duration and DurationType.
- End time - combination of EndDuedate and EndTime.
When adding or updating an activity, there are five scenarios for the auto-complete operation according to the specified values:
1. If no value is specified (when adding only), then the system sets the following default values:
- Start time - the current time when adding the activity.
- Duration - 15 minutes (0 minute when upgrading the system to release 2005).
- End time - the system calculates the values as follows: End time = Start time + Duration.
2. If all three values are specified (when adding or updating), then the system checks their validity, and if there is an error the system issues an error message (-5002 - invalid object).
3. If two values are specified (or modified when updating), then the system calculates (or recalculates) the remaining value as follows:
- Start time and End time are specified - the system calculates the Duration.
- Start time and Duration are specified - the system calculates the End time.
- Duration and End time are specified - when adding, the system sets Start time to default and recalculates the Duration. When updating, the Start time remains the same and the system recalculates the Duration.
4. If one value is specified (when adding only), then the system calculates the remaining values as follows:
- Start time is specified - the system sets the Duration to default and calculates the End time.
- Duration is specified - the system sets the Start time to default and calculates the End time.
- End time is specified - the system sets the Start time to default and calculates the Duration.
5. If one value is modified (when updating only), then the system recalculates the remaining value as follows:
- Start time is specified - the system recalculates the End time (for release 2005) or the Duration (for release 2004).
- Duration is specified - the system recalculates the End time.
- End time is specified - the system recalculates the Duration.