Application Development and Automation 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: 
Read only

submit ... and return for 2 programs

Former Member
0 Likes
924

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

Hi,

Are you refreshing the table which you are passing to create the email body in HTML email?

Cheers

VJ

5 REPLIES 5
Read only

Former Member
0 Likes
692

Hi,

Are you refreshing the table which you are passing to create the email body in HTML email?

Cheers

VJ

Read only

Former Member
0 Likes
691

First SUBMIT first program & get the output into one internal table,

then SUBMIT the 2nd one & get the output into different internal table.

Read only

Former Member
0 Likes
691

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

Read only

Former Member
0 Likes
691

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

Read only

0 Likes
691

But don't I clear the memory by calling 'LIST_FREE_MEMORY'?