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

convert p type into c type

Former Member
0 Likes
3,148

hii experts,

i have a structure.

In that i use

V(8) TYPE P.

but when i save the file it gives dump.

it needs TYPE C.

so how i convert tthat PACKED type inco CHAR type.

Please provide me the code.

thanks

babbal

4 REPLIES 4
Read only

Former Member
0 Likes
1,139

Hi,

do like this.

data : v_num(8) type p,

v_num1(8) type N,

v_num2(8) type c.

v_num1 = v_num.

v_num2 = v_num1.

Regards

Sandeep REddy

Read only

Former Member
0 Likes
1,139

Hello,

To get more help on data converting, I suggest you this: [http://help.sap.com/saphelp_47x200/helpdata/en/79/c554afb3dc11d5993800508b6b8b11/frameset.htm].

Regards.

Read only

Former Member
0 Likes
1,139

Hi,

check the syntax help for the STATEMENT UNPACK

data V(8) TYPE P,

v_char(8) type c.

unpack v into v_char.

regards,

Advait.

Read only

Former Member
0 Likes
1,139

Hi,

data char1(8) TYPE P,

char2(8) type c.

unpack char1 to char2.

Regards

Kinjal