0% found this document useful (0 votes)
115 views2 pages

ABAP Function - CONCAT - LINES - OF - SAPCODES

The document discusses the ABAP built-in function CONCAT_LINES_OF() which concatenates the data from multiple fields in a table into a single string. It provides an example using a table with field names to dynamically generate an ORDER BY clause. The function avoids needing to loop through the table and concatenate individually, instead producing the concatenated string directly from the table.

Uploaded by

Marta Varino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views2 pages

ABAP Function - CONCAT - LINES - OF - SAPCODES

The document discusses the ABAP built-in function CONCAT_LINES_OF() which concatenates the data from multiple fields in a table into a single string. It provides an example using a table with field names to dynamically generate an ORDER BY clause. The function avoids needing to loop through the table and concatenate individually, instead producing the concatenated string directly from the table.

Uploaded by

Marta Varino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SAPCODES

ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM WORKFLOW

HANA ODATA-UI5 BASIS JOBS TEAM POSTS

ABAP FUNCTION- CONCAT_LINES_OF( )


 February 9, 2022  Siva Prasad  Leave a comment
Search … 

Advertisements Advertisements
The in-built function CONCAT_LINES_OF(
) concatenates the table data into a string. -21% -21%

The table must have field/fields of


character type like C,D,N,T or STRING.
XIAOMI XIAOMI
The below example – the table contains a
[Global [Global
set of field names and we need to prepare
a order by clause with input fields.
Version]… Version]…

The first select statement uses static


ORDER BY clause with few field names.
Consider we receive few field names Banggood.com
Banggood.com
based on which we want to apply the PRIVACY R
PRIVACY REPORT THIS AD

dynamic order by clause. Then we can use


the built in function- CONCAT_LINES_OF(
) to concatenate the fields. Certainly we don’t have to LOOP over the table and make use of
This site is managed by Siva
CONCAT( ) or CONCATENATION.
Prasad and Manish Shankar.
Please reach out to us via email:
[email protected] . This site is
not affiliated with SAP SE.

SAP-Codes
Like Page 1.2K like
The selection screen with few field names-

RECENT POSTS

CDS Custom Entity


Virtual Elements in CDS
Use of keyword WITH in ABAP
SQL
ABAP Function-
CONCAT_LINES_OF( )
Dynamic Select in AMDP
CDS Composition
CDS Models
Class of an Object Instance
Execute-

Enter your email address

Follow sapcodes.com

BLOG STATS

3,571,780 hits
RECENT COMMENTS

Nagaraj on CI Billing Plan for


SOM Subscription Contract
Anonymous on ABAP Evolution
Siva Prasad on Customized
Data Loss POP UP- FPM OVP
Application
Sagar D on Customized Data
Loss POP UP- FPM OVP
Application
The built in function gives a string output by operating on a table.
Siva Prasad on Dynamic Select
in AMDP

Advertisements

-21%

XIAOMI
[Global
Version]…

Banggood.com
PRIVACY REPORT THIS AD

« Dynamic Select in AMDP Use of keyword WITH in ABAP SQL »

LEAVE A REPLY

Enter your comment here...

You might also like