!--a11y-->
Extra Fetch Entries and Key Generation 
Purpose
Extra fetch (XFetch) entries are used by Key Generation (Keygen) to fill reference keys and non-key attributes. This service also sets the TASK field in the segment and the SENDBIT field for the fields that need key and non-keys to be fetched.
Keygen is a process of filling the Primary Keys and immediate Foreign Keys of the message segments contained in BDoc (Business Documents) messages. Keygen provides the functionality to find CRM (SFA/CDB) keys for the corresponding R/3 Backend (or CRM) keys.
R/3 keys are used during the load of data from R/3 backend to the CDB while CRM keys are used during data load from CRM Server applications to CDB.
The primary keys are picked from corresponding mapped tables in the Consolidated Database (CDB) if the record exists in the same with the corresponding R/3 (or CRM) key. Else, a new key is generated considering the segment data as new.
Integration
This service is currently used by the
Adapter Framework and CRM Server applications (in General Data Handler) to fill keys and other fields of segment data of messages that are loaded from an R/3 backend system or from CRM Server applications.Features
Keygen allows you :