Polindrome Program for string
and Polindrome Program for numbers in ABAP
Answer / 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 |
Differentiate database index and match code.
How to debug smartforms?
how we output smartform in pdf format??? anyone give me steps on that.
how to calculate the difference between two date type of variables ?
Check table value table
What are the fields in a BDCTab Table.
what is at new carrier
What is tcode se16. For what is it used. Explain briefly?
In start of selection, if we perform validation, what happens ?
What are the advantages and disadvantages of using views in abap programming ?
How to display footer in every page in ALV report?
Can i Have Some Realtime Examples On Modulepool programming.