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

offset value

Former Member
0 Likes
537

Hai,

Iam new to abap can any one solve the above example:

data: c type i,

c1 type i,

len type i,

flag type c.

parameters word(20).

c = 0.

len = strlen( word ).

c1 = len - 1.

len = len / 2.

flag = ' '.

do len times.

if ( wordc(1) <> wordc1(1) ).

flag = 'X'.

endif.

enddo.

if flag = 'X'.

write: / 'Word', word, 'is not Palindrome'.

else.

write: / 'Word', word, 'is Palindrome'.

endif.

Inthe above program

if word = abap

than what is the value of

wordc(1) and wordc1(1)

and how many times the do statement work.

Please explain the above program with the above example.

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
384

you should have posted this in ABAP forum.

anyhow to answer your question.

if word = abap

than what is the value of

wordc(1) and wordc1(1)

c1 = 4 - 1 .

c = 0

word+c(1) => a

word+c1(1) => p

Regards

Raja

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
385

you should have posted this in ABAP forum.

anyhow to answer your question.

if word = abap

than what is the value of

wordc(1) and wordc1(1)

c1 = 4 - 1 .

c = 0

word+c(1) => a

word+c1(1) => p

Regards

Raja