T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
T4S::QUERY::CUSTOM::MAPPING Namespace Reference

Mapping namespace for T4S external query functions. More...

Functions

 buildRowQueryDataString RowQueryName EntryFieldName EntryValue ?RowQueryDataString? args
 Customer specific auxiliary function to build the result string for Teamcenter containing TCQuery, FieldName, Value in a special format. More...
 
 executeQuery SessionId QueryName
 Customer specific user-exit to execute a Teamcenter user query via a SAP match code search function. More...
 
 executeQuery4MaterialMaster SessionId QueryName args
 Customer specific auxiliary function to search for material master in SAP. More...
 
 importQueryRowViaBatch SessionId QueryName ObjectKey args
 Customer specific user-exit to import a Teamcenter user query row via the T4S Batchserver. More...
 

Detailed Description

Mapping namespace for T4S external query functions.

The namespace contains the custom specific userexit to execute a Teamcenter user query via a SAP match code search function.

Precondition
For the external search the following preferences are used:
  • TC_customization_libraries : list of custom specific libraries, e.g. libt4x_query
  • T4X_SupportedUserQueries : list of supported external queries
  • T4X_QUERY_TargetSystem4<QueryName> : application which should execute the query, e.g. T4S

Function Documentation

◆ buildRowQueryDataString()

T4S::QUERY::CUSTOM::MAPPING::buildRowQueryDataString   RowQueryName EntryFieldName EntryValue ?RowQueryDataString? args  

Customer specific auxiliary function to build the result string for Teamcenter containing TCQuery, FieldName, Value in a special format.

The procedure is called by executeQuery4MaterialMaster.

Parameters
RowQueryNameName of the query to search within Teamcenter
EntryFieldNameName of the search field
EntryValueThe value for the search field
RowQueryDataStringUsed to build row query search string with more then 1 entry
argsNot used
Returns
string for Teamcenter containing TCQuery, FieldName, Value in a special format

◆ executeQuery()

T4S::QUERY::CUSTOM::MAPPING::executeQuery   SessionId QueryName  

Customer specific user-exit to execute a Teamcenter user query via a SAP match code search function.

Depending on the query name a procedure is called which handles the external search.

Parameters
SessionIdUnique session ID for the users Teamcenter session
QueryNameQuery name to be executed
Returns
OK or UNKNOWN

◆ executeQuery4MaterialMaster()

T4S::QUERY::CUSTOM::MAPPING::executeQuery4MaterialMaster   SessionId QueryName args  

Customer specific auxiliary function to search for material master in SAP.

The procedure is called by executeQuery for query Find_MaterialMaster_in_SAP.
The procedure does a match code search in SAP. The two input fields are combined with OR. The parameters are transferred via the global ::SAPDat array.
The query result is stored in global array ::StatusInfo.

Parameters
SessionIdUnique session ID for the users Teamcenter session
QueryNameQuery name to be executed
argsNot used
Returns
OK

◆ importQueryRowViaBatch()

T4S::QUERY::CUSTOM::MAPPING::importQueryRowViaBatch   SessionId QueryName ObjectKey args  

Customer specific user-exit to import a Teamcenter user query row via the T4S Batchserver.

The procedure creates a batch job based on template T4S_IMPORT_MM.

Parameters
SessionIdUnique session ID for the users Teamcenter session
QueryNameQuery name which was executed before
ObjectKeySAP Id used for query
argsNot used
Returns
OK or UNKNOWN