Skip to Content
0
Sep 10, 2007 at 03:17 PM

Common Include

65 Views

HI Guys,

i have written a common include which should be used by any program. The include consists of generating the spool and writing to PDF.

But i have a problem with the piece of code below

IF WF_VALID <> SPACE.

NEW-PAGE PRINT ON PARAMETERS WF_PARAMS NO DIALOG.

LOOP AT IT_EMP INTO WA_EMP.

WRITE:/ WA_EMP-ORT01, WA_EMP-ORT02 " Output written to Spool

ENDLOOP.

NEW-PAGE PRINT OFF.

ENDIF .

The write statement cannot be common for all the programs. And i cannot write this in the main programs as it is in the middle of the include. Is there any solution for this.

Thanks in advance

madhu reddy