‎2008 Jan 10 6:11 AM
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
‎2008 Jan 10 6:13 AM
‎2008 Jan 10 6:14 AM
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
‎2008 Jan 10 6:15 AM
hi,
it will consider only first three characters from that field.
example: ygroup = 'ABCDEFGH'.
if you use ygroup+0(3) = 'ABC'.
Regards,
Venkata Narayana
‎2008 Jan 10 6:15 AM
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
‎2008 Jan 10 6:16 AM
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
‎2008 Jan 10 6:22 AM
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