Skip to Content
0
Former Member
Jan 21, 2006 at 01:37 AM

is there any restriction on no of page or no of char from spool

37 Views

could u pls tell me is there any restriction on no of pages or no of char from spool no into internal table in background mode when sending mail to external id.

foreground it is working fine.

code here..

TABLES tsp01.

DATA: list LIKE abaplist OCCURS 0 WITH HEADER LINE.

DATA: txtlines(15000) TYPE c OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF reportlines OCCURS 0,

data(132) TYPE c,

END OF reportlines.

DATA: first_line TYPE i,

last_line TYPE i.

DATA: v_syspono LIKE tsp01-rqident.

DATA mi_rq2name LIKE tsp01-rq2name.

DATA f_repid LIKE sy-repid.

DATA v_rqident LIKE tsp01-rqident.

*

START-OF-SELECTION.

DO 120 TIMES.

write: / sy-index,

'Hello'.

ENDDO.

TOP-OF-PAGE.

f_repid = 'ZMAIL7'.

CONCATENATE f_repid0(9)'_' sy-uname0(3) INTO mi_rq2name.

SELECT * FROM tsp01

INTO tsp01

WHERE rq2name = mi_rq2name

ORDER BY rqcretime DESCENDING.

v_rqident = tsp01-rqident.

EXIT.

ENDSELECT.

IF sy-subrc NE 0.

CLEAR v_rqident.

ENDIF.

END-OF-SELECTION.

WAIT UP TO 50 SECONDS.

*

v_syspono = v_rqident.

  • v_syspono = sy-spono.

SUBMIT rspolist EXPORTING LIST TO MEMORY AND RETURN

WITH rqident = v_syspono

WITH first = first_line

WITH last = last_line.

  • Getting spool content to internal table

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list

EXCEPTIONS

not_found = 1

OTHERS = 2.

*Spool content in Ascii format

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

listobject = list

listasci = txtlines

EXCEPTIONS

empty_list = 1

list_index_invalid = 2

OTHERS = 3.