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 Packed values

Former Member
0 Likes
496

Hi All

I have a file on application server. One of fields in the file has packed values. I have to transfer the data into an internal table how can unpack the field values?

Thanks In advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
475

When you upload, just upload it as plain text.

Then move those values to fields of proper type.

Regards,

Ravi Kanth Talagana

3 REPLIES 3
Read only

Former Member
0 Likes
476

When you upload, just upload it as plain text.

Then move those values to fields of proper type.

Regards,

Ravi Kanth Talagana

Read only

0 Likes
475

I am downloading data from a file in the application server into an internal table to display it as a report. The file contains packed values. I have to unpack them to show the actual values. How can it be done?

Read only

Former Member
0 Likes
475

Hi,

Before moving the data into internal table just unpack the data using UNPACK Keyword.

Syntax is like this.

DATA: pack(8) TYPE p DECIMALS 3 VALUE '123.456',

char1(10) TYPE c,

char2(10) TYPE c.

MOVE pack TO char1.

UNPACK pack TO char2.

write: / char2.