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 does the extract statement do in extract datasets?
Program lines for the radio button selection and unabling some input variables in section screen
What is SAP Data conversion ?
What is a currency factoring technique?
What is the use of info groups? : sap abap hr
Explain how many types of tables exist and what are they in data dictionary?
Explain what are standard layouts sets in the sap script?
What is the table buffer?
What is meant by authorization? Did you ever work on it? : sap abap hr
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
What is the difference between call transaction and session method? : abap bdc
What are the different types of sapscript symbols?
What are system variable in abap?
What is the function module to popup contents in the internal table?
java script for push button in adobe forms.