Smartforms - Controlling copies

Hi,
i'm using the system field SFSY-COPYCOUNT to control the original and duplicate document, but it isn´t work...
In debug i confirm that this field, always have the value 1, for original and duplicate.
Is necessary make some changes in the print program?
For now i use the standard RLB_INVOiCE.
Many thanks in advance.
AOL

Actually VSTAT element contains whether its original or duplicate. I am using this code in my prg
u can change where condition according to ur program. when ever rep_flag = X then it is duplicate.
u can see the following code.
Data : lv_vstat type NA_VSTAT.
  SELECT vstat INTO lv_vstat FROM nast WHERE kappl = nast-kappl
                                AND   objky = nast-objky
                                AND   kschl = nast-kschl
                                AND   spras = nast-spras
                                AND   parnr = nast-parnr
                                AND   parvw = nast-parvw
                                AND   nacha BETWEEN '1' AND '4'.
    CHECK lv_vstat = '1'.
   rep_flag = 'X'.
    EXIT.
endselect

Similar Messages

  • Smartform printing copies automatically

    Hi everybody,
    I need to print 5 copies of a smartform, I'm doing it with a cycle in the Smartform function call and changing a text in the footer, but when the printing is sent the printer tries to take paper from the feeding tray and stops, when I print a sapscript or other documente in SAP it takes paper from Tray 1 nad continues with the printing, does anybody know the parameter to control this in the smartform call????
    Regards
    Julio Cesar

    Thanks

  • How to get SapScript and Smartform printed in one spool request?

    Hello experts,
    I want to print the production order package in one spool request.
    Print program consists of Smartform and SapScript.
    First page is in landscape format with barcode(Smartform) and the rest is in portrait format(Sapscript).
    In SAP documentation is written that it is possible for several Smartforms to be printed in one spool request.
    Is it possible for 1 Smartform and 1 SapScript called from a single program to be printed in one spool request?
    I have tested it with calling first the Smartform control-no_close= 'X' without success.
    Can anyone tell me if this is possible and how?
    Thank you.
    Kind regards,
    Danijela

    Hi
    In the driver program .
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block  WITH FRAME.
    PARAMETERS:
    p_script   RADIOBUTTON GROUP rad1,
    p_smartform RADIOBUTTON GROUP rad1,
    SELECTION-SCREEN END OF BLOCK block.
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
    p_single RADIOBUTTON GROUP rad2,      " All the spool request
    p_ind    RADIOBUTTON GROUP rad2.
    SELECTION-SCREEN END OF BLOCK block1. " Single spool request
    If p_script EQ 'x'.
    w_form = 'Y_SCRIPT'.
      Elseif p_smartfom EQ 'X'.
       w_form = 'Y_SMARTFORM'.
    ENDIF.
    call function 'SSF_FUNCTION_MODULE_NAME'.
    Call function 'SSFCOMP_OPEN'.
    w_control-no_open   = ' '.
        w_control-no_close  = ' '.
    *"Single spool request..................................................
        IF p_single EQ 'X'.
          w_control-no_open   = 'X'.
          w_control-no_close  = 'X'.
        ELSE.
    *"Individual spool request.............................................
          IF w_flag NE '1'.
            w_control-no_open  = 'X'.
            w_control-no_close = ' '.
            w_flag = 1.
    CALL FUNCTION '    '-----> smartform function module.
    CALL FUNCTION 'SSFCOMP_CLOSE'.
    Regards,
    Sravanthi

  • Dialog in Smartform

    Hello All,
    Could any one tell me how could I transform a smartform to a PDF file without having the smartform dialog?
    I always have this dialog box before storing the smartform as pdf
    Thank you
    Karim

    Hi,
    Data Declarations
    DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
          output_options TYPE ssfcompop,"Smart Composer (transfer) options
          v_fm TYPE rs38l_fnam,"Form Name
          itab TYPE STANDARD TABLE OF mara."Table to be passed to form
    Selecting the Rows from Mara and passing it to smartfrom
    SELECT * FROM mara INTO TABLE itab UP TO 10 ROWS.
    <b>control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog</b>output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZZZ_JAYTEST'
    IMPORTING
       fm_name                  = v_fm
    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.
    CALL FUNCTION v_fm
      EXPORTING
       user_settings              = ' '
       control_parameters         = control
       output_options             = output_options
        v1                        = 'From Program'"Just passing v1
      TABLES
        itab                      =  itab  "Passing table
    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.

  • Restrict Duplicate print of receipt smartform for specific users

    Hi Folks,
    I have a custom driver program to print Customer Receipt and everything is working fine. But now I have a requirement saying I have to restrict the print option to specific user in case of print of Customer Receipt more than once.
    I found a parameter TDAUTORITY in smartform control structure SSFCOMPOP but since there is no documentation for this structure, I have no idea what is this parameter for.
    So, request you if you could guide through how to meet my requirement of restricting duplicate print for userids.
    Thank you.
    Regards,
    Sud.

    Thank you Brad for your reply.
    Since mine is a custom driver program that is not linked to any Output type in NACE, I can not use the NAST table variable. the NAST table is never updated since my program is a complete Z developement with selection screen to input the values.
    So , I believe that I am left with the Authorisation object approach. I shall use the AUTHORITY-CHECK for the user and should proceed accordingly.
    Thanks again !
    Regards,
    Sud.

  • Background job output

    I schedule a job in backgroung proces(smartform).
    Whwn i click on the spool  to see the output ,  there is  error  "NO FRONTEND AVAILABALE" .
    how can i see my output of the back ground  job (smartforms).
    i am executing the process  like 
    1. tcode run
    2. F9  ( FOR BACKGROUND PROCESS)
    3. se37  to see the job proceesing
    4. click on spool
    5. but no  ouput i can see
    i don't know why??

    Hi Ajay,
    Please search form with '
    Mulitple Purchase order Print in SAP Script'
    the thread shows below.
    If your requirement is to print multiple PO's then i think you need to develop a Program .
    In that in your final internal table you can loop it and print...
    And also these setting need for background job.
    If you have smartforms you can set following parameters
    CALL FUNCTION LV_FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = CONTROL
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS = OUTPUT_OPTIONS
    USER_SETTINGS = ' '
    VEHICLE = VEHICLE
    LV_BAR = LV_BAR
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    IT_FINAL = IT_FINAL
    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.
    CONTROL-PREVIEW = 'X'. "Preview the output of Smartform
    CONTROL-NO_DIALOG = 'X'. "Don't show Dialog
    OUTPUT_OPTIONS-TDDEST =  'X' or space. "Spool: Output device(depend on requirement)
    OUTPUT_OPTIONS-TDNOPRINT = ' '. "No printing from print preview
    OUTPUT_OPTIONS-TDCOPIES = 1. " number of print copies
    OUTPUT_OPTIONS-TDIMMED = 'X'. " Print Immediately (Print Parameters)
    OUTPUT_OPTIONS-TDDELETE = 'X'. " delete the request after printing
    OUTPUT_OPTIONS-TDLIFETIME = '5'. " spool retention period
    OUTPUT_OPTIONS-TDCOVER = ' '. " no cover print
    If you want immediate output while setting background set printer property time of print "Immediate"
    Hope this will help to you.
    Thanks,
    Hari

  • Printing multiple documents

    Hello FORM experts!
    I have a question here..
    In my program I generate multiple documents and then want to print them all at once with one button click.
    Document info is in a table which is also written into the database table.
    How should this work, should I give my smartform calling function some extra parameters to print them all or should I pass all the info to the smartform and make it print them all there with a loop or sth.?
    I'll explain some more..
    I have a report which then generates special kind of invoices...
    when invoices are generated there's a list of them displayed...
    Now I would like with one button to call out a smartform and print them.
    I want 1 pop-up print screen for all the invoices.
    Right now, I get a pop-up for every single invoice it is printing
    Thank you!

    Hi,
    You can try the following.....Loop at your final internal table and call subroutine printform.In which you will call ur smartform for printing.
    Write the following code....
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'ZZSD_INVOICE_TRADE_FORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        IMPORTING
          FM_NAME                  = LV_FM_NAME
    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.
      CALL FUNCTION LV_FM_NAME
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = CONTROL
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = OUTPUT_OPTIONS
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        IT_DISPLAY                 = IT_FINAL
    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.
      CONTROL-PREVIEW           = 'X'.       "Preview the output of Smartform
      CONTROL-NO_DIALOG         = 'X'.       "Don't show Dialog
      OUTPUT_OPTIONS-TDDEST     = PRINTER.   "Spool: Output device
      OUTPUT_OPTIONS-TDNOPRINT  = ' '.       "No printing from print preview
      OUTPUT_OPTIONS-TDCOPIES   = 1.         " number of print copies
      OUTPUT_OPTIONS-TDIMMED    = 'X'.       " Print Immediately (Print Parameters)
      OUTPUT_OPTIONS-TDDELETE   = 'X'.       " delete the request after printing
      OUTPUT_OPTIONS-TDLIFETIME = '5'.       " spool retention period
      OUTPUT_OPTIONS-TDCOVER    = ' '.       " no cover print
    REgards,
    Kashyap

  • How can I have a .pdf that is encrypted (read only, no printing), but is searchable?

    I have a file containing secured .pdf documents.  These documents can be viewed electronically, but cannot be printed.  The security settings chosen are "Encrypt all document contents except metadata," and "Restrict editing and printing of the document."   All the documents have had "recognize text in this file" done on each one.
    The document is stored in a folder for scanned documents of this type on a network drive.  The document can be opened and read by anyone with an Acrobat Reader (we use version 8), but they cannot alter it or print it.  However, what is needed is a means to be able to search among all the documents in that folder for particular words within any of the documents.
    For example, I could open up the file, and using the "Search" function search "all files and folders" for the word "DEA."  The search engine should then call up every .pdf in that folder that has the word "DEA" somewhere in the text. 
    If there is no security applied to any of the documents this works just fine.  But when security is applied to the documents the search brings back "Seach is complete, there are no results to display."  The search engine will only find documents within that file that have no security enabled.
    Does anyone have any suggestions?
    Mogadeet

    We use Windows XP Professional, version 5.1, Service Pack 3.
    I enabled "copying of text, images and other content."  Then ran my test through the Adobe reader and the search engine worked as advertised (I searched for a single word found on the last page of the document, and it called up the document). 
    The next thing I had to worry about was the copying.  These are controlled documents and this is why we do not want them printable.  We do not have electronic signatures in use as defined in CFR 11, so the signed document is only permitted a certain number of controlled copies within the facility.  Trying copying produced readable and useful copies of the text, but not the signatures nor the template features, and other items like equations did not copy in a manner that made them look like those in the document (again, readable, but not exact reproductions).  This will undoubtably be satisfactory. 
    I think that simple solution solves the problem.
    Mogadeet

  • Field Prof.Segment is a required field for G/L Account 2100 454010

    Hi Controlling Copa Expert,
    user facing problem, at the time of Business Transaction , getting error while MIRO, " Field Prof.Segment is a required filed for GL 454010, kindly let me know where and wht input parameters for the same. Prof. Segment.
    we have made Copa Report. as per client requirement. in this regard , as i understand ,all P&L GL Cost element field status group Profit Segment Required entry. just wht happened while doing Miro, getting error for 327225 i.e Price Diffrence gain. earlier FSG was G029 but i did changed Profit Segment Required entry . copy from G029 and given new name COPA . and copa FSG Profit segment required entry.
    but finally we have change like earlier FSG i.e G029, coz at the time of Miro Profit segment filed was there but is was not active for input parameters. finally we have resolve the issues without Profitability segment... but its not right.  so kindly requested to you ... where i have to config in Copa report.
    Kind regards
    Pranav Kumar
    SAP FICO Consultant.

    HI Hursikesh,
    i want to give PSG at any how, if  i give as optional problem resolved but Profitability denouement will not generate. we want to give PSG at any how, because we have made FSV financial statement version in FI . client want match through COPA Report. kindly help me how all the business transaction updated with Profitabilty Document generate.plzzze.
    client want material cost under GL Group Head :- Manpower ,Consumables and  Energy GL already assign in PA Structure, under Conversion cost . and revenues. so it will come gross Profit. but revenues updated based on Condition Types .. i don knw why nt updated.. as i understand user skip the PSG thats the reason , thats why i given FSG as mandatory in relevent GL FSG .now tell me wht should i do . for this issues scenarios matching with FSV with COPA report.
    Note : in FSV P&L Account if m not wrong. not balance sheet item. FYI.
    yr quick action will be highly appreciated.
    Kind regards
    Pranav
    SAP FICO Consulatant.

  • Passing Default printer options to SF through printer program

    DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
              output_options TYPE ssfcompop,"Smart Composer (transfer) options
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Iam using above code to assign printer options default to smart forms such that user need not select the printer in the runt time.It works well but only when there is no user input required.When the user has to input data for Eg:user enter range for pernr,the program display information between the range.The above code is not working,I have to select the printer again.Can anyone tell me why?
    Thanks.

    DATA: control TYPE ssfctrlop,"Smart Forms: Control structure
              output_options TYPE ssfcompop,"Smart Composer (transfer) options
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Iam using above code to assign printer options default to smart forms such that user need not select the printer in the runt time.It works well but only when there is no user input required.When the user has to input data for Eg:user enter range for pernr,the program display information between the range.The above code is not working,I have to select the printer again.Can anyone tell me why?
    Thanks.

  • Smart form printing without dialog box

    Hi,
    Thanks to eveyone for reading this post.
    I want to print a form thru smartform. I am able to do that now by calling that smart form and passing the data. Now i wanted to print multiple docs using smartform so that the dialog box printer doesnt apppear and all printing is executed without any user intervention.
    I tried to call smart form in the following way so that data is printed to the printer without any thing appearing on the screen (dialog box).
    I did consult the forums here and when i try it I either see the dialog box or see other sy-subrc.
    Code -
    Data: w_ctrlop TYPE ssfctrlop,
             w_compop TYPE ssfcompop.
    W_COMPOP-tdnewid   = 'X'.
    W_COMPOP-tdFINAL   = 'X'.
    W_COMPOP-tdimmed   = 'X'.
    W_COMPOP-tddelete  = 'X'.
    W_COMPOP-tdcopies  = 1 .
    *W_COMPOP-TDNOPREV  = 'X' .
    W_COMPOP-TDDEST    = 'LP01'.
    *W_COMPOP-tdnoprint = 'X'.
    W_ctrlop-DEVICE    = 'PRINTER'.    " Here we dont give printer name 'KX-P3696'.
    w_ctrlop-no_dialog = 'X'.
    w_ctrlop-preview   = ''.
    CALL FUNCTION '/1BCDWB/SF00000135'
    *CALL FUNCTION v_form_name
      EXPORTING
        control_parameters  =  w_ctrlop
        output_options      =  w_compop
        user_settings       = 'X'
      IMPORTING
        job_output_info    = w_return
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.
    i would be glad if anyone can help me. I did a few RND in the code above to make it work but it dosent.
    Moreover when the dialog box appears then there is a text in the bar below which says please maintain printer master data. (something like that). Is that creating a problem ?
    Thanks,
    JG

    REPORT  ZANNTEST.
    Data Declarations
    DATA : control TYPE ssfctrlop,"Smart Forms: Control structure
                output_options TYPE ssfcompop,"Smart Composer (transfer) options
                 v_fm TYPE rs38l_fnam."Form Name
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Function Module to get Generated Fucntion module of Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZCONEXTNLETTER'  " your created zform
    IMPORTING
       fm_name                  = v_fm
    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.
    CALL FUNCTION v_fm
      EXPORTING
       user_settings            = ' '                         " don't forget this option
       control_parameters       = control
       output_options           = output_options
        PR_PERNR                = '00001019'   " it wil come from ur form parameters
        PR_BEGDA                = '19940101'   " it will come from ut form parameters
    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.
    this is the best answer for ur requirement..
    lets njyyyyyyyyyyy..

  • Mail Merge From Within Professional 8

    Hi,
      Is there any function in Professional 8 similar to Word's Mail Merge?  I work for a company that has a need to "stamp" unique copy numbers on certain documents.  Here's what we presently do:
    We have a Word file of a testing procedure (we have a number of different testing procedures), and we receive a request for x number of controlled copies so that the analysts in the labs can conduct testing. An example of the number for the first controlled copy for this year would be: TD125-09-0001 (TD=Testing Document, 125=the main document number (which never changes, we have about 130 of these documents), 09=the year, and 0001=unique controlled copy number.  So we would issue TD125-09-0001, TD125-09-0002, TD125-09-0003, TD125-09-0004 and so on depending on a given request.
    Now the problem:  We are going to be switching to an Electronic Document Management System (EDMS) in which the documents, when printed from within the EDMS system will print with the EDMS Headers and Footers, and therefore cannot be brought outside of the system.
    My workaround was to print out the Testing Document from within EDMS, therefore it will print with all the appropriate Headers and Footers that the system generates upon printing...then scan the document as a PDF to use as a template, and apply the controlled copy numbers to the PDF version.  The only problem is that Acrobat doesn't seem to have functionality similar to Word's Mail Merge....the beauty of which is you choose which "recipients" you would like to merge, and regardless of the length of the document, it will imprint the same number on every page, print another copy with the next sequential number, etc.  I've looked around in the Professional 8 application and the closest I've come is forms, but then you have no functionality to generate sequential copy numbers except to do each one manually.
    Does anyone know of a plug-in or scripting that will mimic the functionality of Mail Merge but from within Adobe?
    Much Appreciation In Advance!,
    Paul

    Hi Rick
    To explain in brief, the main master table (OCRD) is replicated in fields in the audit trail table (ACRD). A few additional fields are available in the ACRD such as Instance which is a numeric incremental number for each update to a master. Instance 1 is of course the Add action when it is created. Therefore you can pull the information of the BP straight from the ACRD table without having to join and using the MAX number of Instance to get the latest "snapshot" of the master. Then there are fields such as update date and time which can be used to determine if any records have been updated in say the last 5 minutes for example.
    Another suggestion would be to add an activity to the BP rather for each letter that must be created, as this will give you history of each letter that was sent. What can work quite nicely will be to change the layout of the activity to be some letter format and then possibly save this to PDF or print to a Document generator printer as a TIFF file and then attach these back to the activity. From the activity you could also fax, email or print the letter.
    The above scenarios are just a suggestion, and I guess a way of trying to impress on you that SAP Business One is still a good choice, despite a few shortcomings. The important thing to remember with SAP Business One is it's flexibility in terms of User Defined Fields, Formatted Searches, SDK, UDO's, DI API, etc. which can in many cases overcome functional gaps. The best advise is to consider how big the gap is and what it will cost to fill it in terms of project time line and cost.
    Hope this helps
    Kind regards
    Peter Juby

  • Classification of ABAP Programs

    Hi,
    If you need to classify the ABAP Programs which categories would you use?
    I have the following:
    Interfaces
    Enhancements and Modifications
    Reports
    Functions
    Applications
    SAPScripts and SmartForms Control Programs
    Any idea will be appreciated

    You caould classify them as:
    Update/Report
    Application Area (FI/MM, etc.)
    Rob

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

  • Smartforms Printing Control

    Hi everyone,
    Is there any way you can control how many copies of the form are being printed in a month? For your info, our version is still 4.6c.
    I'm doing my company's payslip using smartforms and there is a great need to control how many copies of the payslip are being printed in a month.
    TQ so much.

    hi
    after calling the smartform u will get the number of pages printer
    by usiong the DOCUMENT_OUTPUT_INFO-TDFPAGES
      CALL FUNCTION FP_V_FM_NAME
    *    EXPORTING
    *      CONTROL_PARAMETERS = FP_ST_CONTROL_PARAMETERS
    *      OUTPUT_OPTIONS     = FP_ST_OUTPUT_OPTIONS
    *      USER_SETTINGS      = SPACE
    *      WA_VBDKR           = FP_ST_VBDKR
    IMPORT
    <b>DOCUMENT_OUTPUT_INFO = st_DOCUMENT_OUTPUT_INFO</b>
    *    TABLES
    *      IT_ITEM            = FP_IT_ITEM_FINAL
    *    EXCEPTIONS
    *      FORMATTING_ERROR   = 1
    *      INTERNAL_ERROR     = 2
    *      SEND_ERROR         = 3
    *      USER_CANCELED      = 4
    *      OTHERS             = 5.
    *  IF SY-SUBRC <> 0.
    by using this value... u will get to know how many page have been printed..
    Create TABLE then store this value after issuing the print. by usuing the Print program.
    so that u can track the details.
    another simeple way is track the changes using the Spool request numbes..
    first stemp get the Spool id's form Table- NAST. in a give date range.
    then goto TSP0* table... i am trying to get the nimber page per spool request numbe...
    if i open the Tcode SP01--> i am able to find the number of pages but i dont know  wher it is stored....
    u  also seach with TSP0*.. to fing the number of pages printed...

Maybe you are looking for

  • Control width and hight ??

    Can someone plz tell me how I can control width and hight of my printing?? My code:         public int print(Graphics g, PageFormat pf, int pi) throws         PrinterException             if (pi >= 1)                return Printable.NO_SUCH_PAGE;    

  • What is the best moving company? ;)

    Here's the deal. I would like to buy new (bigger) HDD for my laptop. What i want to do is; move all of the partition from my old disk (/, /home, /boot etc.) to the new disk (i want to avoid plain copying). This ofcourse is not a big problem, but i wo

  • Iphoto sometimes refuses to recognise jpegs

    Sometimes I have no difficulty importing jpegs from my Canon G6, other times it claims it cannot as the format is unrecognised. Re-strtung, etc may or may not resolve this. Eventually importing goes on as if nothing was wrong. What's the problem here

  • Usb drive not recognised

    Hi This is my first Mac so please forgive my ignorance, i have 4 usb pen drives all 8gb scandisk cruzer titanium, they are all password protected to comply with data protection regulations, the problem is that my mac wont find then unless i remove th

  • Final Cut Pro 5 won't launch

    Hello, I'm having an odd situation. I have FCP 5, and I was using it earlier tonight just fine. Now though, whenever I click on a project file, or the FCP icon in the dock, I see the licensing screen pop up for a second, watch some numbers process, a