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

Pack statement.

Former Member
0 Likes
696

Hi,

When I use pack statement the values no longer seem to be right justified, instead it moves one place 2 the left. Why does this happen, and what is the rememdy to this?

Regards,

Thiru

5 REPLIES 5
Read only

venkata_ramisetti
Active Contributor
0 Likes
665

Hi,

PACK statement converts the content of the data object source to the data type p of length 16 without decimal places.

Probably it is leaving space for sign(+/-).

When you are getting this? I mean while displaying it or while storing in the internal table.

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
665

While displaying it, but my field is a type c. I thought of using the FM CONVERSION_EXIT_ALPHA_OUTPUT, will this solve my problem

Read only

0 Likes
665

HI,

But PACK is obsolete statement. Why are using this statement? What is your requirement?

Thanks

Ramakrishna

Read only

0 Likes
665

My requirement is to download data without any space on the right, but using PACK, seems to be giving me spaces on the right.

Read only

0 Likes
665

Hi,

If the field is of type character then use the below statement and remove the right side spaces .

SHIFT v_field RIGHT DELETING TRAILING ' '.

Thanks,

Ramakrishna