1999111 - substr() returns unexpected value - Data Services 4.1 | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

1999111 - substr() returns unexpected value - Data Services 4.1

Symptom

  • After upgrading Data Services from 4.0 to 4.1 SP2, the same substr() function returns different/unexpected value on numbers.  For example,
    • Query.DI_GENERATED_DATE = (((year(Date_Generation.DI_GENERATED_DATE) * 10000) + (month(Date_Generation.DI_GENERATED_DATE) * 100)) + day_in_month(Date_Generation.DI_GENERATED_DATE))
    • substr(Query.DI_GENERATED_DATE,1,6)
    • On 4.0 it returned 6 numbers, like 201201, 201302, 201405 etc.  But on 4.1 it only returns 4 numbers - 2012, 2013 etc.
  • The issue does not happen if uncheck the SELECT option "Distinct rows" in Query transform.

Read more...

Environment

Data Services 4.1

Product

SAP Data Services 4.1

Keywords

ds, data services, substr, query, distinct row, number, ADAPT, ADAPT01725110, 01725110 , KBA , EIM-DS-EXE , Data Services Job Execution , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.