/SAPTRX/ID_MAPPING - ID Mapping
ABAP Short Reference Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
When you need to save and process any ID, for example, an EPC ID, business location ID, or businesstransaction ID, given as a URN, URL, or a similar worldwide unique identifier, these unique identifiersmust be mapped to the corresponding internal formats in the local systems, above all since URNs are not suitable to be used as internal keys because of their unlimited size.
Therefore you need to use the object ID mapping function that converts the external formats, for example a URN, to an internal format before an event handler is posted or an event message is sent.
This function module can be used to retrieve the ID as an understandable and readable ID, instead ofthe internal key, and then to return the value to the activity parameter. You can use this value forthe content of the alert, for example. Since the ID can be longer than 60 characters, the ID that is retrieved is stored in a separate activity parameter.
This function module is used in rule activities only.
- Parameter-1: Indicator for the ID mapping type:
- 01: Generate/Map External Format to Internal Format,,
- 02: Map External Format to Internal Format,,
- 03: Map Internal Format to External Format,,
- 04: Map Internal Format to Description,,
- Parameter-2: Field that needs to be mapped
- Parameter-3: Rule processing parameter name
- Parameter-4: Rule processing parameter name
- Parameter-5: Rule processing parameter name
- Parameter-6: Rule processing parameter name
Return code:
- 0 - ID mapping was successful.
- 1 - ID mapping failed.
Example
Notes
Object ID mapping in this sense is, however, not restricted to converting unique identifiers into internalkeys and vice versa. It is also required to interconvert different types or formats of unique identifiers that refer to the same object from one format to the other.
Further information
Parameters
E_RETURN_CODEI_EAI
Exceptions
Function Group
TRX/SAPLID_MAPPINGRFUMSV00 - Advance Return for Tax on Sales/Purchases Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 2672 Date: 20120525 Time: 064701 triton ( 175 ms )






