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: 

Spool related

Former Member
0 Kudos

Hi All,

What are the other ways to send your report o/p to spool except SUBMIT....TO SAP-SPOOL.

My requirement is to store report o/p somewhere , where user can go and view the o/p.

I have used SUMBIT...TO SAP-SPOOL but since my submit program have TREE STRUCTURE as o/p, it shows blank screen when i run my main program.I need to click back button then only further processing happens.I dont want this blank screen to come.

So any body could tell me what are the other ways to store your report o/p for SUBMIT program ,this will be a great help.

Thnaks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Arshad,

One way is to Submit a report in the background and send the list to spool from where you can do further processing.

  • If the program is run in the background the

  • difference report is send to spool.

SUBMIT rm07idif WITH SELECTION-TABLE li_selection

EXPORTING LIST TO MEMORY AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = li_listobject

EXCEPTIONS

not_found = 1

OTHERS = 2.

CHECK sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = li_listobject

EXCEPTIONS

empty_list = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

Cheers

Sunny

Rewrd points , if helpful

3 REPLIES 3

Former Member
0 Kudos

Hi Arshad,

One way is to Submit a report in the background and send the list to spool from where you can do further processing.

  • If the program is run in the background the

  • difference report is send to spool.

SUBMIT rm07idif WITH SELECTION-TABLE li_selection

EXPORTING LIST TO MEMORY AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = li_listobject

EXCEPTIONS

not_found = 1

OTHERS = 2.

CHECK sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = li_listobject

EXCEPTIONS

empty_list = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

Cheers

Sunny

Rewrd points , if helpful

Former Member
0 Kudos

Hi arshad,

1. Why does the back button, come into picture ?

2. How is ur program(submit program)

It must have a selection - screen (not compulsory)

then on execute,

it must display the report (using write, alv etc)

This is the basic FLOW.

3. How is it for the one u are using as submit program.

Run it in se38 directly, and let us know.

regards,

amit m.

Former Member
0 Kudos

Hi Amit,

I am calling program XYZ from program ABC as below.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

copies = 1

list_name = 'XYZ'

list_text = 'XYZ'

immediately = ' '

release = 'X'

new_list_id = 'X'

line_size = sy-linsz

layout = 'X_PAPER'

sap_cover_page = 'X'

cover_page = 'X'

receiver = 'SAP*'

department = 'System'

no_dialog = 'X'

IMPORTING

out_parameters = params

valid = valid.

IF valid <> space.

SUBMIT XYZ USING SELECTION-SET 'W1'

TO SAP-SPOOL

SPOOL PARAMETERS params

WITHOUT SPOOL DYNPRO

AND RETURN.

ENDIF.

..............

.............

.............. Some more code lines..........

Now the problem is my XYZ program have TREE STRUCTURE as output.So when i am executing ABC

program.One blank screen is coming ( may be because of TREE STRUCTURE we have in XYZ program )

and when i click back button of this.O/P of ABC is getting displayed.

So I want to remove displaying of this blank screen.

Why i am using SUBMIT...TO SAP-SPOOL bcos i want to store o/p of program XYZ ( Which is a tree structure )

somewhere so that user can view it later on.

So can we achieve this by any other way.OR can it possible to remove showing blank screen with using SUBMIT...TO SAP-SPOOL only.

Thanks in advance