on 02-23-2009 6:33 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.