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 are the uses of secondary indexes?
What are the data types of the external layer? : abap data dictionary
Explain what are the different functions used in sap script?
What are base tables of an aggregate object?
What are the different function modules used in sapscript?
In which particular scenario we use sorted table and which particular scenario we use standard table?
What are the basic functions of database utility? : abap data dictionary
What is the role of ‘refresh’ in internal table?
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
What is evaluation path, where do we do it and why? : sap abap hr
What is meant by slab? How is indian slab and us slab? : sap abap hr
What is the difference between data elements and domains? : abap data dictionary
when u prefer lsmw?
how to see the tables of 200 in client 100?
If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc