Skip to Content
author's profile photo Former Member
Former Member

append not working

i have internal table

Main report.

begin of itab_lst occurs 0,

seqno like zfit_cos01-seqno,

gsber like tgsbt-gsber,

cntsl like glt01-tslvt,

cnhsl like glt0-tslvt,

end of itab_lst.

data: xtab_lst like table of itab_lst with header line

Perform frm_gsber.

/Form.........................../

form frm_gsber.

loop at itab_rbusa.

perform frm_make_data. (inside this form i have

itab_lst table, each time i have to append

the records to xtab_list.)

loop at itab_lst.

move-corresponding itab_lst to xtab_lst.

append xtab_list.

endloop.

[

in this place if i print the xtab_list table it has

all the records appended.i get all records.

]

endloop.

endform.

[ but if we loop xtab_list and print outside the form it prints

only last records appended to it.why]

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 11:07 AM

    Hello Ambichan,

    I have a doubt about your global and local declarations. could you please check that out once?

    What do you mean <i>outside the form</i>? Where exactly? and outside which form?

    Also, please give the entire code and point out the area of your problem more clearly.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 01:39 PM

    1) wheather the same variable has been used as local in the subroutine

    2) Also check wheather the list is printed in the same line whereas it should have been Write:\

    3) Before looping xtab_lst just try to execute the command of READ TABLE XTAB_LST INDEX 0 and then try to run the Loop

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.