Wednesday, February 17, 2016

Good Data Elements/Domains for Timestamps

Even if SAP contains a working convertion exit for timestamps (TSTPS), it is not included in the main data elements / domains.

Data element / domain TZNTSTMPS does not include TSTPS. Data element / domain TZNTSTMPSL does include TSTPS, but has a too short output length of 16 characters, which cuts of the seconds. Another problem is the wrong data type (numc instead of dec) which makes TZNTSTMPSL unusable for convert-time-stamp.

A good alternative is data element ACO_TIMESTAMP with domain BCOS_TSTMP.

No comments:

Post a Comment

Working with the session Id // ID für den Modus

Sometimes it can be helpful to know the id of the current session     CALL FUNCTION 'TH_GET_CONTEXT_ID'       IMPORTING         cont...