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


Please Help Members By Posting Answers For Below Questions

Which function module would you use to check the user’s authorization to access files before opening a file?

609


Explain the sequences of event block?

553


Can we define our own match code id's for sap matchcodes ?

589


How to Raise a Particular Ticket in Realtime ?

1638


what is the difference between Blocked ALV and interactive ALV?

1866






What are the different modes of processing batch input sessions? : abap bdc

653


What does the extract statement do in extract datasets? : abap modularization

561


Can you create an internal table dynamically?(at run time)

1427


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?

585


What are the commands used for interactive reports?

568


Explain the concept of clusters in payroll

2124


What are the advantages of logical databases : abap hr

602


What are the names of the function modules that will be generated upon activation of a lock object?

548


how to create view in bdc..??

2325


How to debug a sapscript?

598