Application Development 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: 

append deep structure without header line

Former Member
0 Kudos

Dear all,

I am using a z structure defined through se11. The structure contains another structure of type tline.

I would like to update the tline type structure (with header text) without using header line. Is it possible?

data: gt_zdeep type table of zdeep_structure,

gs_zdeep type zdeep_structure.

data: lt_line type table of tline,

ls_line type tline.

call function ' read_text'

exporting

object = object

tables

lines = lt_line.

loop at lt_line into ls_line.

move ls_line to gs_zdeep-header-text. : OK.

append gs_zdeep-header-text to gt_zdeep(?-header-text?): KO; gt_zdeep no header line.

endloop.

any idea how to proceed this one?

Regards.

4 REPLIES 4

Former Member
0 Kudos

do like this..

loop at lt_line into ls_line.

move ls_line to gs_zdeep-header-text. : OK.

append gs_zdeep to gt_zdeep.

endloop.

it will work....

0 Kudos

Hi Jyothi,

Doing so, a new line is append into gt_zdeep while I want gt_zdeep-header_text sub structure header_text to be append.

Regards.

Former Member
0 Kudos

Hi,

loop at lt_line into ls_line.
gs_zdeep-header-text = ls_line.
append gs_zdeep-header to gt_zdeep.
endloop.

Regards

Sathish

0 Kudos

Hi Satish,

a new line is append in gt_zdeep with the contain of gs_zdeep-header-text.

What I want is to append gt_zdeep-header only.

Regards.