How do you preview using a spool request number

How do you preview using a spool request number?
I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
Suggestions?

*With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
REPORT  ypl_test_display_spool MESSAGE-ID zm_print.
PARAMETERS: rqident LIKE tsp01-rqident,
                        rqdocty LIKE tsp01-rqdoctype.
*--- there may be more types need to separate..., so use case...
CASE rqdocty.
  WHEN 'OTF' OR 'SMART'.
    PERFORM display_form.
  WHEN OTHERS.
    PERFORM display_others.
ENDCASE.
*&      Form  DISPLAY_FORM
      display form type spool...
FORM display_form.
  DATA: wstr_otf_control TYPE itcpp.
  DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
  DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
  DATA: wstr_retcode LIKE itcpp.
*--- return spool raw data
  CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
      rqident              = rqident
    TABLES
      buffer               = wtbl_buffer
    EXCEPTIONS
      no_such_job          = 1
      job_contains_no_data = 2
      selection_empty      = 3
      no_permission        = 4
      can_not_access       = 5
      read_error           = 6
      type_no_match        = 7
      OTHERS               = 8.
  IF sy-subrc <> 0.
    MESSAGE s013 WITH text-001.
    EXIT.
  ENDIF.
  LOOP AT wtbl_buffer .
    wtbl_otf-tdprintcom = wtbl_buffer(2).
    wtbl_otf-tdprintpar = wtbl_buffer+2.
    APPEND wtbl_otf.
  ENDLOOP.
*--- some data to pass to this parameter, may not need...from SP01...
  wstr_otf_control-tdcopies = 1.
  wstr_otf_control-tdappl = 'TX'.
  wstr_otf_control-tddest = 'LOCL'.
  wstr_otf_control-tdpages = 0.
  wstr_otf_control-tdnoprint = 'X'.
  CALL FUNCTION 'DISPLAY_OTF'
    EXPORTING
      control = wstr_otf_control
    IMPORTING
      RESULT  = wstr_retcode
    TABLES
      otf     = wtbl_otf.
  IF wstr_retcode IS INITIAL.
*--- message...
  ENDIF.
ENDFORM.                    "DISPLAY_FORM
*&      Form  display_others
      display other types, may more types needed to separate...
      you can refer current version of SAP report RSPOLST2
FORM display_others.
  CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
    EXPORTING
      rqident              = rqident
    EXCEPTIONS
      no_such_job          = 1
      job_contains_no_data = 2
      selection_empty      = 3
      no_permission        = 4
      can_not_access       = 5
      read_error           = 6
      OTHERS               = 7.
  IF sy-subrc <> 0.
    MESSAGE s013 WITH text-001.
  ENDIF.
ENDFORM.                    "display_others

