I think you didn't required any FM to do it.
Just assign c type variable to variable type P. It will work fine.
Like:
DATA : lv_ch(4) type c,
lv_num type p length 4.
lv_num = lv_ch.
write:/ lv_num.
It's just simply work in case of your problem.
I think you didn't required any FM to do it.
Just assign c type variable to variable type P. It will work fine.
Like:
DATA : lv_ch(4) type c,
lv_num type p length 4.
lv_num = lv_ch.
write:/ lv_num.
It's just simply work in case of your problem.