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

method replacing education pack

Former Member
0 Likes
407

I need a method that removes all the 0 before the number( as does the pack statement).

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
388

hi,

try like below,

DATA: P_FIELD(4) TYPE n VALUE 103,

C_FIELD(4) TYPE C.

PACK P_FIELD TO C_FIELD.

write : c_field, p_field.

hope it helps!!

Regards,

Pavan

I need a method that removes all the 0 before the number( as does the pack statement).

1 REPLY 1
Read only

Former Member
0 Likes
389

hi,

try like below,

DATA: P_FIELD(4) TYPE n VALUE 103,

C_FIELD(4) TYPE C.

PACK P_FIELD TO C_FIELD.

write : c_field, p_field.

hope it helps!!

Regards,

Pavan