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

internal table to be send spool

Former Member
0 Likes
795

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
Read only

Former Member
726

hi,

simple write statement will send it to spool.

regards,

Navneeth K.

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

3 REPLIES 3
Read only

Former Member
0 Likes
726

hi,

Goto Trans -> SM36

and create a background job. send it to spool.

Rgds

Reshma

Read only

Former Member
0 Likes
726

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

Read only

Former Member
727

hi,

simple write statement will send it to spool.

regards,

Navneeth K.