- 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
Usage of Operator +n and (n) to pass data in ABAP
If my date format is in the form DDMMYYYY then Z_Period(4) equals DDMM so (4) means first four characters.
If my date format is in the form DDMMYYYY then Z_Period +4 equals YYYY so +4 means after the first four characters.
So If I say Z_PERIOD+2(2) then this would result MM- i.e. 2 characters after first 2.
Let us see how to use them in a program −
\Sample program to understand use of +n and n bit operators data: lv_text(10) type c. lv_text = "World". write: / lv_text+2(2).
Output of this code would be “rl”
“+n” specifies a string offset
“n” specifies length of the string
- Related Articles
- \nHow to pass dynamic values on the fly to CDS in SAP ABAP\n
- How to pass Checkbox Data to Python CGI script?\n\n
- Usage of rest parameter and spread operator in JavaScript?
- Passing data from one report to another in ABAP using SUBMIT \n
- What is the meaning and usage of ‘=&’ assignment operator in PHP?
- What is the usage of in operator in JavaScript?
- Usage of subqueries in internal table as condition in SAP ABAP source code.
- How to pass data between activities in Android?
- Android bundle to pass data between activities?
- How to pass large data between activities in Android?
- Apply filtering on Model to fetch filtered data in ABAP
- How to use INTERSECT operator in Android sqlite?\n\n
- How to pass check boxes data using JSP?
- Refreshing list viewer data selectively in SAP ABAP
- Retrieving data from a table in SAP ABAP

Advertisements