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

ques about this structure..

Former Member
0 Likes
454

Hi all,

Why is there no 'type' used in the elements? What is the default?

DATA: BEGIN OF WC_LOAD_STRUC,

WL_NO(15),

WC_NO(5),

NAME(35),

PLG_BCK_DPTH(17),

END OF WC_LOAD_STRUC.

Now what is 15, 5 35 and 17 here?

Thanks,

Charles.

1 ACCEPTED SOLUTION
Read only

raja_thangamani
Active Contributor
0 Likes
402

<i>Now what is 15, 5 35 and 17 here?</i>

They are<b> length</b> of each field in structure.

Raja T

2 REPLIES 2
Read only

Former Member
0 Likes
402

They are declared as CHAR data types. These mean:

DATA: BEGIN OF WC_LOAD_STRUC,

WL_NO(15) <b>type c</b>,

WC_NO(5) <b>type c</b>,

NAME(35) <b>type c</b>,

PLG_BCK_DPTH(17) <b>type c</b>,

END OF WC_LOAD_STRUC.

Thanks,

Santosh

Read only

raja_thangamani
Active Contributor
0 Likes
403

<i>Now what is 15, 5 35 and 17 here?</i>

They are<b> length</b> of each field in structure.

Raja T