Skip to Content
avatar image
Former Member

append deep structure without header line

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 13, 2007 at 06:27 AM

    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....

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Nov 13, 2007 at 06:36 AM

    Hi,

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

    Regards

    Sathish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.