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

Deep structure

Former Member
0 Likes
322

Hi Experts

Please give the demo program for writing value into the deep structure

suppose a field contains a line type and it has 3 fields.

Among those 3 fields 1 is again line type and contains suppose 4 fields

how to write data into the deepest one

Plz reply

2 REPLIES 2
Read only

Former Member
0 Likes
304

wa1-wa2-field = value.

append wa1-wa2 to wa1-itab2.

wa1-wa2-field = value2.

append wa1-wa2 to wa1-itab2.

Append wa1 to Itab1.

Hope it helps...

Lokesh

Read only

Former Member
0 Likes
304

Hi,

the same way mentioned here you can go ahead..

REPORT zstructure.

TYPES: BEGIN OF name,

title(5) TYPE c,

first_name(10) TYPE c,

last_name(10) TYPE c,

END OF name.

TYPES: BEGIN OF mylist,

client TYPE name,

number TYPE i,

END OF mylist.

DATA list TYPE mylist.

list-client-title = 'Lord'.

list-client-first_name = 'Howard'.

list-client-last_name = 'Mac Duff'.

list-number = 1.

WRITE list-client-title.

WRITE list-client-first_name.

WRITE list-client-last_name.

WRITE / 'Number'.

WRITE list-number.

Regds

Sivaparvathi

Please reward points if helpful..