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

Program to Print Preview from Spool

Former Member
0 Likes
4,070

Hello gurus,

I hope you guys could help me out...my requirement is to write an ABAP program that receives a spool number and displays its print preview to the user from there user can choose to print or delete the spool number

Any advices ?:)

14 REPLIES 14
Read only

Former Member
0 Likes
2,238

Hi,

y dont you use the standard transactions

sp01 or sp02

in which the user can see all the spool requests...

thanks & regards,

Venkatesh

Read only

varma_narayana
Active Contributor
0 Likes
2,238

Hi ..

Call this FM to generate the Print preview from SPOOL

CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'

EXPORTING

spool_request_id = hrqident

EXCEPTIONS

OTHERS = 0.

<b>REWARD IF HELPFUL</b>

Read only

0 Likes
2,238

this fm directly prints the spool...

i want to print preview it

Read only

0 Likes
2,238

Hi Chun,

Use the below Function module:

RSPO_DISPLAY_SPOOLJOB passing the spool job number to this..

It will display the preview of the spool and if the user wants to print it, he can goto LIST-->PRINT in the menu bar..

Thanks and Best Regards,

Vikas Bittera.

Read only

0 Likes
2,238

this could solve the problem if i wanted to print preview a list...

but it doesnt work to print preview smarform(otf)

is there another similiar FM to this specifically for smartform?

but thanks very much..this was interesting

Read only

Former Member
0 Likes
2,238

Hi,

copy from this standard program..it will help you

RSNAST00

thanks

vivekanand

Read only

Former Member
0 Likes
2,238

Do a BDC program for following:

CALL transaction SP01

Enter the Spool No.

CLick Execute

select the checkbox & click on the spool

Read only

0 Likes
2,238

thanksss

will resolve to this when there is no other possibility

ehehe

Read only

0 Likes
2,238

Hello Prashant,

I tried BDC and when I click preview for the smartform...its is displayed as a list instead of a a OTF format form

this however doesnt occur when i manully access SP01

any idea why this is happening?

Read only

Former Member
0 Likes
2,238

Execute SP01

Goto->Display Request -> Settings

Select Graphical Format

Read only

0 Likes
2,238

thanks prashant...but its already in graphical mode...

when i access SP01 with out BDC it displays the form...

however when i access SP01 via BDC....it displays the list ( i checked the setting at this point and it is still graphical)

could this be because i am list processing mode and SAP automatically converts it into a list as well?

Read only

0 Likes
2,238

thanks prashant...but its already in graphical mode...

when i access SP01 with out BDC it displays the form...

however when i access SP01 via BDC....it displays the list ( i checked the setting at this point and it is still graphical)

could this be because i am in list processing mode and SAP automatically converts it into a list as well?

Read only

Former Member
0 Likes
2,238

Yes that could be the reason otherwise if you have set to Graphical mode then SAP will display the output in graphical format.

Read only

0 Likes
2,238

wonder is there is any other way to do this