Friday, March 16, 2012

Converting number to character variable with write statement

DATA : lv_stot TYPE konv-kbetr.
DATA : lv_stot1(50).
DATA : lv_stot2 TYPE konv-kbetr.
DATA : lv_stot3(50).

REPLACE ALL OCCURRENCES OF ',' IN lv_stot1 WITH space.
lv_stot2 = lv_stot1 + lv_stot.
WRITE lv_stot2 TO lv_stot3.

No comments:

Post a Comment