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

Create Spool after ALV

Former Member
0 Likes
989

hi

I need to create spool after ALV display. I used this fn module RSPO_OPEN_SPOOLREQUEST and pass only the destination parameter - 'LP01'.

Spool erquest is created but no pages.. Pages 0.. Pls advise if there is any other parameter I need to fill for this fn module or any other way to achieve this.

Thanks

Arunachala.G

hi

I need to create spool after ALV display. I used this fn module RSPO_OPEN_SPOOLREQUEST and pass only the destination parameter - 'LP01'.

Spool erquest is created but no pages.. Pages 0.. Pls advise if there is any other parameter I need to fill for this fn module or any other way to achieve this.

Thanks

Arunachala.G

9 REPLIES 9
Read only

Former Member
0 Likes
940

Hi

Try this link:

it has same problem info like yours .

Regards

Neha

Edited by: Neha Shukla on Nov 26, 2008 8:21 AM

Read only

Former Member
0 Likes
940

Hi

Thanks for ur Reply.. I tried,, But the document is not opened since no pages.. He to trigger the pages in spool..

Thanks

Read only

0 Likes
940

Hi Arunachala

This link defintely has some answers to your queries:

As per this link FM used by you only creates the spool but does not pass any message to spool ,you have to do some additional coding for that.

Regards

Neha

Read only

SujeetMishra
Active Contributor
0 Likes
940

Hello Arunachala,

Please use the below steps :

1.>

form build_layout.

gd_layout-no_input = 'X'.

gd_layout-colwidth_optimize = 'X'.

  • gd_layout-totals_text = 'Totals'(201).

gd_layout-box_fieldname = 'CHK'.

gd_layout-box_tabname = 'IT_SPOOL'.

  • gd_layout-totals_only = 'X'.

  • gd_layout-f2code = 'DISP'. "Sets fcode for when double

  • "click(press f2)

  • gd_layout-zebra = 'X'.

  • gd_layout-group_change_edit = 'X'.

  • gd_layout-header_text = 'helllllo'.

endform.

2.> call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_interface_check = ' '

i_callback_program = gd_repid

i_callback_pf_status_set = 'SET_PF_STATUS'

  • i_callback_top_of_page = ''

i_callback_user_command = 'USER_COMMAND'

  • i_grid_title = outtext

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

  • it_special_groups =

  • IT_EVENTS =

i_save = 'X'

  • is_variant =

tables

t_outtab = it_spool[].

3. >Function :RSPO_OUTPUT_SPOOL_REQUEST

exporting

spool_request_id = ls_spool_id-id.

NB: data : ls_spool_id type sp01r_id,

Please try to do like this...

Any problem you have then please ask me...and tell me your task in details...and program also...what you have done..

Regards,

sujeet

Read only

Former Member
0 Likes
940

Hi Sujeet

Still I could get the pages in Spool .. . I created spool after ALV display... but the no of pages ..showing 0..

I need to get the pages whatever it displayed in the output screen.

Pls Advise.

Thanks

Arunachala.G

Read only

SujeetMishra
Active Contributor
0 Likes
940

hello Arunachala,

please tel me how you are checking your spool output?

is it generating spool number ?

In spool is there no any entry or ?

please explain me in details.

regards,

sujeet

Read only

Former Member
0 Likes
940

H i Sujeet

I am using the Fn module RSPO_OPEN_SPOOLREQUEST by passing destination parameter as LP01.

Spool Request created but no pages..

Pls advise

Thanks

Raama.G

Read only

0 Likes
940

Hello Arunachala,

Please check this wheather u are paasing ur layout or not..make one breakpoint on this check in debug mode

CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'

EXPORTING

DEST =

  • LAYOUT = ??????

  • NAME =

Regards,

sujeet

Read only

Former Member
0 Likes
940

Hi Sujeet

I tried with Layout also.. Only Spool is created but no pages. I tried with ALV_gri_display parameter IS_PRINT by passing the print function .

Eventhough I am not able t achieve this. I tried some code that you have sent .PLs advice regarding the same with code.

Thanking you

Arunachala.G