Skip to Content
avatar image
Former Member

is it possible to get values from a structure

in my report i am using a structure

can it possible to loop this structure and get its values to another internal table.

i done like this but when am executing its taking long time and going to short dump

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 10, 2007 at 07:29 AM

    Hi,

    Structure doesnot hold any data.You cant get any values from it

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 07:28 AM

    HI,

    create a internal with type of the structure and populate values into that n do wat ever u want.

    ex:

    data: itab type zstruct occurs 0 with header line. // where zstruct is a structure in a database.

    select * from .............. into table itab where ...............

    ..........

    ............

    .

    loop at itab.

    write:/10 itab-fld1,

    20 itab-fld2,

    ...........

    endloop.

    if helpful reward some points.

    with regards,

    suresh aluri.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 07:25 AM

    Hi

    Structure does't holds any data

    you can't loop at structure also beacuse structure can hold only one record at a time

    reward if usefull

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 07:30 AM

    structure will not store any values, its just a skeleton.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 07:34 AM

    Hi Bharathi,

    your question is confusing. I never looped a structure before. I'd suggest you post your code and let the point-seekers do their job.

    Regards,

    Clemens

    Add comment
    10|10000 characters needed characters exceeded