‎2006 Nov 21 7:39 AM
Hi everybody,
I have written an ABAP program in which I submit 2 different reports exporting the list to memory. After that I get the list from the memory and I am sending it via HTML. But when doing this for the 2nd report I the HTML-mail contains both results - the one from the first and from the second report.
I have even called 'LIST_FREE_MEMORY' but this doesn't help....
Anyone has an idea how to solve this?
Thanks in advance,
Andreas
‎2006 Nov 21 7:45 AM
Hi,
Are you refreshing the table which you are passing to create the email body in HTML email?
Cheers
VJ
‎2006 Nov 21 7:45 AM
Hi,
Are you refreshing the table which you are passing to create the email body in HTML email?
Cheers
VJ
‎2006 Nov 21 7:45 AM
First SUBMIT first program & get the output into one internal table,
then SUBMIT the 2nd one & get the output into different internal table.
‎2006 Nov 21 7:48 AM
Yes I am refreshing the internal table where I put the listobject in and the HTML mail.
I cannot use different tables as later on there will be several SUBMITs.
Thanks for responding so quickly!
Andreas
‎2006 Nov 21 7:49 AM
the thing is after first one u need to clear the abap memory or else it will contain the previous one in it and attach the second report data to this and will send it.
clear the import/export parameters once the first report is executed, then execute the second report.
IMPORT it_steps FROM DATABASE indx(ar) CLIENT sy-mandt
ID 'ZCRREV'.
DELETE FROM DATABASE indx(ar) CLIENT sy-mandt ID 'ZCRREV'.
same way for export...
‎2006 Nov 21 7:52 AM