Ansicht
Dokumentation

/SAPTRX/ID_MAPPING - ID Mapping

/SAPTRX/ID_MAPPING - ID Mapping

ROGBILLS - Synchronize billing plans   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

When you need to save and process any ID, for example, an EPC ID, business location ID, or business transaction ID, given as a URN, URL, or a similar worldwide unique identifier, these unique identifiers must 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 of the internal key, and then to return the value to the activity parameter. You can use this value for the 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 internal keys 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_CODE
I_EAI

Exceptions

Function Group

TRX/SAPLID_MAPPING

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2844 Date: 20240426 Time: 123044     sap01-206 ( 49 ms )