‎2007 Sep 03 11:34 AM
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 ?:)
‎2007 Sep 03 11:37 AM
Hi,
y dont you use the standard transactions
sp01 or sp02
in which the user can see all the spool requests...
thanks & regards,
Venkatesh
‎2007 Sep 03 11:59 AM
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>
‎2007 Sep 04 2:03 AM
this fm directly prints the spool...
i want to print preview it
‎2007 Sep 04 2:47 AM
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.
‎2007 Sep 04 4:02 AM
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
‎2007 Sep 03 12:11 PM
Hi,
copy from this standard program..it will help you
RSNAST00
thanks
vivekanand
‎2007 Sep 04 4:31 AM
Do a BDC program for following:
CALL transaction SP01
Enter the Spool No.
CLick Execute
select the checkbox & click on the spool
‎2007 Sep 04 5:04 AM
thanksss
will resolve to this when there is no other possibility
ehehe
‎2007 Sep 04 6:12 AM
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?
‎2007 Sep 04 7:07 AM
Execute SP01
Goto->Display Request -> Settings
Select Graphical Format
‎2007 Sep 04 7:21 AM
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?
‎2007 Sep 04 7:22 AM
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?
‎2007 Sep 04 7:23 AM
Yes that could be the reason otherwise if you have set to Graphical mode then SAP will display the output in graphical format.
‎2007 Sep 04 7:30 AM