cancel
Showing results for 
Search instead for 
Did you mean: 

UNPACK

Former Member
0 Kudos

V_MBLNR = NAST-OBJKY(10).

UNPACK V_MBLNR TO V_MBLNR.

What's the sue of 'unpack' here? Is it needed to use here?

i pressed F1 and found the sentence-'unpack source to destination'.

Not clear yet about the use of unpack.

Kindly help.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

UNPACK Is use to convert pack decimal value into Chracter Value

thanks

Sachin

Edited by: Sachin Gupta on Feb 23, 2009 12:12 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

UNPACK

Basic form

UNPACK f TO g.

Effect

Unpacks the packed field f and places it in the field g with leading zeros. If g is too short, it is truncated on the left.

Example

DATA: P_FIELD(2) TYPE P VALUE 103,

C_FIELD(4) TYPE C.

UNPACK P_FIELD TO C_FIELD.

P_FIELD: P'103C' --> C_FIELD: C'0103'

Notes

If f is not type P , it is converted to type P .

g should always be type C . Otherwise, unwanted side effects may occur.

The sign in the packed number is ignored.

Thank U,

Jay....