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
Mention what is alv programming in abap?
What are the types of records that are transferred to sap r/3 and used by interfaces? : abap bdc
Value table VS check Table.
Explain the difference between domain and data element?
Why do we use dynamic where conditions?
Why do we use Abstract classes give an example from your project?
What is the difference between call transaction method and the session method? : abap bdc
What is the procedure you followed to upload the data?
What are the fields in a bdc_tab table? : abap bdc
How do you populate data into a multiple line field?
If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?
What are the different functions used in sap script? What are the parameters used in each function?
What is the abap program name to process the batch input session automatically? : abap bdc
how to track records from data dictionary?
What are the data types of internal tables?