Regarding spool

Hi all,
I am doing updation of knvv by a report program.
I have entered 50 customers .
i ran it in background.
for the 1st time 8 customers are processed.
again without changing anything, i executed the program with the same 50 customers.
now the remaining 42 customers are processed.
i dont understand , why this is hapening.
please hep me in this.
thanks.

Hi Ramya,
which technique do you use to update KNVV?
Batch-Input? Call Transaction?
Or direct manipulation of the DB table by SQL? This is considered dangerous because data integrity might suffer.
Greetings
Klaus

Similar Messages

  • Regarding spool generation

    Hi Friends:
      kindly see the below program:
    *& Report  ZSM1                                                        *
    REPORT  zsm1                                    .
    TABLES : lfa1,zsm1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_lifnr FOR lfa1-lifnr.
    SELECTION-SCREEN END OF BLOCK b1.
    DATA : git_lfa1 TYPE TABLE OF zsm1,
           gs_lfa1  LIKE LINE OF  git_lfa1.
    DATA : gs_adrc TYPE adrc.
    DATA : form_name TYPE rs38l_fnam.
    DATA: control TYPE ssfctrlop,
    control_parameters TYPE ssfctrlop,
    output_options TYPE ssfcompop.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    output_options-tddest = 'LP01'.
    SELECT lifnr adrnr FROM lfa1 INTO TABLE git_lfa1
                      WHERE lifnr IN s_lifnr.
    LOOP AT git_lfa1 INTO gs_lfa1.
      SELECT SINGLE name1 name2 street str_suppl3
                              city1 post_code1 region
                              FROM adrc
                              INTO (gs_adrc-name1,gs_adrc-name2,
                              gs_adrc-street,
                                 gs_adrc-str_suppl3,gs_adrc-city1,
                                 gs_adrc-post_code1,
                                 gs_adrc-region)
                              WHERE addrnumber = gs_lfa1-adrnr.
      CALL FUNCTION '/1BCDWB/SF00000313'
        EXPORTING
         ARCHIVE_INDEX              =
         ARCHIVE_INDEX_TAB          =
         ARCHIVE_PARAMETERS         =
          control_parameters         = control
         MAIL_APPL_OBJ              =
         MAIL_RECIPIENT             =
         MAIL_SENDER                =
         output_options              = output_options
         user_settings               = ' '
          git_lfa1                   = git_lfa1
          gs_adrc                    = gs_adrc
       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.
      ENDLOOP.
    It must generate a spool request..but its not generating...please help........

    Hi
    You are populating the control parameters to specify the output details and suppress the popup which comes when the Smartform is invoked.
    Check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef
    Regards
    Raj
    Message was edited by:
            Rajasekhar Dinavahi

  • Regarding spool creation with 0 pages...

    Hello,
    I am using following code for spool creation but it gets created with 0 pages. Even though I can see data the spool has 0 pages due to which it causes issues when I try to convert spool to pdf.
    DATA :
         lv_handle     TYPE sy-tabix,
         lv_spoolid    TYPE tsp01-rqident,
         lv_rc         TYPE c,
         lv_errmessage TYPE c,
          et_table     TYPE scarr OCCURS 0 WITH HEADER LINE.
    SELECT *
    FROM scarr
    INTO TABLE et_table.
    CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
      EXPORTING
        dest       = 'LP01'
      IMPORTING
        handle     = lv_handle
        spoolid    = lv_spoolid
        rc         = lv_rc
        errmessage = lv_errmessage.
    LOOP AT et_table.
      CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
        EXPORTING
          handle     = lv_handle
          text       = et_table-url
        IMPORTING
          rc         = lv_rc
          errmessage = lv_errmessage.
    ENDLOOP.
    CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
      EXPORTING
        handle     = lv_handle
      IMPORTING
        rc         = lv_rc
        errmessage = lv_errmessage.
    DATA: v_pdf_bytecount TYPE i,
                   it_pdf          TYPE tlinetab.
    " convert spool number to PDF
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid   = lv_spoolid
        no_dialog     = ' '
      IMPORTING
        pdf_bytecount = v_pdf_bytecount
      TABLES
        pdf           = it_pdf.
    Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Aug 26, 2009 5:53 PM
    Edited by: Jainam Shah on Aug 26, 2009 5:53 PM
    Edited by: Jainam Shah on Aug 26, 2009 6:07 PM

    Solved by my own.
    We need to use a FM as below to create page..
    CALL FUNCTION 'RSPO_PAGE_BREAK_SPOOLREQUEST'
      EXPORTING
        HANDLE                 = LV_HANDLE
      OPTIONS                =
      LENGTH                 =
    IMPORTING
      RC                     =
      ERRMESSAGE             =
    EXCEPTIONS
      HANDLE_NOT_VALID       = 1
      OTHERS                 = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Doubt regarding spool

    Hi ABAPers,
      I want to create multiple spool outputs programatically, How do i do that??
    Requirement: I am looping at an internal table to display its contents. Everytime the material number field changes there should be a separate spool output created.....
    As far as i have searched the NEW-PAGE PRINT ON statement creates a separate spool but i dont want to print the contents of the spool but want to email that contents as an attachment... I need ideas as to how i can create separate spools
    Any advice....
    Thanks & Regards,
    Prakash

    1st create the spool, convert it to pdf and then u can send it as a mail attachment
    use that spool to convert it to PDF and then download it
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    RQIDENT = GS_OTF_SPOOLS-RQIDENT
    TABLES
    BUFFER = GT_TEMP_TABLE
    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.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
    USE_OTF_MC_CMD = 'X'
    IMPORTING
    BIN_FILESIZE = SIZE
    TABLES
    OTF = GT_OTF_TABLE
    DOCTAB_ARCHIVE = DOC
    LINES = GT_PDF
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 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.
    U can also use the standard pgm RSTXPDFT4
    Award points
    Narendra

  • Regarding spool list title

    Hi
    Please help me in this regard
    i am working in archving project of 3.1i version, here the spool list title has to be generated when i execute program either in foreground or background automatically, for this i wrote Function module "GET_PRINT_PARAMETERS"
    please see below code
    move sy-sysid to tit3.                                
    move 'MF403' to tit4.                                 
    concatenate 'QAR' tit1'/'tit2 into title.             
    concatenate tit3 plant tit4 into title1.              
    concatenate title title1 into title separated by space.
    move title to title1.                                 
      call function 'GET_PRINT_PARAMETERS'                 
      exporting                             
         archive_mode           = '2'     
         archive_text           = title1  
         ar_object              = doc_type
         copies                 = 1       
         cover_page             = 'X'     
         destination            = 'LP01'  
         expiration             = '8'     
         immediately            = 'X'     
         layout                 = 'X_65_80'
         line_count             = 65      
         line_size              = 132     
         list_name              = 'QAR'   
         list_text              = title   
         new_list_id            = 'X'     
         no_dialog              = 'X'     
           release                = ' '      
           report                 = 'YPDQA01R'
           sap_cover_page         = 'D'      
           sap_object             = 'DRAW'   
      importing                              
           out_archive_parameters = arparams 
           out_parameters         = params   
           valid                  = valid    
      exceptions                             
           archive_info_not_found = 1        
           invalid_print_params   = 2        
           invalid_archive_params = 3        
           valid_missing          = 4        
           out_parameters_missing = 5        
           others                 = 6.       
    if valid <> space.          
      new-page print on         
      parameters params         
      archive parameters arparams
      new-section               
      no dialog.                
    endif.    
    If i execute this program automatically title should generate in spool "sp01"  or else in background job "sm37" - spool list.              
    sp01
    03069 01/18/06 06:53 Archive  3  <u><i><b>QAR 003510-107/ JONATHAN EDG0040MF403           </b></i>
    </u>                 
    i wrote concatenate statements for this title "QAR" etc,
    once program generate title, again some times it not, error: No spool list available.
    I checked document_type and archive_object every thing is fine
    i debugged the program "sy-subrc = 0" in each step, please let me know what will be the problem.
    appreciate for spontaneous reply.
    Thankyou
    regards
    vani.

    Hi ,
    Please confirm that the code whatever you want in the output must come in b/n
    if valid <> space.
    new-page print on
    parameters params
    archive parameters arparams
    new-section
    no dialog.
    -- output data code must come here.
    endif.
    Hope This Info Helps YOu.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • Regarding Spool issue while running in background

    Hi All ,
    i am getting some issue i am executing one report in background so the report output of the spool format is disturbed but while i am executing same report in foreground everything is printing perfectly.
    So please suggest me where i missed the scenarios.
    Thanks,
    Venkata Pradeep.

    Have you tried to set the format properties?
    Execute in Background->Properties Button->Format.
    Regards.

  • Regarding Spool Print

    Hi All ,
    i have a issue on spool print ie i have one spool number XXXXX it shows total number of pages as 1 page in Spool Output controller but once we  click the smartforms link in spool output it contain 5 pages internally. so user want to print 3 page only. so i this case the print is not coming for 3rd page because of it shows only one page in spool out put. so can you please explain me how can i achieve this one .  
    Below is the spool output format
        Spool no.       Type Clt User    Date         Time  Status Pages Title
        777106          360  XXXXX     18.03.2014  11:27 Compl.    1       SMART LOTH
    Thanks,
    Venkata Pradeep.

    Hi,
    With SEND IMMEDIATELY, it is not printing? why the list comes? No list appear in this case because you will not goes to ME9F.
    First make sure that from ME22N it prints the print.
    then think of Me9F.
    It has to print the PO staright away from ME22N with SEND IMMEDIATELY on SAVING THE TRANSACTION, if the right printer is assigned.
    Take the help of Basis person to know the printer settings.
    Try with other printer.
    regards,
    Anji

  • Regarding Spool spliting in F150 transaction.

    Friends please let me know is there any possibulity to split the spool is transaction F150 for every individual cuatomers.

    Hi
    See also SAP Note 156985 - Reference Note: BTE for dunning. BTE 1720 in T_FIMSG perhaps returns the number of SPOOL.
    I hope this helps you
    Regards
    Eduardo

  • Regarding spools generating

    Hi Freinds,
    when i am executing a standard prg with spool..
    it is genearating 2 spools requests...
    but when i am using sm37 t.code.. it is showing 1 spool request only.
    example : the spools requests are 1 and 2.(assume)..
    im sm37 .. it is showing 2 spool request.. not 1 st spool request.. what is reason behind this??
    pls. any explain.. it is an urgent..
    regards,

    Hi Freinds,
    in sp01.. there are 2 spool requests were generated for one standard prg.
    example : the spools requests are 1 and 2.(assume)..
    im sm37 .. it is showing 2 spool request only .. not 1 st spool request.. what is reason behind this??
    BUT I WANT 2 SPOOL REQUEST WHRE THE SAME 2 SPOOL REQUESTS ARE GENERATED IN SP01.
    IT IS POSSIBLE.. ANY SETTING ARE THERE IN SM37?
    regards,

  • Regarding spool (payment with printout)

    i posted vendor pmt through f-58, i assigned seqential cheque lot. when the document is saved cheque number is assigned to document automatically, but when i check (sys->services->output control) 2 spool req r coming.
    1.cheque
    2.payment advice
    i m taking print out of the cheque by selecting spool req(cheque), after taking printout spool is appearing from spool requests. how can i reprint the cheque (suppose enduser may wrongly assign another cheque) or how can i call back spool req of the printed cheque.
    can anyone helpme

    Hi,
    Use transaction FCH7 for reprinting the check.If the user has given wrong check number give that check number to void with a void reason code and assign new check for printing the same.

  • Regarding spool to pdf

    Hi All
    i have a doubt
    When i am converting my spool to pdf is working fine no issue
    but one thing i got is in my pdf doc after every some 32 char
    i am getting one space between my data.
    Can anyone tell me what can be the reason and how to rectify it. Its urgent.
    Points will be rewarded.
    Eg...
    As in address1
    its showing as add  ress1
    In Spool its coming fine.
    Is there anything like the conversion is done in line from some part of text and then rest?

    Hi,
    you are using paragraph format for address .
    in paragraph format check 3 check boxes it will work i think try it.

  • Regarding spool issue

    Hi All,
    I have two output type, in both output type i have define number of copies to be printed through nace.
    while doing good reciept againt PO through migo, 1st  output type form is getting printed three times but for 2nd output type form is getting print only once. is there any other setting that i have to do in somewhere? or what else i can do to resolve my issue.
    please suggest .
    Thanks & Regards,
    Subhanshu Shrivastava
    ABAP-Consultant.

    If your requirement is to trigger the output automatically only once for each document, you can set it for the o/p type in NACE --> select the application --> "Output types" -> "Multiple issuing".
    If you check this OFF o/p type will be only proposed once when you create the PO, if you keep this ON o/p type will be proposed (shown in yellow) every time you open the PO in ME22N.
    Of course this is a control to only allow triggering output only once for each document and is different to the number of copies option controlled through o/p Condition record -> Communication tab which you can use to let the triggering happen n number of times. If the number of copies option is not working correctly then check in your print driver program whether some code is fiddling with NAST-ANZAL

  • Spool number

    Hi,
    I have a dout regarding Spool Request
    Here in my program after calling the Function module 'GET_PRINT_PARAMETERS' , There is a codeing to generate Spool Request Number.
    Codeing
    TO SAP-SPOOL
          SPOOL PARAMETERS V_PARAMS
          ARCHIVE PARAMETERS V_ARPARAMS
          WITHOUT SPOOL DYNPRO
    My dout what is the need for generating the Spool request number

    hi ,
    A spool request is a document for which a print function has been selected. SPOOL is nothing but a buffer where the data given to print is stored .
    The data is stored in a temporary format. You can also display the print document.
    The system automatically assigns a 10 digit ID number to a spool request.
    From the point of view of the SAP spool system, an output request is outputting the print data of a spool request on a particular output device.
    So a spool number uniquely identifies the doc to be printed. This can be used in future if you want to take the output in various formats like PDF etc and also you can send EMAILS etc.
    Thanks and regards.

  • ITAB TO SPOOL

    Dear Experts,
    There are many threads regarding spool.
    But here I had given task by functional that I had to develop an object which show a some data list, in which i have to tick mark and send selected list as a mail to particular party.
    Also same thing to do as mass mailing for scheduling in back ground for all party.
    Now problem is I have an internal table with list of customer and it's particular details which i have to send by email.
    Now i know how to convert spool to pdf but i don't know how to convert internal table to spool.
    Please note i had try with many example which had already posted in sad.sap.com.
    i had got only one binary spool from it successfully. but which is not convert into pdf.
    Please i know that if i develop smartform for it is to easy but i want to do mass mailing and i had already developed module-pool for it.
    Please guide
    how do i convert my internal table to spool in specific layout with out using smart form. if it is in oops then it will be more helpful for conceptually.
    thanks & regards,
    Nayan Lad

    Hi,
    please find below prgroms are use full this Spool program will convert to PDF RSTXPDFT4.
    and this program Spool download
                   T A B L E S   & T Y P E S                             *
    TYPES : BEGIN OF ty_mail_data ,
              text(4000),
           END OF ty_mail_data.
    DATA : t_mail_data TYPE TABLE OF ty_mail_data WITH HEADER LINE ,
           l_mail_data TYPE TABLE OF ty_mail_data WITH HEADER LINE,
           w_char(4000),
           w_char1(4000),
           filenamee LIKE ibipparms-path.
    PARAMETERS: p_spool TYPE tsp01-rqident.
    Fetching Spool data into internal table
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
         EXPORTING
              rqident = p_spool
         TABLES
              buffer  = t_mail_data.
    DELETE t_mail_data WHERE text(1) = '-'.
    READ TABLE  t_mail_data WITH KEY text(1) = '|'.
    IF sy-subrc EQ 0.
      formatting Internal table according to file fromat...
      LOOP AT t_mail_data.
        IF t_mail_data-text(1) EQ '|' OR  t_mail_data-text(1) EQ '-'.
          l_mail_data-text = w_char .
          APPEND l_mail_data.
          WRITE :/ w_char.
          CLEAR w_char.
          w_char = t_mail_data-text.
        ELSE.
          MOVE t_mail_data-text TO w_char1.
          CONCATENATE w_char w_char1 INTO w_char.
        ENDIF.
      ENDLOOP.
      l_mail_data-text = w_char .
      APPEND l_mail_data.
      WRITE :/ w_char.
    ENDIF.
    CALL FUNCTION 'F4_FILENAME'
         IMPORTING
              file_name = filenamee.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
              bin_filesize            = 1024
              filename                = filenamee
              filetype                = 'ASC'
         TABLES
              data_tab                = l_mail_data
         EXCEPTIONS
              file_write_error        = 1
              no_batch                = 2
              gui_refuse_filetransfer = 3
              invalid_type            = 4
              OTHERS                  = 5.
    IF sy-subrc <> 0.
    MESSAGE e000 WITH text-i02.    "Exception in GUI_DOWNLOAD
    ENDIF.
    Edited by: BRsankar on Sep 29, 2011 9:13 AM
    Edited by: BRsankar on Sep 29, 2011 9:14 AM

  • SAP Spool Request Queries

    Hi all,
    I have few queries regarding spool in slap. I will be glad if some one can help me.
    1. In SP01 what is the difference between print directly & print with changed parameters.
    2. If a spool request is in waiting status for a long time, what does it mean.
    3. If a user wants to reprint his document again what should i do.
    4. what i have do to use users OS level printer as SAP printer. i mean if a user has given a print if SAP couldnt able to find printer it will be in error status. In this case i want to reprint that document from users OS level default printer.
    5. What are the regular spool problems and resolutions.
    ding
    Kindly help me regarding this.
    Thanks in advance

    hi Mahesh,
    1. Print directly will send the spool req. to the printer defined for the user id, with changed parameter, the user can redirect the spool request to be printed on any other printer defined. There are other options of changing the priority etc.
    2. That means that all your spool work processes have been occupied by other spool requests and the request is waiting for the work process to be released.
    3. The user needs to give the spool request no. in sp01 and then print it going forward.
    4. There are 2 workarounds for this
    i. you have to define the locl printer same as for your OS in SAP and maintain that as locl in spad.
    ii. Follow point 3 and reprint it using any other printer available.
    5. No definite answer to that. Its an ocean to explore :D.
    Thanks!
    Rahul.
    Edited by: Rahul Dwivedi on Sep 15, 2011 11:12 PM

Maybe you are looking for