Similar Messages

  • How to get data from OTF spool request number

    Hi all,
            How to get OTF Data from the spool request number (OTF)?
            How to create spool request from the OTF Data?
    Regards,
    Sunil Kumar

    Hi,
    Check this links:
    http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm
    Sending Mail from SAP
    https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children

  • How to get the spool request number ?

    Hi All,
    I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
    the transaction the print screen comes where I can do
    print preview or print.
    Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
    How do I get the spool request number ?
    Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
    Please let me know.
    Answers will be awarded...
    Tushar

    Hi,
    You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
    Regards,
    Gagan

  • Reprinting using same spool request

    Hello Friends,
      We have a business requirement to reprint of the SAP documemt (delivery, packing list etc).   We have a output procedure attached to each SAP document, during the document process, system triggers the output and issues a output for the physical printer assigned to device. 
    Now we have a requirement to re use the output to print on other physical printers, it mean when a spool is generated from the first time , then by using the same spool request Number instead regenerating the new spool, we need to generate output from different physical printers.
    Please suggest how this can be possible -
    1.  How we can reuse the same spool for reprinting
    2.  How to communicate system to print in different physical printers using existing spool
    Appreciate your
    Best Regards,
    Goutham

    Hello
    1. How we can reuse the same spool for reprinting
    You can, but, provide you have Value for authorization (TSP01SYS-RQAUTH) to do so.
    In general, reprinting of spools is avoided.
    Instead you can add again the output type manually and execute.
    2. How to communicate system to print in different physical printers using existing spool
    But, you can't do this.
    Again same suggestion, instead you can manually add the output type & provide the printer details in the transaction doc and execute.
    Regards
    JP

  • How to delete the spool request number

    HI Masters,
                My program creates a spool request. And i want to delete that spool request number? How to delete that??
                  Thanks in advance.

    hi
    good
    The program are RSPO0041 or RSPO1041.
    This is handy whenever you encounter a user who managed to create a lot of spool requests which are choking your system.
    Deleting them with SP01 will be too slow and you will get time out if it exceed the online time limit specify by your basis people.
    <b><REMOVED BY MODERATOR></b>
    thanks
    mrutyun^
    Message was edited by:
            Alvaro Tejada Galindo

  • How can i find the spool request number in script

    Hi Experts,
    I need solution that how can i see the spool request number, bcoz i need to covert my script into pdf format.
    Thanks and Regards.
    Venkat N

    There isn't any correspondence. I seem to recall that Amazon added that feature to the Kindle app but I haven't checked lately.

  • How to see the spool request number

    hi experts,
    how to see the spool request number of any object......
    may be form or report........

    U can go to SP01/SP02.
    For generating spool u can look into this code.
    FORM write_to_spool.
      DATA : l_f_list_name LIKE pri_params-plist,
             l_f_destination LIKE pri_params-pdest,
             l_f_spld LIKE usr01-spld,
             l_f_layout LIKE pri_params-paart,
             l_f_line_count LIKE pri_params-linct,
             l_f_line_size LIKE pri_params-linsz,
             l_f_out_parameters LIKE pri_params,
             l_f_valid.
      l_f_line_size = 255.
      l_f_line_count = 65.
      l_f_layout = 'X_65_255'.
      l_f_list_name = sy-repid.
    to get defult spool device for the user
      SELECT SINGLE spld INTO l_f_spld FROM usr01 WHERE bname = sy-uname.
      IF sy-subrc = 0.
        MOVE l_f_spld TO l_f_destination.
      ENDIF.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            ARCHIVE_ID             = C_CHAR_UNKNOWN
            ARCHIVE_INFO           = C_CHAR_UNKNOWN
            ARCHIVE_MODE           = C_CHAR_UNKNOWN
            ARCHIVE_TEXT           = C_CHAR_UNKNOWN
            AR_OBJECT              = C_CHAR_UNKNOWN
            ARCHIVE_REPORT         = C_CHAR_UNKNOWN
            AUTHORITY              = C_CHAR_UNKNOWN
            COPIES                 = C_NUM3_UNKNOWN
            COVER_PAGE             = C_CHAR_UNKNOWN
            DATA_SET               = C_CHAR_UNKNOWN
            DEPARTMENT             = C_CHAR_UNKNOWN
               destination            = l_f_destination
            EXPIRATION             = C_NUM1_UNKNOWN
               immediately            = 'X'
            IN_ARCHIVE_PARAMETERS  = ' '
            IN_PARAMETERS          = ' '
               layout                 = l_f_layout
               line_count             = l_f_line_count
               line_size              = l_f_line_size
               list_name              = l_f_list_name
            LIST_TEXT              = C_CHAR_UNKNOWN
            MODE                   = ' '
            NEW_LIST_ID            = C_CHAR_UNKNOWN
            NO_DIALOG              = C_FALSE
            RECEIVER               = C_CHAR_UNKNOWN
            RELEASE                = C_CHAR_UNKNOWN
            REPORT                 = C_CHAR_UNKNOWN
            SAP_COVER_PAGE         = C_CHAR_UNKNOWN
            HOST_COVER_PAGE        = C_CHAR_UNKNOWN
            PRIORITY               = C_NUM1_UNKNOWN
            SAP_OBJECT             = C_CHAR_UNKNOWN
            TYPE                   = C_CHAR_UNKNOWN
            USER                   = SY-UNAME
          IMPORTING
            OUT_ARCHIVE_PARAMETERS =
               out_parameters         = l_f_out_parameters
               valid                  = l_f_valid
          EXCEPTIONS
               archive_info_not_found = 1
               invalid_print_params   = 2
               invalid_archive_params = 3
               OTHERS                 = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      IF l_f_valid NE space.
        NEW-PAGE PRINT ON PARAMETERS l_f_out_parameters.
        WRITE : /5 'Material No.',
                 25 'Message Type',
                 40 'Message Issued'.
        ULINE.
        LOOP AT g_t_message_table WHERE type = 'E'.
          WRITE : / g_t_message_table-matnr UNDER 'Material No.',
                    g_t_message_table-type UNDER 'Message Type',
                    g_t_message_table-message UNDER 'Message Issued'.
        ENDLOOP.
        NEW-PAGE PRINT OFF.
      ENDIF.
    ENDFORM.                    " WRITE_TO_SPOOL
    Regards

  • How do you preview a composition fit the intended viewport?

    Hi from 20 degrees C York UK :-)
    Ok I just finished a composition for an iphone, when watched on After effects it looks a good size but when I saw it on the intended iPhone it was too small. So my question is please...
    "How can you preview a movie clip / composition so it has the same scale as the intended output. Put another way, If my video clip is for YouTube how can I preview to see if my movie clip looks the right size before export."
    Thanks in advance,
    David

    pimplebottom wrote:
    Ok I just finished a composition for an iphone, when watched on After effects it looks a good size but when I saw it on the intended iPhone it was too small.
    Of course it was smaller but what do you mean by "too small?" Do you mean, say, the text you created at full high def is illegible on the iPhone? There are minimum pixel dimensions and specifications for discernible detail, try googling "minimum visual content for iPhone" or something like that. Try searching the Apple site for developer specifications and suggestions for minimum pixel dimensions for accurately discerning detail.
    The iPhone 5s screen has only 1136 x 640 discreet pixels. My anecdotal experience suggests minimum legible text is about 20 pixels when viewed at arm's length, a meter or more. Text on websites can be much smaller because it scales as vectors. Video presents fixed pixels; they don't scale, they just get bigger and blockier.

  • How do you make mobile numbers the default number used in your contacts for sending text?

    How do you make mobile numbers the default number used in your contacts for sending text?

    Go to your contacts, find the contact that you wish to text, hit 'edit', and move that contact's numbers around until the mobile number is at the top. Arduous I know, but it works. Now when you go to text that person, the mobile number should be the default.
    Best.

  • How do you start using calendar?

    How do you start using calendar? Adding dates,etc?

    One concept that is not described well is that your Calendar display is the Union of all the available Calendars selected. You can have lots of calendars open, and the events from each and every one will be shown in the summary Calendar display -- sort of like they were on transparencies overlaid on each other.
    Where you put your Master Calendar depends if you want to share your Master Calendar across multiple devices or other Users.
    The default calendar you "just create" is strictly private -- not available on any other device or any other User.
    To create a shareable Master Calendar, you need to set up an account on a calendar sharing site that is visible on the Internet -- not likely to be your home Mac. You can use Google calendar, Yahoo Calendar, iCloud calendar, any Server that uses CalDav, Microsoft Exchange, and others. Once established that Master Calendar can be accessed from anywhere on the Internet through another computer, an iPhone, or other "smart" devices.

  • How do you start using passbook?

    How do you start using passbook?

    Thx NJ,
    I have been using Apple products since 1983, and I too am embarassed.
    This is not an APP I need at all right now and I think I will wait until it is fixed so that I and others do not have to do all those silly work-a-rounds.
    I am baffled that Apple let this "Failbook" out.
    Thx Again to all

  • Function module to get spool request number

    Hi Experts,
    Is there a FM which basically returns the Spool Request Number generated by a particular Program / User ?
    System: 4.6C
    Thanks a lot.

    one more is there
    'RSPO_OPEN_SPOOLREQUEST'
    it will give the appropriate solution to your query.
    another one ,
    SUBMIT (p_repid) TO SAP-SPOOL
                       SPOOL PARAMETERS mstr_print_parms
                       WITHOUT SPOOL DYNPRO
                       AND RETURN.
    but it will create infinite loop , so use abap memory and export  a flag variable with
    a value to restricted the excution  of the above submit only once  and all the internal
    table and other data which you want in your program . below is the example .
    importing variable value set at first time to restrict the infinite loop .
    IMPORT var FROM MEMORY ID 'abc' .
      var = var + 1 .
    *checking variable to restricted scecond time exction of this block of code
    *IF var = 1 .
       v_memid = 1 .
       EXPORT var TO MEMORY ID 'abc' .  (flag variable to restrict the excution only once ) 
       EXPORT it_pernr it_pernr_quali v_memid TO MEMORY ID 'bcd'.(internal table and otherdata)  
    submitting the spool request
        SUBMIT (p_repid) TO SAP-SPOOL
                         SPOOL PARAMETERS mstr_print_parms
                         WITHOUT SPOOL DYNPRO
                         AND RETURN.
      ENDIF.

  • How to get an answer for Support Request Number 12...

    How to get an answer for Support Request Number 1277702580 ?

    Has your speed problem been resolved, or do you need assistance?
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Relation with spool request number and invoice number

    Hi ALL,
    I have developed two function modules the first one generates the Invoice Number for a particular customer.
    Now on passing this Invoice Number to the second function module, I should get the Spool Request Number.
    I have developed the first function module.
    That Spool Request Number would display the invoice of the customer in the PDF format.
    So please help me how to get that Spool request number.
    Thanks and regards
    rama

    Hi,
    in your case when ever invoice created you need to store the data like spool number,invoice number,user name etc..into a <b>ZTable</b>, and then when ever you enter the invoice select the data from the ZTABLE and convert the spool to PDF and show it.
    Regards
    vijay

  • How do you apply freight to a PO number on a second invoice?

    Some of our vendors will bill us later for freight from a PO.  How do you apply this to a PO number?  The only way I can see this happen is if you create a change order and add the freight to a line on the PO.  Any ideas would be appreciated.  

    Sampleconstruct wrote:
    .... or you can use Soundtrack Pro (export your file to SP with command shift+w) which comes with Logic Studio as an external Audio editor, do all the Plug rendering in there and bring the file back into Logic which works great for me.
    I tried to find the thread we had going on here about this very thing, but couldn't find it (it probably got deleted, because it was informative...)
    But opening Soundtrack Pro from Logic is THE way to do this. If I had known how easy this was, I would've been doing this months ago.
    Just this week, mixing a song, and there was a serious plosive on a word on the lead vocal rack. I hit shift/W, and the vocal file opened in Soundtrack Pro. I highlighted the plosive, applied a low cut from the channel EQ, flattened it, and quit STP.
    The vocal file in Logic immediately updated, and it was done. The EQ was applied permanently to that one section of the vocal file, and I didn't have to automate anything, or export anything.
    It took less than a minute. Seriously... this is the way to handle destructive edits to audio. It's VERY easy to do.

Maybe you are looking for

  • Iphone 3G will not restore

    I updated my itunes to 10.1.2 and when I tried to sync my iphone it told me that my iphone software needed to be updated. My phone is now in recovery mode and will not restore. itunes tells me it needs to be updated and restored. It just won't restor

  • Cardinality in BMM layer

    Dear All , I have a question in the rpd in OBIEE that is what difference we will get when we have given an option in the BMM layer as 1 to many 0r many to 1 to 1 in the Joining tables .I would like to know that this cardinality will give any differen

  • How to compress SOAP response generated by weblogic 7.x web service??

    can anybody tell me how to compresse SOAP response generated by weblogic webservice before sending it to client. i have my handler chain to process that response but how to compress that response .My webservice generates response that contains lots o

  • Coming out of a function module

    suppose i process a statment and its wrong i need to come to the output screen of the FM without processing any other statements.Is there a way out?

  • Why would you need an H.264 hardware encoding device?

    I am a casual user of Adobe Premiere Pro and just upgraded to CS5.5.   I have been reading threads and someone said that he has problems with the Matrox encoder.  I can import my video and make and DVD so why would you need another hardware solution?