Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

data types : type p to char data type conversion

Former Member
0 Likes
739

Hi,

I want the type p value in char type data type.

Program:

REPORT ztest.

DATA: amount(9) TYPE p.

DATA : var TYPE char13.

amount = '12345'.

WRITE : / amount.

var = amount.

WRITE : / var.

Output is :

12,345

12345

But i want the out put as :

12,345

12,345

Thanks.

Prem.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
668

Hello,

Make this small change,


REPORT ztest.

DATA: amount(9) TYPE p.
DATA : var TYPE char13.

amount = '12345'.
WRITE : / amount.

write amount to var.
WRITE : / var.

Vikranth

1 REPLY 1
Read only

Former Member
0 Likes
669

Hello,

Make this small change,


REPORT ztest.

DATA: amount(9) TYPE p.
DATA : var TYPE char13.

amount = '12345'.
WRITE : / amount.

write amount to var.
WRITE : / var.

Vikranth