2006 Oct 27 5:50 PM
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
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
2006 Oct 27 5:56 PM
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
2006 Oct 27 6:01 PM
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
2006 Oct 27 6:08 PM
HI,
But PACK is obsolete statement. Why are using this statement? What is your requirement?
Thanks
Ramakrishna
2006 Oct 27 7:30 PM
My requirement is to download data without any space on the right, but using PACK, seems to be giving me spaces on the right.
2006 Oct 27 7:37 PM
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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |