Spool Not created

Hi,
I'm trying to convert SAP script form to PDF format and sending it via mail as
attachment. I am able to do it. But, the problem is I need to get the spool
number of the form in the output log of the report.
Now, my form is not listed in the spool. I've set following parameters in the
ITCPO structure.
itcpo-tdgetotf = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tddataset = sy-prdsn.
itcpo-tdnewid = 'X'.
itcpo-tdtitle = 'Test'.
itcpo-tdtest = ' '.
itcpo-tdimmed = 'X'.
itcpo-tddelete = ' '.
I'm passing this structure to OPEN_FORM .yet, i'm not getting spool ID.Can anyone help me know Where i've done the mistake.
Regards,
Bharathi

Hi,
Check with this.
While calling smartform, paas control_parameters and output_options as mentioned below and set
user_settings = ' '.
It will send the smartform output to spool.
DATA: wa_output_options TYPE ssfcompop,
wa_ctrl TYPE ssfctrlop.
wa_output_options-tdimmed = 'X'.
wa_output_options-tddelete = 'X'.
wa_output_options-tdimmed = ' '.
wa_output_options-tddest = 'LOCL'.
wa_ctrl-no_dialog = 'X'.
CALL FUNCTION lv_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = wa_ctrl
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = wa_output_options
user_settings = ' '
x_adrp = x_adrp
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
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.
Regards,
Kumar(Reward if helpful).

