How to genrate the spool request for the smart form.

Hi Friends,
I have a page to FAX to vendor for which i have made a smartform for the page to be send. For this purpose i have to genrate the spool request without displaying the output of the smartform. The program should give the spool number genrated.
can you please suggest somthing.
Regards,
Vidya.

hi
for this when u r callin the form write some code in u r program
IF RADIOBUTTON = 'X' .     "GET THE SPOOL
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ELSE.
CONTROL_PARAMETERS-NO_DIALOG = ' '.
ENDIF.
and pass this to the calling form.
Please Close this thread.. when u r problem is solved. Reward if Helpful
Regards
Naresh Reddy K

Similar Messages

  • How to debug the smart forms

    Hi All,
    Can any body guide me how to debug the smart forms.
    Thanks & Regards,
    Satish.

    Hi,
    The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.
    Procedure:
    Open the smartform we want to debug.
    Goto Environment -> Function module name.
    Open the function module in SE37. From the menu GOTO -> main program. Open the last include.
    This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.
    Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.
    Put a breakpoint at any point you want.
    If we issue any doc which triggers this form, when the control reaches the break point it will stop.
    Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.
    So, always put a session break point in the related function module.
    We can use SFTRACE transaction to know the sequence of the control flow.
    If you want to break at each and every text that is printed on the output form put the break points in the forms.
    1. %write_text  to break at text element.
    2. %WRITE_TEXT_MODULE  to break at text module.
    3. %WRITE_INCLUDE_TEXT  to break at include text.
    Please put a break point at the first sy-subrc check.
    If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.
    Its easy to understand the sequence of the printing if we put a breakpoint as stated above.
    Regards,
    Satish.

  • How To Get The Smart Form Into The PDF File

    Hello Friends,
    Can Any One Tell How To Get Smart Form in PDF.
    I used this RSTXPDFT4 Program.
    It is asking The Spool Number.
    How to get the Spool Number.

    the steps are
    SmartForms Output to PDF
    There is a way to download smartform in PDF format.
    Please do the following:
    1. Print the smartform to the spool.
    2. Note the spool number.
    3. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the
    noted spool number.
    how  to get spool number
    The simplest method is to read the spool table directly, table TSP01
    example code
    REPORT zsuresh_test.
    * Variable declarations
    DATA:
    w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    * Internal tables declaration
    * Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    * Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    * Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    * This function module call is used to retrieve the name of the Function
    * module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    * VARIANT = ' '
    * DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * Calling the SMARTFORM using the function module retrieved above
    * GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    * format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
                                                        " for print preview
    w_cparam-getotf = 'X'.
    * Printer name to be used is provided in the export parameter
    * OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    * ARCHIVE_INDEX =
    * ARCHIVE_INDEX_TAB =
    * ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    * MAIL_APPL_OBJ =
    * MAIL_RECIPIENT =
    * MAIL_SENDER =
    output_options = w_outoptions
    * USER_SETTINGS = 'X'
    IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    * JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    t_otf[] = t_otf_from_fm-otfdata[].
    * Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    * ARCHIVE_INDEX = ' '
    * COPYNUMBER = 0
    * ASCII_BIDI_VIS2LOG = ' '
    * PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    * BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    * To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    * EXPORTING
    * WINDOW_TITLE =
    * DEFAULT_EXTENSION =
    * DEFAULT_FILE_NAME =
    * FILE_FILTER =
    * INITIAL_DIRECTORY =
    * WITH_ENCODING =
    * PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    * USER_ACTION =
    * FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 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.
    * Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    * presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    * APPEND = ' '
    * WRITE_FIELD_SEPARATOR = ' '
    * HEADER = '00'
    * TRUNC_TRAILING_BLANKS = ' '
    * WRITE_LF = 'X'
    * COL_SELECT = ' '
    * COL_SELECT_MASK = ' '
    * DAT_MODE = ' '
    * CONFIRM_OVERWRITE = ' '
    * NO_AUTH_CHECK = ' '
    * CODEPAGE = ' '
    * IGNORE_CERR = ABAP_TRUE
    * REPLACEMENT = '#'
    * WRITE_BOM = ' '
    * TRUNC_TRAILING_BLANKS_EOL = 'X'
    * WK1_N_FORMAT = ' '
    * WK1_N_SIZE = ' '
    * WK1_T_FORMAT = ' '
    * WK1_T_SIZE = ' '
    * IMPORTING
    * FILELENGTH =
    tables
    data_tab = T_pdf_tab
    * FIELDNAMES =
    * EXCEPTIONS
    * FILE_WRITE_ERROR = 1
    * NO_BATCH = 2
    * GUI_REFUSE_FILETRANSFER = 3
    * INVALID_TYPE = 4
    * NO_AUTHORITY = 5
    * UNKNOWN_ERROR = 6
    * HEADER_NOT_ALLOWED = 7
    * SEPARATOR_NOT_ALLOWED = 8
    * FILESIZE_NOT_ALLOWED = 9
    * HEADER_TOO_LONG = 10
    * DP_ERROR_CREATE = 11
    * DP_ERROR_SEND = 12
    * DP_ERROR_WRITE = 13
    * UNKNOWN_DP_ERROR = 14
    * ACCESS_DENIED = 15
    * DP_OUT_OF_MEMORY = 16
    * DISK_FULL = 17
    * DP_TIMEOUT = 18
    * FILE_NOT_FOUND = 19
    * DATAPROVIDER_EXCEPTION = 20
    * CONTROL_FLUSH_ERROR = 21
    * OTHERS = 22
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Do reward if helpful
    Edited by: sharad narayan on Apr 4, 2008 2:14 PM
    Edited by: sharad narayan on Apr 4, 2008 2:18 PM

  • How to create the multiple spool requests for a single report.

    Hi gurus,
                     I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
    now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
    And one more question is can we create a spool request for a report which is running in online.
    waiting for inputs frm gurus.

    Hello,
    As per my knowledge for creating new spool id you will have to set
    output_options-tdnewid = 'X'.
    and then using
    job_output_info-spoolids
    create a pdf using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Rachana.

  • How to create a spool requset for 'z program'.

    Hi,
    Could anybody please tell me how to generate a spool request for a Z program. and how to check the spool request.
    Regards
    sathish

    Hi ,
    You can check the following code for reference
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          eventid                 = gd_eventid
          eventparm               = gd_eventparm
          external_program_active = gd_external_program_active
          jobcount                = gd_jobcount
          jobname                 = gd_jobname
          stepcount               = gd_stepcount
        EXCEPTIONS
          no_runtime_info         = 1
          OTHERS                  = 2.
    ENDFORM.                    " get_job_details
    *&      Form  obtain_spool_id
    To obtain the spool ID generated
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004 WITH gd_spool_nr.
      ELSE.
        MESSAGE s005.
      ENDIF.
    ENDFORM.                    " obtain_spool_id

  • Spool Request for 365 days?

    Hi Gurus,
    1.     One of my client wants the Spool request to be stored for 365 days
    So please let me know how can I store Spool request for 365 days?
    2.     By default how many days Spool Request is stored?
    3.     Any Spool related Parameter to hold the spool request for days?
    Your response highly appreciated
    Regards
    Ricky Smith
    Message was edited by:
            Ricky smith

    go into SM37 and cancel scheduling of SAP_REORG_SPOOL
    then, you can schedule program RSPO1041,
    check option at the bottom, you can specify usernames (creator).
    click on the arrow on the right, click on exclude single value and put your username
    adapt other parameters in this screen accordingly. call it SAP_REORG_SPOOL
    shchedule the same program and put parameters for 365 days four your special username only. call it SAP_REORG_SPOOL_SPC
    Result: you have 2 scheduled jobs:
    1. job that delete every old spool except for your special user
    2. job that delete 365 days old spool for your special users.
    Please award points if useful.
    Thaks.

  • How to create a spool request

    Hi all,
    Can anybody tell me how to create a spool request for a background job programatically
    Regards
    Yathish
    Message was edited by: Yathish
    Rich thanks for your reply,
    But there is no write statement in the backbround job. Can u please explain me how to do it in detail
    Thanks in advance
    Yathish
            Yathish Gundlupet

    That's right, in order for a program to produce a spool request, it either must create a list output using WRITE statements, or it must produce a sapscript or smartform output.
    In the first case, a simply WRITE statement at the end of your program will work.
    WRITE:/ 'Program has completed successfully'.
    Regards,
    Rich Heilman

  • How  to  crate a spool number for the abap program

    hi
    how  to  create a spool number for the abap program

    Hi,
    Check this thread
    how to create a spool requset for 'z program'.
    Regards,
    Satish

  • How to get the spool id or how to create a spool id for the report .

    hi,
    how to get the spool id or how to create a spool id for the report .
    this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
    my requirement is to download a pdf file from the alv grid list.

    Hi Raghu,
    Execute this program.
    REPORT  ZTEST_3318                              .
    tables: usr01.
    perform send_report_to_spool.
    *&      Form  send_report_to_spool
          text
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    *&      Form  write_summary
          text
    -->  p1        text
    <--  p2        text
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary
    This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
    After that use that spool for your purpose.
    If Useful award point

  • FM to release the spool  request for printing

    I have requirement one of my program generate the spool request.
    now i need to schedule the print job in background.
    can any one help in specifing the Funtion modulde that can be used to releasing the spool request for printing

    Hi ,
    Please can one specify what are the parameters to be populated to make it run in the back ground
    right know i'm populating these fields.
    In SP01 it showing status as "Frontend Unavaliable".
    if i schedule the program in back ground.
    CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
      EXPORTING
       COPIES                         = 1
       DEVICE                         = 'LOCL'
      DIVISION                       = '*'
       ENDPAGE                        = 0
       PRIO                           = 1
      RECEIVER                       = '*'
      REQEST_TITLE                   = '*'
        spool_request_id               = '9817'
      STARTPAGE                      = 0
      TELELAN                        = '*'
      TELENUM                        = '*'
      POSNAME                        =
      ACTTIME                        =
    TABLES
      ATTRIBUTES                     =
    EXCEPTIONS
       ARCHIVE_DEST_INVALID           = 1
       ARCHIVE_DEST_NOT_FOUND         = 2
       ARCHIVE_DEST_NO_RIGHT          = 3
       CANNOT_ARCHIVE                 = 4
       CHANGE_ARCHDEST_NO_RIGHT       = 5
       CHANGE_COPIES_NO_RIGHT         = 6
       CHANGE_DEST_NO_RIGHT           = 7
       CHANGE_DEVTYPE_NO_RIGHT        = 8
       CHANGE_PRIO_NO_RIGHT           = 9
       CHANGE_TELENUM_NO_RIGHT        = 10
       CHANGE_TITLE_NO_RIGHT          = 11
       DEST_INVALID                   = 12
       DEST_NOT_FOUND                 = 13
       DEST_NO_RIGHT                  = 14
       INTERNAL_PROBLEM               = 15
       INVALID_FAX_ATTRIBUTE          = 16
       INVALID_PARAMETERS             = 17
       NON_OWNER_NO_RIGHT             = 18
       NO_LAYOUT                      = 19
       NO_SPOOL_REQUEST               = 20
       OUT_AGAIN_NO_RIGHT             = 21
       SPOOLER_PROBLEM                = 22
       OTHERS                         = 23

  • How To Generate Spool request for a SAP-Script form

    How To Generate Spool request for a SAP-Script form

    Hai   Rahaman,
    After getting the print preview of the SCRIPT.
    Click On  PRINT.
    Buttom of the page one spool request will be generated by system.
    Go to  SP01.
    You Can Find  SPOOL Reqest Number.
    Regards.
    Eshwar.

  • RFFOEDI1 how to generate a single spool request for payment advices

    Hello,
    We are using RFFOEDI1 to create payment idocs to send to the bank and also create payment advices.  We have multiple payment methods that we using during a single payment run.  When we run F110, the system creates the payment advices as a separate spool request for each payment method in the payment run.  The users would like to see all the payment advices in a single spool request, regardless of the payment method.  Does anyone know if SAP is capable of this?
    Thanks,
    Mark

    We are on ECC 6.0, patch level 14.
    Thanks,
    Mark

  • Creation of spool request for a report without selection-screen.

    Hi Experts ,
    I need to create a spool request for ALV Grid report which is not having any selection-screen , after pressing F8 it will directly display the ALV Grid out put.
    Can any one help me how to run the above report in background which is not having selection-screen?
    Thank you & Regards.
    Rajasekhar.P

    HI,
    At transaction SE38 click Program -> Execute -> Background.
    Regards
    Sudheer

  • SPOOL REQUEST FOR SMARTFORM

    HI experts,
    how to create the spool request for smartform. can anyone help me. give me the complete procedure.
    thanks in advance for ur responce.

    The user which send the smartform to the spool (probably wf-batch) needs an output device. You can maintain this in SU01.
    Just look at sample code:
    1.Send Smart Form output to spool using the FM <ws_formname> (FM name derived from the export parameters of SSF_FUNCTION_MODULE_NAME).
    //Start of Code Sample
    DATA : ws_formname TYPE rs38l_fnam.
    TYPES: BEGIN OF ty_script,
    trans_ref LIKE eanl-anlage,
    cont_ref TYPE e_edmideservprovcontractid,
    trans_code TYPE char05,
    trans_reason TYPE char05,
    market_sect LIKE eanl-zzmktscode,
    efffrm_date LIKE sy-datum,
    mprn LIKE iflot-zzmprn,
    mlc TYPE char01,
    subbuild_no(40) TYPE c,
    build_no LIKE adrc-str_suppl1,
    dep_fare LIKE adrc-str_suppl3,
    post_town LIKE adrc-city1,
    post_code LIKE adrc-post_code1,
    asset_code LIKE egerh-kombinat,
    paymnt_code(2) TYPE c,
    model_code LIKE equi-typbz,
    manuf_code LIKE equi-herst,
    year_manuf LIKE equi-baujj,
    serial_no LIKE equi-sernr,
    meter_code TYPE char01,
    meter_mech(2) TYPE c,
    meas_cap TYPE zmeasur_cap,
    role_code TYPE char03,
    market_name LIKE eservice-serviceid,
    status TYPE char01,
    END OF ty_script.
    DATA: i_scriptdata TYPE STANDARD TABLE OF ty_script
    WITH HEADER LINE.
    DATA: wa_output_options TYPE ssfcompop,
    wa_control_params TYPE ssfctrlop,
    wa_spoolnum TYPE rspoid,
    wa_printdata TYPE efg_strn_printdata.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'Your Form Name'
    IMPORTING
    fm_name = ws_formname
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    CALL FUNCTION ws_formname
    EXPORTING
    control_parameters = wa_control_params
    c = wa_printdata
    IMPORTING
    job_output_info = wa_job_output_info
    TABLES
    i_scriptdata_input = i_scriptdata(Your Script Data)
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    MOVE wa_job_output_info-spoolids] TO wa_spoolids[.
    READ TABLE wa_spoolids INTO wa_spoolnum INDEX 1.
    IF sy-subrc = 0.
    DATA :id LIKE tsp01-rqident.
    MOVE wa_spoolnum TO id.
    ENDIF. .
    Comments-Id Contains the Spool Request for the given smart form
    //End of Code Sample
    Convert Smart Form Output to Raw
    Format
    2.Convert the Spool Output to OTF using the FM RSPO_RETURN_SPOOLJOB.
    //Start of Code Sample
    data i_soli LIKE soli occurs 0 with header line.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    rqident = id
    desired_type = 'OTF'
    TABLES
    buffer = i_soli
    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.
    Comments- i_soli contains the OTF data
    //End of Code Sample
    3.Convert the OTF using FM
    SX_OBJECT_CONVERT_OTF_RAW.
    DATA content_bin TYPE solix_tab.
    DATA objhead TYPE soli_tab.
    DATA i_soli_tab TYPE soli_tab.
    DATA boolean TYPE sx_boolean.
    DATA length TYPE so_obj_len.
    LOOP AT i_soli.
    APPEND i_soli TO i_soli_tab[].
    ENDLOOP.
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_RAW'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'RAW'
    CHANGING
    transfer_bin = boolean
    content_txt = i_soli_tab
    content_bin = content_bin
    objhead = objhead
    len = length
    Convert Smart Form Output to Raw
    Format
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    REward points if useful.

  • Spliting Spool Request for Dunning in background.

    Hi Experts,
    I'm having a requirement to split the spool request for every 1000 pages,as for more then 1000 pages for Dunning executed in background.
    the job is automaticaly canceled after 30 mn of execution
    => in F150, status of the printout is "Printout has terminated" .
    My requirement is to split the spool request using enhancement in print program.
    How can i split the spool request after 1000 pages and again print from 1001 to last.
    print program for F150 - SAPF150D2
    Thanks in advance.

    Hi Yusuf,
    There is no otherway to delete the spool request except giving the option delete in the authorization object S_SPO_ACT.Make sure that you havenot given the values SP01, SP0R under the authoriztion object S_ADMI_FCD. If you have given both  the authorization objects with the above mentioned values than that user will get the authorization to delete the spool requests created by the other users also. So if you want to restrict the user not to delete the spool requests created by the other users make sure , not to give him the values SP01, SP0R under the authoriztion object S_ADMI_FCD.
    Regards,
    Bharath.

  • How to create new spool request in smartforms??????

    hi all,
    i have to ctreate a new spool request for a smartform...
    The driver program for this smartform is a standard program.
    when i run the transaction, the spool for standard sap-script gets created but not for my smartform.
    the code is something like this:-
    wa_ssfcompop-TDDEST = 'LOCL'.
    wa_ssfcompop-TDIMMED  = space.
    wa_ssfcompop-TDNEWID = 'X'.
    wa_ssfcompop-TDFINAL = 'X'.
    *wa_ssfcompop-XSF = 'X'.
    wa_SSFCTRLOP-no_dialog = 'X'.
      CALL FUNCTION v_fm_name
        EXPORTING
         CONTROL_PARAMETERS = wa_SSFCTRLOP
          OUTPUT_OPTIONS     = wa_ssfcompop
          wa_rldri         = xrldri
          wa_rldrp         = xrldrp
          wa_rldru         = xrldru
          wa_t329p         = xt329p
          wa_resb          = xresb
          wa_rldrc         = xrldrc
          wa_vblkk         = xvblkk
          wa_vblkp         = xvblkp
          wa_rldrh         = xrldrh
          wa_rlvek         = xrlvek
          wa_reftab        = xreftab
          wa_lthu          = xlthu
          v_date           = v_date
          v_time           = v_time
          v_label          = v_label
          v_bzeit          = v_bzeit
          v_name1          = v_name1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_rldri         = xrldri
          it_rldrh         = xrldrh
          it_rldrc         = xrldrc
          it_vblkk         = it_vblkk
          it_vblkp         = it_vblkp
          it_rldrp         = it_rldrp
          it_rldru         = it_rldru
          it_t329p         = it_t329p
          it_resb          = it_resb
          it_rlvek         = it_rlvek
          it_reftab        = it_reftab
          it_lthu          = it_lthu
        EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Help would be greatly appreciated and definitely rewarded

    hi
    good
    Use the function module 'GET_PRINT_PARAMETERS'.
    sample:
    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 = g_copies
    COVER_PAGE = C_CHAR_UNKNOWN
    DATA_SET = C_CHAR_UNKNOWN
    department = ''
    destination = g_destination
    expiration = g_days
    immediately = ' '
    IN_ARCHIVE_PARAMETERS = ' '
    IN_PARAMETERS = ' '
    layout = 'X_65_200'
    line_count = 65
    line_size = 200
    list_name = g_listname
    list_text = g_listtext
    MODE = ' '
    new_list_id = 'X'
    PROTECT_LIST = C_CHAR_UNKNOWN
    no_dialog = 'X'
    receiver = 'SAP*'
    release = ' '
    REPORT = C_CHAR_UNKNOWN
    sap_cover_page = 'X'
    HOST_COVER_PAGE = C_CHAR_UNKNOWN
    PRIORITY = C_NUM1_UNKNOWN
    SAP_OBJECT = C_CHAR_UNKNOWN
    TYPE = C_CHAR_UNKNOWN
    USER = SY-UNAME
    USE_OLD_LAYOUT = ' '
    UC_DISPLAY_MODE = C_CHAR_UNKNOWN
    DRAFT = C_CHAR_UNKNOWN
    ABAP_LIST = ' '
    USE_ARCHIVENAME_DEF = ' '
    DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN
    PO_FAX_STORE = ' '
    NO_FRAMES = C_CHAR_UNKNOWN
    IMPORTING
    OUT_ARCHIVE_PARAMETERS =
    out_parameters = g_params
    valid = g_valid.
    IF g_valid <> space.
    NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.
    IF NOT tb_output3[] IS INITIAL.
    LOOP AT tb_output3 INTO wa_output3.
    PERFORM write_summary.
    ENDLOOP.
    ENDIF.
    Reward if useful...
    thanks
    mrutyun^

Maybe you are looking for

  • Windows update error: Code 80072F8F

    CODE 800A1391       80072F8F

  • 12vDC MacBook Pro Power Supply

    Looking for a real 12vDC Power Supply for my 13" MBP 2.53GHz Core2Duo. (12v to 120vAC) "Inverter" NOT acceptable! Total waste of energy to go from 12vDC to 120vAC then back down to DC voltage as is supplied with OEM 60w AC supply... anyone know of a

  • HT3207 Help, trying to switch my computer to high performance but not there

    Hey im just wondering how to switch my computer from energy performance to high performance, im going in system prefernces, energy saver and the option isnt there, would it be somewhere elsE

  • Last n records

    Yes – I'm working on a Sunday. Okay, here's the deal: I want to retrieve the last n (call it 5) records (non-sequential) from a table. I can easily do this by getting my query to sort desc, and then using maxrows so that it gives me the last 5 – but:

  • Sort ADN

    Hi everybody, I am developing a module, which load, in an byte array, and sort the ADN. The loading works perfectly with 200 different records in 13 sec. I load all the ADN in a huge buffer and I manage my record by using offset? My problem is that I