Is there any FM to generate spool request for error log of a background job

Hi,
    I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever  errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log  or how can this be done? Kindly provide sample code if possible.
Thanks.
Nimish Dongare.

Hi Nimish,
How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
If u don mind, can u give me ur email id to communicate.
Thanks,
Shreekant

Similar Messages

  • 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.

  • Long time for generating spool request for smartforms

    Hi,
    I'm have designed a  smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
    The Code i used is below
    CALL FUNCTION lv_fname
      EXPORTING
          p_belnr                    = p_belnr
          p_bukrs                    = p_bukrs
          p_gjahr                    = p_gjahr
    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.
      Please help me out to sort this issue.
    Thanks,
    Ramesh
    Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AM

    Hi Rameshkumar,
    you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
    You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
    Regards
    Clemens

  • Generate spool request from an invoice

    Hi,
    I'd like to know is there any function module to generate an spool request from an invoice document generate previously by VF01 (VF04) SAP transaction code.
    I'd like to generate on demand a spool request over an invoice previously generated by SAP
    Anyone knows if it is possible?
    Thanks

    The billing process included the spool generation runs perfectly by stantard SAP funciontality.
    But I'd like to generate a spool request whenever I want for an invoice previously generated and printed.
    You know that for space requirements the spool request are deleted periodically, but I want to generate a spool request for an invoice, which spool request was generated and deleted. This behaviouir is reclaimed for a system process so, it's not possible to regenerated the spool request using the funcionality incluided in SAP by VF02, VF31 transactions code.
    I need a function module or something like that, so import and invoice document number and export and spool request.
    Thanks in advance,

  • Generate Spool request.

    Hi everybody.
    I've got a doubt on spool requests.
    My doubt is the following:
    Does the WRITE order generate any spool request?
    For example, if i have a report and i write down something on the screen output.
    Thanks in advance.

    Write command write lines on output list but it doesn't generate spool. For output one has to give the print command.
    Spool is generally used for printing layouts and output is converted into printable format .
    anya

  • Is there any way to generate Gantt chart by using oracle 9iDS?

    Is there any way to generate Gantt chart by using oracle 9i reports builder
    Can you please send me the link or more information on oracle 9iDS.
    Thanks

    Hi,
    Oracle9iDS itself doesn't support creating Gantt charts. The option oyu have is to use Oracle Graphics 6i, because there is no Graphics in 9i, and configure it to run with Oracle9i Forms. There exist a whitepaper at otn.oracle.com/products/forms that explains how to make Graphics 6i work with Forms 9i.
    Frank

  • Generating spool request

    Hi Experts,
    My rquirement is to generate spool request without getting the output displayed  on the screen.
    <fs_outtab> is the dynamic internal table containing data. It will have several fields.
    I want to send this data to spool so that it can be seen when the background job runs.
    But I do not want the output to be displayed on the screen.
    << Removed >> Please don't forward links as it cannot be opened in my system.
    Thanks.
    Edited by: Rob Burbank on Jun 25, 2010 11:17 AM

    See try to make an alv grid diaplay program for the internal table.( like this)
    form fill_catalogue .
      wa_fieldcatalog-fieldname   = 'WERKS'.
      wa_fieldcatalog-seltext_m   = 'Plant'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'LGORT'.
      wa_fieldcatalog-seltext_m   = 'St.Loc'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SHKZG'.
      wa_fieldcatalog-seltext_m   = 'Iss/Rec'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BUDAT'.
      wa_fieldcatalog-seltext_m   = 'Posting Date'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'CHALAN'.
      wa_fieldcatalog-seltext_m   = 'Document No'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BOLNR'.
      wa_fieldcatalog-seltext_m   = 'Bill of Lading'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BRGEW'.
      wa_fieldcatalog-seltext_m   = 'Gross Wt.'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'NTGEW_CH'.
      wa_fieldcatalog-seltext_m   = 'Net Chargeable Wt.'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SHIP_PARTY'.
      wa_fieldcatalog-seltext_m   = 'Customer/Vendor/Plant'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SAL_GRP'.
      wa_fieldcatalog-seltext_m   = 'Sales Group'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
    endform.                    "fill_catalogue
    *&      Form  display
          text
    form display .
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = sy-repid
          it_fieldcat        = fieldcatalog[]
        tables
          t_outtab           = it_final
        exceptions
          program_error      = 1
          others             = 2.
    Then you must be accepting some parameters fromthe screen. just take the values from the selection screen
    press F9, and proceed as your requirement is.
    endform.                    "display

  • Generate spool request and PDF

    Hello Friends,
    I have the below requirement in Scripts.
    I need to generate spool request and also download the form as pdf simultaneously.
    I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
    Regards.
    Krishna.

    Copy and Paste following code in a Z program type executable:
    REPORT ZRSTXPDFT4 LINE-SIZE 80.
    Read spool job contents (OTF or ABAP list) and convert
    to PDF, download PDF
    B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD
    SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-015.
    SELECTION-SCREEN SKIP.
    PARAMETERS:
      SPOOLNO LIKE TSP01-RQIDENT.
    SELECTION-SCREEN SKIP.
    PARAMETERS :  DOWNLOAD AS CHECKBOX DEFAULT 'X',
      P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\file.pdf' NO-DISPLAY."#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK B.
    DATA OTF LIKE ITCOO OCCURS 100 WITH HEADER LINE.
    DATA CANCEL.
    DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
    DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.
    DATA: NUMBYTES TYPE I,
          ARC_IDX LIKE TOA_DARA,
          PDFSPOOLID LIKE TSP01-RQIDENT,
          JOBNAME LIKE TBTCJOB-JOBNAME,
          JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
          IS_OTF.
    DATA: CLIENT LIKE TST01-DCLIENT,
          NAME LIKE TST01-DNAME,
          OBJTYPE LIKE RSTSTYPE-TYPE,
          TYPE LIKE RSTSTYPE-TYPE.
    TABLES: TSP01.
    DATA : RETFIELD TYPE DFIES-FIELDNAME.
    DATA : SPOOL TYPE HELP_INFO-DYNPROFLD.
    DATA : BEGIN OF ITAB OCCURS 0,
            SPOOL TYPE TSP01-RQIDENT,
           END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SPOOLNO.
      RETFIELD = SPOOLNO.
      SPOOL = 'SPOOLNO'.
      SELECT RQIDENT FROM TSP01 INTO TABLE ITAB."#EC CI_NOWHERE
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          RETFIELD               = RETFIELD
      PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = SPOOL
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
       CALLBACK_PROGRAM       = SY-CPROG
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
        TABLES
          VALUE_TAB              = ITAB[]
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 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.
    START-OF-SELECTION.
      SELECT SINGLE * FROM TSP01 WHERE RQIDENT = SPOOLNO.
      IF SY-SUBRC <> 0.
        PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
         'Spoolauftrag existiert nicht'(003).
        EXIT.
      ENDIF.
      CLIENT = TSP01-RQCLIENT.
      NAME   = TSP01-RQO1NAME.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
             EXPORTING
                  AUTHORITY     = 'SP01'
                  CLIENT        = CLIENT
                  NAME          = NAME
                  PART          = 1
             IMPORTING
              CHARCO        =
              CREATER       =
              CREDATE       =
              DELDATE       =
              MAX_CREDATE   =
              MAX_DELDATE   =
              NON_UNIQ      =
              NOOF_PARTS    =
              RECTYP        =
              SIZE          =
              STOTYP        =
                  TYPE          = TYPE
                  OBJTYPE       = OBJTYPE
             EXCEPTIONS
                  FB_ERROR      = 1
                  FB_RSTS_OTHER = 2
                  NO_OBJECT     = 3
                  NO_PERMISSION = 4.
      IF OBJTYPE(3) = 'OTF'.
        IS_OTF = 'X'.
      ELSE.
        IS_OTF = SPACE.
      ENDIF.
      IF IS_OTF = 'X'.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          OTF_PAGECOUNT                  =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            TABLES
              PDF                            = PDF
            EXCEPTIONS
              ERR_NO_OTF_SPOOLJOB            = 1
              ERR_NO_SPOOLJOB                = 2
              ERR_NO_PERMISSION              = 3
              ERR_CONV_NOT_POSSIBLE          = 4
              ERR_BAD_DSTDEVICE              = 5
              USER_CANCELLED                 = 6
              ERR_SPOOLERROR                 = 7
              ERR_TEMSEERROR                 = 8
              ERR_BTCJOB_OPEN_FAILED         = 9
              ERR_BTCJOB_SUBMIT_FAILED       = 10
              ERR_BTCJOB_CLOSE_FAILED        = 11.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich'(001).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF'(005).
            EXIT.
        ENDCASE.
      ELSE.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          LIST_PAGECOUNT                 =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            TABLES
              PDF                            = PDF
            EXCEPTIONS
              ERR_NO_ABAP_SPOOLJOB           = 1
              ERR_NO_SPOOLJOB                = 2
              ERR_NO_PERMISSION              = 3
              ERR_CONV_NOT_POSSIBLE          = 4
              ERR_BAD_DESTDEVICE             = 5
              USER_CANCELLED                 = 6
              ERR_SPOOLERROR                 = 7
              ERR_TEMSEERROR                 = 8
              ERR_BTCJOB_OPEN_FAILED         = 9
              ERR_BTCJOB_SUBMIT_FAILED       = 10
              ERR_BTCJOB_CLOSE_FAILED        = 11.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich'(006).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF'(007).
            EXIT.
        ENDCASE.
      ENDIF.
    download PDF file ***********
      CHECK DOWNLOAD = 'X'.
      IF NOT ( JOBNAME IS INITIAL ).
        PERFORM BD_TEXTBOX_VAR2_MSG(RSTXPDFT) USING 80
         'Konvertierung per Hintergrundjob'(008)
         JOBNAME
         JOBCOUNT.
        EXIT.
      ENDIF.
      PERFORM DOWNLOAD_W_EXT(RSTXPDFT) TABLES PDF
                                       USING P_FILE
                                             '.pdf'
                                             'BIN'
                                             NUMBYTES
                                             CANCEL.
      IF CANCEL = SPACE.
        DATA: S(80).
        S = NUMBYTES. CONDENSE S.
        CONCATENATE S 'Bytes heruntergeladen in Datei'(009)
          INTO S SEPARATED BY SPACE.
        PERFORM BD_TEXTBOX_VAR1_MSG(RSTXPDFT) USING 80
                                          S
                                          P_FILE.
      ENDIF.
    Regards,
    Jeet K Bhatt

  • HT4976 Is there any way that I can request a Hedgehog emoji?

    I really want a hedgehog emoji.  Is there any way that I can request an emoji.  They can't be that hard to make and it would make my day if they made a hedgehog!

    Adam ~ Try here:
    http://www.apple.com/feedback/

  • 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

  • Differnet spool request for different costomers

    Hi folks,
    I am using f.27 to create a monthly customer statement. But i need differnet spool request for different costomers. so that i can mail the reports for costomers differently. now single spool request is generating.
    regards
    Vijay

    Hi,
    thanks for  reply. Yup we can do that if there are many costumers. then it will be a hectic job to retrieve for all of them and sending mail. so is ther any possible way to generate spool in a breakup way..
    please try...
    Regards
    Viajy

  • New Spool Request for each purchase order

    Hi all,
    Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
    It is goind inside the same pool.
    I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
    Kindly adivce me how to generate new spool evertime when new PO is created.
    Regards,
    Rahul.

    Hi,
    Generated Spool request number is in table TSP01.
    Retrieve that number and pass to function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.
    SO_DOCUMENT_SEND_API1
    This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
    Regards,
    Supriya.

  • REQUIRE One spool request for n copies in one print command in smartform

    Hii Friends,
              I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                            Duplicate in second copy
                            Triplicate in third copy....n so on
    So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
    Note: By default sometimes it create one spool request and sometimes 3 spool request...
    Pls share your inputs ............
    Thanks,
    Regards,
    Sujit.

    hi,
    this is more complicated see below description from help
    regards,darek
    Printing Several Forms in One Print Request
    Use
    You want to bundle several forms into one print job.
    Print Request vs. Spool Request
    SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
    Whether a new spool job is created in the spool depends on the settings in the spool dialog.
    Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
    This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
    Procedure
    Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
    Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
    Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
    If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
    For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
    To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
    Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
    Result
    The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

  • 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

  • SSF_OPEN generating spool only for LOCL Device

    Hello all,
    I am using SSF_OPEN and SSF_CLOSE function module and in between i am calling two function modules.
    I have to generate a spool request for the smartform output (No preview) with the output device mentioned through selection-parameter.
    The problem i am getting is , the spool is always generating for device 'LOCL' , no matter what device i give in the selction parameter.
    Please help me solve this issue.
    Here is the code snippet i have used:
      lw_control-no_open   = 'X'.
      lw_control-no_close  = 'X'.
        lw_control-no_dialog = 'X'.
        lw_option-tdnewid   = 'X'.
        lw_option-tdimmed   = 'X'.
        lw_option-tddest    = p_ldest.
        lw_option-tddelete  = space.            "Delete After Printing
    *Opens an internal session of smartform,
    * call all smartforms in this sessions
      CALL FUNCTION 'SSF_OPEN'
        EXPORTING
          control_parameters = lw_control
          output_options     = lw_option
        IMPORTING
          job_output_options = lw_job_output
        EXCEPTIONS
          exceptions
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    What are the parameters to be passed to the  smartform? is it sufficient if passed control parameters here only on SSF_OPEN Fm ?
    Regards,
    Giri

    Kindly use in this way to generate spool as per your required output device
    data : tspoolid1 type ssfcrespd,
            tspoolid2 type ssfcrescl,
            tspoolid3 type ssfcresop,
            spool type ssfcrescl-spoolids,
            control_parameters type ssfctrlop,
            output_options     type ssfcompop.
      output_options-tdnoprev = 'X'.
       output_options-tdnewid = 'X'.
       output_options-tdimmed = 'X'.
       output_options-tddelete = 'X'.
       control_parameters-no_dialog = 'X'.
        output_options-tddest = 'LP02'.
    call function fm_name
         exporting
           control_parameters   = control_parameters
           output_options       = output_options
           user_settings        = ''
           goodsmvt_header      = goodsmvt_header
           poheader             = poheader
           ch1                  = ch1
           head                 = ch2
         importing
           document_output_info = tspoolid1
           job_output_info      = tspoolid2
           job_output_options   = tspoolid3
      *   tables
    *   EXCEPTIONS
    *     FORMATTING_ERROR           = 1
    *     INTERNAL_ERROR             = 2
    *     SEND_ERROR                 = 3
    *     USER_CANCELED              = 4
    *     OTHERS                     = 5.
    if tspoolid2-spoolids is not initial.
    * To hold the value of tab index
         spool = tspoolid2-spoolids.
         read table spool into wa_spool index 1.
         concatenate 'GRN_NOTE_' v_mblnr into v_npdf.
    **  v_npdf = v_mblnr.
         submit rstxpdft4 using selection-screen '1000'
                          with spoolno eq wa_spool
                          with p_file  eq v_npdf
                          and return.
       endif.
    Many Thanks / HImanshu Gupta

Maybe you are looking for

  • Can't load contacts to ipod touch

    My son has an ipod touch, 5th gen with 64 megs of memory.  It is new and we are just starting to upload information to it.  It appears now, that as you try and upload contacts, it deletes previously stored ones.  We haven't been able to get past a co

  • Photoshop CS5 crashes when I try to print.

    This has happened since I installed the program last year. Photoshop crashes no matter what kind of image file I try to print. I use a MacBook Pro and an Epson Stylus Photo R200 printer.  I have checked for driver updates and there are none.  The pri

  • PDF report font problem

    Dear all, All our reports are developed by reports builder 10g (under windows) and deployed on an Application Server 10g (on Linux). We had a problem with displaying the arabic letters, but this was solved by following the steps in the metalink doc n

  • Problem modifying the connection details in a Report when using Weblogic 12

    Hi I have a j2ee application that uses the Java Reporting Component (JRC). At runtime, the code programmatically changes the connection type and schema name of a crystal report before running it. The connection that was used when designing the report

  • How to make start and end curve pieces of selected tab transparent in custom theme in FF33?

    I created my own theme using a background image but it seems I cannot code it right in browser.css to make the start and end curve pieces of selected tab transparent. They remain colored, I guess using the operating system's (which is Win XP) dialog