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
Which function module would you use to check the user’s authorization to access files before opening a file?
Explain the sequences of event block?
Can we define our own match code id's for sap matchcodes ?
How to Raise a Particular Ticket in Realtime ?
what is the difference between Blocked ALV and interactive ALV?
What are the different modes of processing batch input sessions? : abap bdc
What does the extract statement do in extract datasets? : abap modularization
Can you create an internal table dynamically?(at run time)
Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?
What are the commands used for interactive reports?
Explain the concept of clusters in payroll
What are the advantages of logical databases : abap hr
What are the names of the function modules that will be generated upon activation of a lock object?
how to create view in bdc..??
How to debug a sapscript?