Ansicht
Dokumentation

/AIN/PUB_IDCONV_ENCODE - Create an ID from its components

/AIN/PUB_IDCONV_ENCODE - Create an ID from its components

RFUMSV00 - Advance Return for Tax on Sales/Purchases   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This "ID encode" service enables a calling application such as an activity, user interface, or custom application, to encode an ID from its components.

The service takes a list of component and values for each ID to be encoded, and returns the encoded IDs in all different allowed format. If the ID to be encoded is an EPC, then the service returns the ID in three different formats - hex, tag URI and pure ID URI format. If the list of components for an ID is insufficient, then the group number of the components is returned in a separate table

Example

If the service is called with the following input:

Table IT_ENCODING_TYPE

Group No. ID Version Encoding Type
1 EPC_1.27 SGTIN-96

Table IT_ID_COMP

Group No. Element Name Element Value
1 SERIAL_NO 25
1 GTIN 00037000123453
1 FILTER_VALUE 3

then it will return an EPC in three different format in table ET_ID_ALT_FORMAT.

Group No. ID   Format
1 30740242200C0E4000000019   HEX
1 urn:epc:tag:sgtin-96:3.0037000.012345.25
1 urn:epc:id:sgtin:0037000.012345.25   PURE_ID_URI

The Group No. is used to tie the ID Version, Encoding Type, components of the ID and return values together. If one wants to encode two IDs then one would use two different Group No.

Notes

This core service documentation is intended for technical developers and implementation consultants. For information about the individual parameters, see the Parameters system documentation.

Message Handling

The messages generated by the services are not stored in any application log. It is the responsibility of the calling application to store the application log entries in the relevant application log objects. All the messages that are generated during the service call are returned to the calling application.

Further information

Auto-ID Core Services are further explained in the Help Portal documentation for SAP AII. It can be found in SAP Help Portal at help.sap.com -> Documentation -> mySAP Business Suite -> SAP Auto-ID Infrastructure.





Parameters

ET_ID_ALT_FORMAT
ET_ID_INVALID
ET_RETURN
IT_ENCODING_TYPE
IT_ID_COMP

Exceptions

TECHNICAL_LEVEL_ERROR

Function Group

/SAPLPUB_IDCONV

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

Length: 4360 Date: 20240328 Time: 151847     sap01-206 ( 50 ms )