Application Development 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: 

internal table to be send spool

Former Member
0 Kudos

Hi,

I have prepared a program in background schedule.But i want to send output to spool.Is any function mdoules like RSPO_SX_OUTPUT_TEXTDATA is to be used to send or simple WRITE statement will send the output data to spool.

Could you please clarify.

Thanks and regards,

shyla

1 ACCEPTED SOLUTION

Former Member

hi,

simple write statement will send it to spool.

regards,

Navneeth K.

3 REPLIES 3

Former Member
0 Kudos

hi,

Goto Trans -> SM36

and create a background job. send it to spool.

Rgds

Reshma

Former Member
0 Kudos

tried it with RSPO_SX_OUTPUT_TEXTDATA. I get the same Error.

I think the Problem is the spool is in RAW-Format.

In stead of RSPO_SX_OUTPUT_TEXTDATA use this:

...

DATA: PARAMS LIKE PRI_PARAMS.

...

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

DESTINATION = 'LOCA'

LINE_SIZE = 080

IMMEDIATELY = ' '

NO_DIALOG = 'X'

IMPORTING

OUT_PARAMETERS = PARAMS

VALID = VALID.

*

CHECK VALID <> SPACE.

*

NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG NO-TITLE NO-HEADING.

*

LOOP AT ITAB.

WRITE:/ ITAB.

ENDLOOP.

*

NEW-PAGE PRINT OFF.

  • Spoolnummer besorgen

SPOOL_NR = SY-SPONO.

After this you can delete the spool via

CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ

Message was edited by:

Karthikeyan Pandurangan

Former Member

hi,

simple write statement will send it to spool.

regards,

Navneeth K.