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
From Excel to ABAP - Is batch mode possible ?
What are the events used for logical database?
What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr
How to display if the value entered contains records or not?
What are the types of records that are transferred to sap r/3 and used by interfaces? : abap bdc
What is a sequence of event-triggered in report?
Give examples of transparent table?
What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary
What are the types of the software component being deployed in the sap?
Can there be more than 1 main window in sap script?
2)In production what is the user exit?
What is a persistent class?
List some of the many different ways that the sap standard functionality can be changed by a customer?
Define spool request?
What is the symbol to do “concatenation” operation in nw abap 7.4 ?