0% found this document useful (1 vote)
905 views

String Functions in ABAP CDS Views - Known Limitations and Workarounds - Visual BI Solutions

This document discusses known limitations of string functions in ABAP CDS views and provides workarounds. Specifically, it notes that functions like LEFT, RIGHT, and SUBSTRING that specify a length may truncate strings rather than error out if the length is too long. It then describes two workarounds: 1) using extended views based on HANA views, and 2) implementing ABAP CDS table functions with AMDP functions.

Uploaded by

smith kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
905 views

String Functions in ABAP CDS Views - Known Limitations and Workarounds - Visual BI Solutions

This document discusses known limitations of string functions in ABAP CDS views and provides workarounds. Specifically, it notes that functions like LEFT, RIGHT, and SUBSTRING that specify a length may truncate strings rather than error out if the length is too long. It then describes two workarounds: 1) using extended views based on HANA views, and 2) implementing ABAP CDS table functions with AMDP functions.

Uploaded by

smith kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

5/6/23, 9:21 PM String Functions in ABAP CDS Views – Known Limitations and Workarounds - Visual BI Solutions

LET'S TALK

b Blogs / SAP / SAP BW/HANA / SAP HANA /



String Functions in ABAP CDS

Views – Known Limitations and
Workarounds
SAP HANA

k BY DINESH KUMAR REDDY

 AUG 9, 2018

 SHARE

String functions in general used to perform manipulation of string data. In


ABAP CDS there are a variety of string functions to perform operation in
the strings. These functions have certain limitations on how the operations
can be done. The details are explained in the example below.

https://visualbi.com/blogs/sap/sap-bw-hana/sap-hana/string-functions-abap-cds-views-known-limitations-workarounds/ 1/10
5/6/23, 9:21 PM String Functions in ABAP CDS Views – Known Limitations and Workarounds - Visual BI Solutions

US/abencds_f1_sql_functions_character.htm

In this blog we are going to discuss more about the string functions like
 LEFT(arg, len), RIGHT(arg,len), SUBSTRING(arg, pos, len)  where the length
has been specified to fetch data.

LET'S TALK
In the below CDS view the functions left, right and substring provides data
based on the length specified.

Output:

https://visualbi.com/blogs/sap/sap-bw-hana/sap-hana/string-functions-abap-cds-views-known-limitations-workarounds/ 3/10
5/6/23, 9:21 PM String Functions in ABAP CDS Views – Known Limitations and Workarounds - Visual BI Solutions

LET'S TALK


To resolve the above issue, we would have to approach the solution from
other perspectives namely:

1. Extended view based on HANA Views- View blog here

2. ABAP CDS Table Function with AMDP Function Implementation- View

blog here

 Faceboo  Twitter  LinkedI


k n

Search

FEATURED BLOGS

Planning in SAP Analytics Cloud Series 7: Allocation Process Steps and Rules
January 6, 2022

Leveraging Google BigQuery functionalities with Looker


January 5, 2022

What’s your preferred data visualization tool? (Tableau vs. Power BI)
https://visualbi.com/blogs/sap/sap-bw-hana/sap-hana/string-functions-abap-cds-views-known-limitations-workarounds/ 5/10
5/6/23, 9:21 PM String Functions in ABAP CDS Views – Known Limitations and Workarounds - Visual BI Solutions

 VBI Products (9)

   Video Blogs (5)

LET'S TALK

https://visualbi.com/blogs/sap/sap-bw-hana/sap-hana/string-functions-abap-cds-views-known-limitations-workarounds/ 7/10
5/6/23, 9:21 PM String Functions in ABAP CDS Views – Known Limitations and Workarounds - Visual BI Solutions

Extended View based on HANA Views

LET'S TALK

Converting ABAP code into AMDP scripts in SAP BW


transformations – Part 2

Services Platforms

Data Architecture & Engineering Snowflake

Strategy & Architecture SAP

Modern BI & Analytics Microsoft

Data Science & ML Tableau

Spotfire

dbt_

Fivetran

Insights About Us

https://visualbi.com/blogs/sap/sap-bw-hana/sap-hana/string-functions-abap-cds-views-known-limitations-workarounds/ 9/10

You might also like