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

Problem in packed type?

Former Member
0 Likes
489

Hi all,

i have small problem,iam getting data which should be check is it packed data or not for that how can i do it? please send different types off ways i can check.................

my requirement is if the data is not a packed data then i have to catch the exception in try and catch method.

note:useful ans will be rewarded

regards,

phani

3 REPLIES 3
Read only

Former Member
0 Likes
471

use DESCRIBE FIELD <fld> TYPE typ.

Regards

Prax

Read only

Former Member
0 Likes
471

data: w_pck type p decimals 2.

data: typ(2) type c.

describe field w_pck type typ.

if typ NE 'P'.

message 'Not Packed type' type 'E'.

endif.

write:/ 'TYPE: ', typ.

Reward if useful

Regards

Prax

Read only

0 Likes
471

HI,

this is not working can u send the logic using try and catch method..........please

regards,

phani