Similar Messages

  • Automatic payment program spool not created

    HI Exeperts
    i am assing same role both users both user while doing f110 posting one use is succesed and another user was some time was sucesse ful and sometime getting error spool not created i tested in testing client same role here sucess.i checked in sm37 also but no error user go to sp02  some time he can display. whenever got the errore massage  he cann't see the display option.i cann't understand this problem.
    any body help me.
    thank's
    chandra.

    Dear expert
    My guess is your user  SPAD - ADMIN ( Check over there )setup is incomplete, but as this is generally a BASIS responsibility
      spool requested is not created.
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/payment-program-f110-is-not-creating-spool-nor-print-1848411#M1851567
    Regards
      Ajeesh.s

  • I have problem sending a email ..spool not created using custom FM

    Hi experts,
    i have problem sending a email ..spool not created using custom FM...this the custom FM
    * Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
    Source code
    this is the source code for this FM
    IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        IF sy-subrc IS NOT INITIAL.
          MESSAGE e040(zhrcd) RAISING spool_not_created.
        ENDIF.
        PERFORM process_email USING email1
                                    email2
                                    email3
                                    subject
                                    attachment_name.
        WAIT UP TO 5 SECONDS.
        SUBMIT rsconn01 WITH mode   = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.....
    Please let me know
    Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tags

    Hi srinivas ,
    Could you please Check
    FORM summary_report .
      DATA: lv_success TYPE i,
              lv_error TYPE i,
              lv_total TYPE i.
      DESCRIBE TABLE gt_data LINES lv_success.
    DESCRIBE TABLE gt_error LINES lv_error.
      DESCRIBE TABLE gt_message LINES lv_error.
    lv_total = lv_success + lv_error.
      lv_total = lv_success.
      gwa_summary-record = text-008."Number of Successful records.
      gwa_summary-number = lv_success.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-009."Number of error records'.
      gwa_summary-number = lv_error.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-010."Total number of records processed.
      gwa_summary-number =  lv_total.
      APPEND gwa_summary TO gt_summary.
    CLEAR gt_fieldcat.
      gwa_fieldcat_summ-col_pos = 1 .
      gwa_fieldcat_summ-fieldname  = 'RECORD'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-011."Records
      gwa_fieldcat_summ-outputlen = '70'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
      gwa_fieldcat_summ-col_pos = 2 .
      gwa_fieldcat_summ-fieldname  = 'NUMBER'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-012."Number
      gwa_fieldcat_summ-outputlen = '10'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
    ENDFORM.                    " SUMMARY_REPORT
    *&      Form  ERROR_REPORT
    FORM error_report .
    gt_fieldcat_err[] = gt_fieldcat[].
      gv_fieldcat_err-col_pos = 1.
      gv_fieldcat_err-fieldname  = 'PERNR'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-070."Employee Number
      gv_fieldcat_err-outputlen = '20'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
      gv_fieldcat_err-col_pos = 2.
      gv_fieldcat_err-fieldname  = 'MESSAGE'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-071."Error Message
      gv_fieldcat_err-outputlen = '80'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
    ENDFORM.                    " ERROR_REPORT
    *&      Form  FINAL_REPORT
    FORM final_report .
      DATA:lv_layout TYPE slis_layout_alv,
             lt_events_summ TYPE slis_t_event,
             lv_events_summ LIKE LINE OF lt_events_summ,
             lt_events_det TYPE slis_t_event,
             lv_events_det LIKE LINE OF lt_events_det,
             lt_events_err TYPE slis_t_event,
             lv_events_err LIKE LINE OF lt_events_det,
             lt_events_msg TYPE slis_t_event,
             lv_events_msg LIKE LINE OF lt_events_det.
      lv_events_summ-name = 'TOP_OF_PAGE'.
      lv_events_summ-form = 'TOP_OF_PAGE1'.
      APPEND lv_events_summ TO lt_events_summ.
      lv_events_det-name = 'TOP_OF_PAGE'.
      lv_events_det-form = 'TOP_OF_PAGE2'.
      APPEND lv_events_det TO lt_events_det.
      lv_events_err-name = 'TOP_OF_PAGE'.
      lv_events_err-form = 'TOP_OF_PAGE3'.
      APPEND lv_events_err TO lt_events_err.
      lv_events_msg-name = 'TOP_OF_PAGE'.
      lv_events_msg-form = 'TOP_OF_PAGE4'.
      APPEND lv_events_msg TO lt_events_msg.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat_summ
          i_tabname                        = 'IT_SUMMARY'
          it_events                        = lt_events_summ
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_summary
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    IF CHK_DTL IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat
          i_tabname                        = 'gt_data'
          it_events                        = lt_events_det
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_data
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_err
         i_tabname   = 'gt_error'
         it_events   = lt_events_err
       TABLES
         t_outtab    = gt_error.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_msg
         i_tabname   = 'gt_message'
         it_events   = lt_events_msg
       TABLES
         t_outtab    = gt_error.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_err
          i_tabname   = 'gt_message'
          it_events   = lt_events_err
        TABLES
          t_outtab    = gt_message.
    IF GT_MESSAGE[] IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_msg
          i_tabname   = 'gt_message'
          it_events   = lt_events_msg
        TABLES
          t_outtab    = gt_message.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
       i_interface_check             = ' '
      IS_PRINT                      =
       i_screen_start_column         = 0
       i_screen_start_line           = 0
       i_screen_end_column           = 0
       i_screen_end_line             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       =
      ES_EXIT_CAUSED_BY_USER        =
    EXCEPTIONS
      PROGRAM_ERROR                 = 1
      OTHERS                        = 2
    ENDFORM.                    " FINAL_REPORT
    *&      Form  top_of_page
          text
    FORM top_of_page1.                                          "#EC CALLED
      WRITE text-013."SUMMARY REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page2
          text
    FORM top_of_page2.                                          "#EC CALLED
      WRITE text-014."DETAIL REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page3
          text
    FORM top_of_page3.                                          "#EC CALLED
      WRITE text-015."ERROR REPORT
    ENDFORM.                    "top_of_page
    *&      Form  EMAIL_NOTIFICATION
    FORM email_notification .
      DATA: lv_email1  TYPE somlreci1-receiver,
           lv_email2  TYPE somlreci1-receiver,
           lv_email3  TYPE somlreci1-receiver,
           lv_subject TYPE char200,
           c_flag     TYPE c           VALUE 'X',
           lv_attachment TYPE char50.
      CLEAR: lv_email1,
             lv_email2,
             lv_email3,
             lv_subject,
             lv_attachment.
      SELECT SINGLE email1
                    email2
                    email3
        FROM zhr_interface_pr
        INTO (lv_email1,lv_email2,lv_email3)
        WHERE zinterfaceid EQ gc_objectid.
      IF sy-subrc EQ 0.
        IF sy-batch EQ 'X'.
    Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
          IF sy-subrc <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    "
    Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM

  • Spool not creating when executing in background

    Hi All
    When i try to execute background printing for transaction code MCBA, system is finishing the job but not creating the spool. But for other transactions it is creating the spool corectly.
    Please Advice.
    Thanks
    Ravindra Suvarna

    Hi ravindra,
    1. U are right.
    2. The output does not come when we run this
       in background.
    3. The reason in the program for mcba.
    4. Its program name is :
       RMCB0100
    5. inside this there is one include RMCS00AL
    6. Which has the condition
       <b>IF SY-BATCH</b>
      (for background detecting)
    7. Now what it does afterwords, i could not detect,
      but
    8. This program DOES SOMETHING / DOES NOT DO SOMETHING
       specially for BACKGROUND PROCESS,
       BY DETECTING IT THRU
       SY-BATCH.
    regards,
    amit m.

  • Payment Program F110 is not creating spool

    Hello experts,
    We are very close to the go-live and facing a major issue with Automatic Payment Program F110. We asked the dev to design Z check form for F110. Our form works well with manual Run ( F-58), we can see spool as well as print but when we Run the F110 the same form does not create any spool nor print anything. Even though its create the check, done the posting but no spool no print. The error we are getting it is  'No printer fonts maintained for Message no. TD327' . IT people sets all the fonts but no luck.
    appritiate the comments.
    Thanks

    Hi,
    take a look on this sap note.
    i hope it help you.
    Regds
    Note 391852 - Message TD327 (No printer fonts maintained for &)
    Summary
    Symptom
    The system displays error message TD327 (No printer fonts maintained for &) during the print although the device type of the printer has a base device type with printer fonts.
    Additional key words
    IW31, IW32, IW3D, IW21, IW22, IW23
    Cause and prerequisites
    The device type has not separate printer fonts but inherits them from the base device type.
    Solution
    Implement the program correction as specified in the

  • Spool not getting created in batch job

    Hello experts,
    We have a requirement of printing BA00, BA01 and LD00 from different application.
    We have done same code for all BA00, BA01, and LD00.
    Normally the code is working fine except in few cases, when batch job is created but spool is not created.
    DATA: job_name TYPE tbtcjob-jobname,
                  number   TYPE tbtcjob-jobcount,
                  print_parameters TYPE pri_params,
                  wv_pripar    TYPE pri_params,
                  wv_arcpar    TYPE arc_params,
                  wv_val       TYPE c VALUE 'X',
                  wv_false     TYPE c VALUE 'X',
                  gv_mandt     TYPE tsp01-rqclient,
                  gv_user      TYPE tsp01-rqowner.
              CLEAR: gv_mandt, gv_user, number.
              gv_mandt = sy-mandt.
              gv_user  = sy-uname.
              job_name = 'DELIVERY_PRINTING'.
              CLEAR: range1.
              range1-sign = 'I'.
              range1-option = 'EQ'.
              range1-low = 'LD00'.
              CLEAR: range1-high.
              APPEND range1 TO range.
              CALL FUNCTION 'JOB_OPEN'
                EXPORTING
                  jobname          = job_name
                IMPORTING
                  jobcount         = number
                EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
              IF sy-subrc = 0.
                SUBMIT sd70av2a WITH  rg_kschl IN range
                                WITH  rg_vbeln IN deli_tab
                                TO SAP-SPOOL
                              SPOOL PARAMETERS print_parameters
                              WITHOUT SPOOL DYNPRO
                              VIA JOB job_name NUMBER number
                              AND RETURN.
                IF sy-subrc = 0.
                  CALL FUNCTION 'JOB_CLOSE'
                    EXPORTING
                      jobcount             = number
                      jobname              = job_name
                      strtimmed            = 'X'
                    EXCEPTIONS
                      cant_start_immediate = 1
                      invalid_startdate    = 2
                      jobname_missing      = 3
                      job_close_failed     = 4
                      job_nosteps          = 5
                      job_notex            = 6
                      lock_failed          = 7
                      OTHERS               = 8.
                  IF sy-subrc <> 0.
                  ENDIF.
                ENDIF.
                WAIT UP TO 10 SECONDS.
    ** to give the data to the printer***
    *            CLEAR gv_rqident.
                SELECT SINGLE listident INTO gv_listident FROM tbtcp
                              WHERE jobname = job_name
                               AND  jobcount = number.
              IF sy-subrc = 0.
                MOVE gv_listident to gv_rqident.
                CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
                  EXPORTING
                    spool_request_id = gv_rqident.
              ENDIF.
    The same code is for all the output BA00, BA01 and LD00.
    The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
    Thanks and Regards,
    Paritosh Pandey

    Hi,
    The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
    cheers,
    Janis
    Edit in:
    Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
    Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
    Message was edited by: Jānis B

  • Sapscript not creating spool

    Hello gurus, is it possible to create a spool, when seeing and printing the sapscript at run-time?
    I am using FM GET_TEXT_PRINT_PARAMETERS but is not creating any spool.
    Thanks in advance!

    Hi,
    Try like this:
    FORM open_form.
      DATA : tmp_answer.
    itcpo-tdimmed = 'X' .
      perform fill_itcpo.
      itcpo-tdgetotf = 'X'.          
      itcpo-tdpreview = space.      
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                form                        = layout
                language                    = sy-langu
                options                     = itcpo
                device                      = 'PRINTER'
               dialog                      = ' '
               options                     = it_itcpo
           EXCEPTIONS
                canceled                    = 1
                device                      = 2
                form                        = 3
                options                     = 4
                unclosed                    = 5
                mail_options                = 6
                archive_error               = 7
                invalid_fax_number          = 8
                more_params_needed_in_batch = 9
                OTHERS                      = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.
    form fill_itcpo .
      REFRESH it_itcpo.
      CLEAR   it_itcpo.
      it_itcpo-TDPAGESLCT = SPACE.
      it_itcpo-TDCOPIES   = SPACE.
      it_itcpo-TDDEST     = 'LOCL'.
      it_itcpo-TDPRINTER  = SPACE.
      it_itcpo-TDPREVIEW  = SPACE.
      it_itcpo-TDNOPREV   = SPACE.
      it_itcpo-TDNOPRINT  = SPACE.
      it_itcpo-TDNEWID    = 'X'.
      it_itcpo-TDDATASET  = SPACE.
      it_itcpo-TDSUFFIX1  = SPACE.
      it_itcpo-TDSUFFIX2  = SPACE.
      it_itcpo-TDLIFETIME = SPACE.
      it_itcpo-TDSCHEDULE = SPACE.
      it_itcpo-TDSENDDATE = SPACE.
      it_itcpo-TDSENDTIME = SPACE.
      it_itcpo-TDTELELAND = SPACE.
      it_itcpo-TDTELENUM  = SPACE.
      it_itcpo-TDTITLE    = SPACE.
      it_itcpo-TDTEST     = SPACE.
      it_itcpo-TDPROGRAM  = 'Z_1IEWT_CERT_F01'.
      it_itcpo-TDSCRNPOS  = SPACE.
      it_itcpo-TDCOVER    = SPACE.
      it_itcpo-TDCOVTITLE = SPACE.
      it_itcpo-TDRECEIVER = SPACE.
      it_itcpo-TDDIVISION = SPACE.
      it_itcpo-TDAUTORITY = SPACE.
      it_itcpo-TDARMOD    = SPACE.
      it_itcpo-TDIEXIT    = SPACE.
    it_itcpo-TDGETOTF   = 'X'.
      it_itcpo-tdgetotf = space.
      it_itcpo-TDFAXUSER  = SPACE.
      it_itcpo-TDIMMED    = 'X'.
      it_itcpo-TDDELETE   = SPACE.
    endform.                    " fill_itcpo
    call function 'CLOSE_FORM'
    IMPORTING
       RESULT                         = LS_ITCPP
    TABLES
       OTFDATA                        = it_otfdata       
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       OTHERS                         = 4.
    if sy-subrc eq 0.
       submit rstxpdft4 with spoolno = ls_itcpp-tdspoolid and return. 
    endif.     
    Regards,
    Bhaskar

  • W2reprint not creating spool

    I am working on setting up the online W2 functionality for my client in USA. The W2 reprint request is not creating a spool in SP01.When I tried to debug the (W2FORM) object, the submit statement SUBMIT rpctrpu0 is returning with found = X.
    When I checked SP11, I see a temse file HRL*** and its content has the following lines:
    Main form not found in table T51T8
    No results exist in the cluster for the given criteria.
    While debugging I did see it picking up the values from T51T8, so I am at this point not sure how else to troubleshoot this.
    Can someone please help?
    Thanks,
    Maria.

    Hi Ameet.
    I deleted all the test PCL4 data in the sandbox client. The reprint method is taking the correct date for the W2 reprint by checking v_5uxy_a table. So, I tried this on our dev system. It created the HRL spool in SP11, and this time it has two lines in the content, which has the form number and control number with the date/year information of the W2 reprint. Again, no spool in SP01.
    I hope this might work in prod system. If you have any inputs for me please do comment below.
    Thanks,
    Gracias,
    Maria.

  • New spool number is not created .. appending to prevoius  spool

    Hi friends
    we have requirement to print smartform labels for each Delivery item.
    i created smartform and written code in User Exit..
    but spool is creating first time and next label onwards label is appending to the old spool instead of creating new spool( for the second label new spool is not created,its taking prevoius spool number , checked in debugg as well)
    Please help me..
    i have writeem code as follows:
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = p_sf_name
    IMPORTING
    fm_name = fm_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    wa_outop-tdimmed = 'X'.
    wa_control_parameters-no_dialog = 'X'.
    wa_control_parameters-device = 'PRINTER'.
    wa_control_parameters-preview = ''.
    wa_control_parameters-langu = 'EN'.
    wa_outop-tdarmod = 1.
    wa_outop-tdimmed = 'X'.
    CALL FUNCTION fm_name
    EXPORTING
    output_options = wa_outop
    user_settings = space
    wa_label_data = wa_label
    control_parameters = wa_control_parameters
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    Thanks
    Ramesh

    Hi,
    You need to pass X to parameter OUTPUT_OPTIONS-TDNEWID
    Try like below:
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = p_sf_name
    IMPORTING
    fm_name = fm_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    wa_outop-tdimmed = 'X'.
    wa_control_parameters-no_dialog = 'X'.
    wa_control_parameters-device = 'PRINTER'.
    wa_control_parameters-preview = ''.
    wa_control_parameters-langu = 'EN'.
    wa_outop-tdarmod = 1.
    wa_outop-tdimmed = 'X'.
    wa_output-TDNEWID = 'X' .            "ADD
    CALL FUNCTION fm_name
    EXPORTING
    output_options = wa_outop
    user_settings = space
    wa_label_data = wa_label
    control_parameters = wa_control_parameters
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    Regards,
    Himanshu

  • Spool request not created in background.....

    Hi Experts,
    I have executed one report in background in sduser but it has not generated a spool request in sp01. There is no authorisation for sm37 to this user.
    In abapuser user it is generating a spool request when i checked in sp01 but not in sduser.
    What may be the problem ? Is there any authorisation problem ?
    Yusuf.

    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.

  • Spool not generated in background mode

    Hi ,
    I am fine tuning a report.
    I am working on a program which is collecting data and exporting data into memory id. then two other reports, are importing data from memory and displaying in AlV/list.
    When i execute this report in background the spool is not getting generated.
    is there any way to generate the spool?
    How to measure the execution time, as the program is taking much time and some times going to dump in case of time limit.
    Thanks ,
    Kiran

    Hi Kiran,
    For measuring runtime use SE30 transaction. When u run in back ground it wont go to Dump. It may happen only in  fore ground. If at all it happend in back ground, the reason might be different. Analyze that dump n see what is going wrong. Also i dont think there is any time limit in back ground as i executed jobs that ran for 11 days!!!!. U can alos debug the batch job.
    put break point in ur program, Select that batch job in SE37, enter jdbg in command promt and press enter. Control will go to debug mode.
    Which ALV u r using. I think through OOPS ALV batch job will not create spool i guess. Not sure on this.
    Thanks,
    Vinod.

  • PIR not created durning mass processing (MC8G) job

    We are transfering data from S076 to inactive PIR version for use in LTP using a job created in MC8G. 
    We have a few materials that are not transfering quantities.  One in particular, has 2 plants, and only 1 transfers.   The one that transfers is in the spool file created from the job, the other is not.  After some debugging S076E has both the material/plants LISPLF only has one of the plants for the material.
    What config or master data should I be reviewing to find the reason?
    Thanks,
    Michelle

    1. For those materials which fails try to create the MD61 manually.
    2. If it is not able to create then check if the material is created in the plant, with requried planning strategy
    3. Also check if any material status prevents the same.
    Reg
    dsk

  • Get the last spool number created

    Hi,
    I need to get the last spool number that the system has assigned to an output ABAP list.
    I know that the SO_SPOOL_READ function give the information I want but I do not find the way to obtain the code. I thought that this function is an internal function of SAP, but it does not exist.
    Could anyone facilitate that code?
    Do anyone know other way to obtain that last spool number?
    Thank you very much for your time

    Thanks Ram,
    Your instructons were just what I needed.
    Finally, I use the sy-uname restriction to select the last spool number created for the user:
    DATA: BEGIN OF it     OCCURS 0,
            RQIDENT   LIKE TSP01-RQIDENT,
            RQCRETIME LIKE TSP01-RQCRETIME,
        END OF it.
    SELECT * FROM TSP01
        APPENDING CORRESPONDING FIELDS OF TABLE it
          WHERE
            RQOWNER = SY-UNAME           
          ORDER BY RQCRETIME DESCENDING.
      LOOP AT it.
        spool_num = it-rqident.          
        EXIT.
      ENDLOOP.
    Thanks a lot.

  • VF04 - SDBILLDL - Invoices not created in background

    A batchjob has been created for the program SDBILLDL.
    The variant has been setup properly when testing it in the foreground.
    A list of sales orders is displayed in the billing due list and it is possible to perform billing in foreground.
    When running the program in background with the same variant, the invoices are not created.
    This was not a problem a few days ago, but at some time, the background billing stopped working.
    Do you have any idea on what might have caused this problem?
    The sales orders have deliveries and delivery related billing is used.
    I have also tested to use the old program SAPMV60S with a similar variant, which works fine in foreground.
    But when running it in background, the invoices are not created.
    Spool problem?

    Hi,
    Background jobs for creating billing docs has to be done using tcode VF06.
    Check the following [thread|Background for billing job in VF06; for more info.
    Regards,
    Amit

  • Archiving File Not created

    Hai Gurus,
    here i doing an archiving task,i havecreated the variant and assigned four weks to archive,after 40 min later i found the job is finished and when i started deleting ,the archived file file NOT created.So i cross checked in spool request and it shown as the "WAITING",the Statistics screen as NO data found.
    I have my job log as the arching is been created with "1" archiving object, but actually it has to show me the file name:"archive_bw_000025236.....".So what can be the reason and where can be the file be gone or saved?what is the procedure to find the Archived file,i mean in which table i can see
    please let me know
    Points will allocated fully .........
    Suri.

    Hi Suri,
    When you archive any data( in your case- 4 weeks data), the system will confirm if this data is business complete. If YES, then it will archive your stipulated data and only then you may be able to see the Log of the archived data.
    if there is no data ( business complete)to be archived, then NO archive file will be created.
    You can see the Archive file name in the Job Log of that particular archiving run.
    By the way, which data/object are u archiving ? may be i can help you.

Maybe you are looking for

  • Error in starting web logic server

    Hi I am new to weblogic and i get the following error when i launched weblogic server for the first time. Please tell me how to remove this error. ####<Aug 29, 2011 2:41:43 PM IST> <Info> <WebLogicServer> <BSLF221A> <> <[ACTIVE] ExecuteThread: '0' fo

  • Change Behaviour of the 4 Browse / Navigation Buttons

    Hi!, In documents, Iam using a new series each period/month for each type of documents, for example for a quote document in october, the series was named 200810 , for november, the series was named 200811 and so on. So each time a new period/month pa

  • XSL won't compile

    Hello, I'm attempting to tansform xml with xslt, but I'm getting an exception saying: "Could not compile stylesheet". Pretty vague to say the least. What's starnge is that I'm able to successfully parse the xslt with the DOMParser and with IE. Here's

  • Basis admin roles in NDS

    Hi can any one explain mean about the responsibilites of Basis consultant in Netweaver developer studio, actually i installed NDS on SRM server and try to develop, build and deploy the project but am getting an error while deploying the project to J2

  • Setting the Priority on a Process/Application

    Actually aksed this question in the Foundation discussion group but think it is better suited here... Hi I have a JBoss turnkey install of LiveCycle ES2 in production. One of the applications runs a large batch job in the evenings. This all works fin