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

clarification

Former Member
0 Likes
485

Hi ,

I need to put LIFNR(field with char 10) into a field with 13 character.Can I do this?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
459

Yes, you can. If you want the field to be completely filled with zeros, then you must take additional action.

data: lifnr_c(13) type c.
data: lifnr_n(13) type n.

data: lifnr type lfa1-lifnr value '0000012345'.

lifnr_n = lifnr.
lifnr_c = lifnr_n.

write:/ lifnr_c.

Regards,

RIch Heilman

3 REPLIES 3
Read only

abdul_hakim
Active Contributor
0 Likes
459

Hi

You Can do it..

For instance::

data lifnr like lfa1-lifnr.

data lifnr1(13) type c.

move lifnr to lifnr1.

Cheers,

Hakim

Read only

suresh_datti
Active Contributor
0 Likes
459

YES..

~Suresh

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
460

Yes, you can. If you want the field to be completely filled with zeros, then you must take additional action.

data: lifnr_c(13) type c.
data: lifnr_n(13) type n.

data: lifnr type lfa1-lifnr value '0000012345'.

lifnr_n = lifnr.
lifnr_c = lifnr_n.

write:/ lifnr_c.

Regards,

RIch Heilman