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
What is delivery class? : abap data dictionary
What is the meaning of client independent?
What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?
Hi All , Would be providing online trainings for SAP ABAP , guidance with real time experience examples , guidance in profile prepartion . Any one intrested please contact on 8978890047.
Where do you code the hide statement?
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?
Where do you use help views?
Select up to 1 row and select single difference ?
Explain the difference between cluster tables and pool table?
What is the last entry in all bdc tables? : abap bdc
Explain the difference between a pool table and a transparent table and how they are stored at the database level?
What are the types of subroutines?
How will you read from internal table records in a given value range (without using loop)
Difference between user exit and badis?
Differentiate database index and match code.