Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

a question about character addition.

Hi,

i have a question about character. seet the following code.

DATA: lv_entryid TYPE char3.

lv_entryid = '001'.

WRITE : / lv_entryid.

lv_entryid = lv_entryid + 1.

WRITE : / lv_entryid.

the answer is :

001

2

but the result i expect is

001

002.

how to process, Could you please help me?

Thanks in advance.

Tags:
replied
DATA: lv_entryid TYPE char3.

lv_entryid = '001'.
WRITE : / lv_entryid.
lv_entryid = lv_entryid + 1.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
     EXPORTING
          input  = lv_entryid
     IMPORTING
          output = lv_entryid.


WRITE : / lv_entryid.

Try this code and see

Regards

Gopi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question