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
When was the sap abap being created?
When you prefer lsmw?
What’s value table?
What will you code in start-of-selection & end-of-selecton & why?
What are the data types of the abap/4 layer?
Is it possible to pass data to and from include programs explicitly?
How do you use tab sets in layout sets?
Have you printed any report?
What function does data dictionary perform?
What are the data types of the external layer?
What is Field group?
What are different data types in abap/4?
visibility section for class level and attributes level
What are the modes in lock objects? : sap abap data dictionary
What is sap luw or update transaction?