Skip to Content
0
P D
Aug 20, 2013 at 05:20 AM

Usage of same internal table for two functions

28 Views

Hello Experts,

I have a requirement like this. I have to send an alv report as excel attachment through mail.

So basically I have two values in list box......(Overview and Detail). If overview is selected one report is generated and if detail is selected another report is generated.

I am declaring these internal tables for excel creation and sending it as email.

IT_DOCDATA TYPE STANDARD TABLE OF SODOCCHGI1,
IT_PACKLIST TYPE STANDARD TABLE OF SOPCKLSTI1,
IT_ATTACHMENT TYPE STANDARD TABLE OF SOLISTI1,
IT_BODY_MSG TYPE STANDARD TABLE OF SOLISTI1,
IT_RECEIVERS TYPE STANDARD TABLE OF SOMLRECI1.

So my question is can I use the same internal tables and work area for Overview report as well as Detail report. Some times the user will view the overview report and will come to back to see the Detail report. In that case do i have to refresh these internal tables and work areas?

Regards,

Marina.