‎2008 Jan 10 9:37 AM
Dear Friends,
I have a variable of length 10.
Say v1 = 'abcdefghij'.
Now i want to seoerate 'efghij' from v1.
Can you kindly give the syntax for the same. Thank you.
‎2008 Jan 10 9:42 AM
‎2008 Jan 10 9:42 AM
‎2008 Jan 10 9:42 AM
DATA: V1(10) TYPE C,
V2(10) TYPE C.
V1 = 'abcdefghij'.
V2 = V1+4(6).
V1 = V1(4).
Max
‎2008 Jan 10 9:52 AM
Hi sree,
REPORT ZTEST22222.
DATA: V1(10) TYPE C,
V2(10) TYPE C.
V1 = 'abcdefghij'.
V2 = V1+4(6).
write /: v2 ,v1 .
try to execute this.
plz reward if helpful.
thanks ,
Srikanth .T
‎2008 Jan 10 9:53 AM
Hi Sreeram,
This Example might help u out..
move foff1(len1) to goff2(len2).
a = abcdefghi.
b = 'ABCDEFGHI'
move a5(4) to b4(4).
b will be ABCDfghiI
Reward if helpful.
Thankyou,
Regards.
‎2008 Jan 10 9:54 AM
hI Sreeram,
Copy and Execute the below code then ur problem is solved ok.
DATA: STR TYPE STRING VALUE 'abcdefghij',
STR1 TYPE STRING.
STR1 = STR+4(6).
WRITE: / STR1.
Award points if helpful.
Kiran Kumar.G.A