- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Getting a carriage return of report field in SAP Crystal Report
You can make use of split as below −
// To split the text on carriage
Local Stringvar Array lines: = Split( {table.field}, Chr(20) );
// To return carriage 1 less than the number of lines
Local Numbervar delimiters := Ubound(lines)-1;
Let us see one more example, how to use split to divide a string in different lines.
stringvar array x := split({table.fullname}," "); x[1] stringvar array x := split({table.fullname}," "); if ubound(x) >= 2 then x[2] stringvar array x := split({table.fullname}," "); if ubound(x) >= 3 then x[3]
This will split a string in 3 different lines like
“Mr”
“John”
“Harper”
- Related Articles
- Edit report generated from SAP Crystal Reports
- SAP Crystal Report file is not opening in VS2015
- Instantiation of Export Options throws an Exception in SAP Crystal Report
- Not able to save a SAP Crystal Report for Enterprise 4.2
- In SAP Crystal Reports, Putting 2 pages of data into a single report
- Getting month name instead of numeric month number in report in SAP
- Working on a cost center report in SAP
- Generate excel from a report in SAP system
- Show creator name in SAP WEBI report
- Passing multiple parameters in SAP BO Webi report
- Sorting Prompt values in SAP BO Webi report
- Deleting subsequent heading from report in SAP system
- Handline #Multivalue Error in SAP BO Webi report
- Limit number of rows in Webi report in SAP BusinessObjects
- Displaying T-code description and T-code field in Output ALV of report SM20 in SAP system

Advertisements