%CID:
- %CID is an ID provided by the consumer of RAP EML.
- It correlates the result (like MAPPED, RESULT, FAILED, and REPORTED) to the input.
- %CID is available for create operations, including create, create by association, factory actions, and static factory actions.
- It can be used to reference the created instance via %CID_REF to create children within the same EML statement.
- %CID is also applicable to static actions, static functions, and repeatable actions.
- It must be unique and is valid for a single EML statement.
%PID:
- %PID is a preliminary ID provided by the provider.
- It is present only in the case of the late numbering of an entity.
- %PID is not a unique ID on its own.
- The full transient and unique key of an entity is %TKY.
- %TKY is unique within the current transaction.
- In the save sequence, early save phase, adjust numbers, the %TKY is replaced by the final key returned in MAPPED (late), without %PID or with %PID being initial.
Conclusion
Understanding the differences between these identifiers is crucial for developers and architects working with RAP EML to ensure efficient and effective data correlation and management.