Computer Science, asked by baluprashanth1999, 3 months ago

how to check if a number is palindrome or not using reduce in abap.​

Answers

Answered by Anonymous
5

Answer:

PARAMETERS: lv_data1(10) type c.

Data : lv_data2(10) type c.

CALL FUNCTION 'STRING_REVERSE'

EXPORTING

string = lv_data1

lang = sy-langu

IMPORTING

RSTRING = lv_data2

* EXCEPTIONS

* TOO_SMALL = 1

* OTHERS = 2

.

IF lv_data1 EQ lv_data2.

Write: 'Palindrome Number'.

Else.

Write: 'Not a Palindrome Number'.

ENDIF.

Similar questions