Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

report

Former Member
0 Likes
615

hi

i am abap learner, i have checked one report, in that

ygroup+0(3) = 'LBH'

what is that 0(3).

can any one help me

alka

6 REPLIES 6
Read only

former_member386202
Active Contributor
0 Likes
592

Hi,

It means it will pass first 3 digits .

Regards,

Prashant

Read only

Former Member
0 Likes
592

Hi Alka,

0(3) means offset. Here '0' is the starting position and '3' is the charater positon UPTO how many characters we will take in the string.That means it will display 'LTH' charater as output.

And also i will send sample code check it once ok

DATA: STR TYPE STRING VALUE 'ABCD',

STR1 TYPE STRING.

STR1 = STR+1(3).

WRITE: / STR1.

Award points if helpful.

Kiran Kumar.G.A

Edited by: KIRAN KUMAR on Jan 10, 2008 7:14 AM

Edited by: KIRAN KUMAR on Jan 10, 2008 7:22 AM

Read only

Former Member
0 Likes
592

hi,

it will consider only first three characters from that field.

example: ygroup = 'ABCDEFGH'.

if you use ygroup+0(3) = 'ABC'.

Regards,

Venkata Narayana

Read only

Former Member
0 Likes
592

Hi,

Hi

Its an OFFSET

Data: var1 type i.

var1 = 100065678984646.

Eg.: itab-var = var1+10(5).

The last 5 digits of var1 will be copied to internal table.

Thanks & Regards

Read only

Former Member
0 Likes
592

Hi,

It is offset

For example:

Data: ygroup type char(10) value 'NAVEEN'.

ygroup+0(3) = 'LBH'. --> it will replace first 3 charcters with LBH in the ygroup.

0--> from first character

write: / ygroup.

o/p : LBHEEN

Revrt back if any issues,

regrads,

Naveen

Read only

Former Member
0 Likes
592

ygroup+0(3) = 'LBH'

what is that 0(3).

Hi,

In above case if ygroup as value 'LBDS'

ygroup+0(3) OR ygroup(3) will consider first 3 charaters

ie.. LBD

hope u got clear..

Srinivas