Polindrome Program for string
and Polindrome Program for numbers in ABAP

Answer Posted / vamsi

DATA : in(50) TYPE c,
rev(50) TYPE c.
*
PARAMETERS Input TYPE string .

in = input .

CONDENSE IN .


CALL FUNCTION 'STRING_REVERSE'
EXPORTING
string = in
lang = sy-langu
IMPORTING
RSTRING = rev
* EXCEPTIONS
* TOO_SMALL = 1
* OTHERS = 2
.

IF in EQ rev.

WRITE : ' THE STRING IS A PALINDROME ' .

ELSE .

WRITE : ' THE STRING IS NOT A PALINDROME ' .

ENDIF.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When was the sap abap being created?

837


When you prefer lsmw?

763


What’s value table?

775


What will you code in start-of-selection & end-of-selecton & why?

776


What are the data types of the abap/4 layer?

900






Is it possible to pass data to and from include programs explicitly?

758


How do you use tab sets in layout sets?

833


Have you printed any report?

1949


What function does data dictionary perform?

769


What are the data types of the external layer?

761


What is Field group?

836


What are different data types in abap/4?

713


visibility section for class level and attributes level

1028


What are the modes in lock objects? : sap abap data dictionary

745


What is sap luw or update transaction?

788