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

generate spool

Former Member
0 Likes
826

i created a report for downloading PO in pdf format.

daily released PO is converted into pdf format and stored in app.server.

first report finds what are the released PO for the particular day using CDHDR table.Next report executes ME22n to create messages and run ME9F to generate SPOOL no one by one.

while i was running foreground, spool no and pdf file were generated.

in background i did't get spool no.it's displayed like this.

Unable to initialise ABAP Control Framework ...

Unable to initialise ABAP Control Framework ...

Control Framework: Fatal error - GUI cannot be reached

Runtime error RAISE_EXCEPTION has occurred

Unable to initialise ABAP Control Framework ...

Unable to initialise ABAP Control Framework ...

Control Framework: Fatal error - GUI cannot be reached

Runtime error RAISE_EXCEPTION has occurred

Spool No was not generated

Purchase Document No: 4100034258

please help me to solve this problem.

3 REPLIES 3
Read only

Former Member
0 Likes
642

generate spool is possible or not while i'm running in background?

only the problem, generating spool no.

Read only

Former Member
0 Likes
642

Spool request is generated when report is run in background.

But to store that file which FM you are using? If you are using GUI_UPLOAD/GUI_DOWNLOAD/WS_UPLOAD/WS_DOWNLOAD, these FMs do not work in background.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
642

after getting the spool no,

call function 'CONVERT_ABAPSPOOLJOB_2_PDF'

exporting

src_spoolid = spool

no_dialog = ' '

tables

pdf = it_pdf[].

i convert the spool no into PDF format.

problem:

before getting the spool no that type error occured.