Smartform print same form in 3 copies

hello to all,
i have a smartform for form16 , out put of this is of only one page , my issue is when i press on print command it print 3 copies of same . how is possible without entering the no. of copies in print criteria section.

For example if u pass your internal table HDR Then put following logic in your report
LOOP AT hdr.
      hdr-orsel = 'ORIGINAL'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.
      hdr-orsel = 'DUPLICATE'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.
      hdr-orsel = 'TRIPLICATE'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.
    ENDLOOP.
Then u pass your internal table insted of HDR you pass HDR1.

Similar Messages

  • Printing same form with 4 copies with differnt terms for each copy..

    Hi experts,
    i have to print a invoice form same form should be printed with 4 copies like invoice copy, sales copy etc.
    for invoice copy the terms to b displayed is different similarly for sales copy.
    am able to print the differnt copies but the same terms are geting printed for evry copy..
    Please suggest

    yes am using the copy count and able to print 4 copies.. sales copy , invoice copy etc..
    but the problem is same terms are geting printed for all the copies.
    i have created 2 pages in second page i created 4 windows for 4 diffrent terms and on the windowsi kept the conditon as
    SFSY-COPYCOUNT = 1 , 2 etc based on copies.
    1)but the SFSY-COPYCOUNT value will only be there upto copy window.. it wont take forward to next page..
    2)  we cant call the command line for next page in copy window.. we can call it only in main window, but in main we cant get the SFSY-COPYCOUNT value
    3)  once a second page with terms  is attached to the main window we cant change it.. it will be same for all the copies as the main window will trigger only once..
    PLEASE DO HELP...
    THANKS IN ADVANCE

  • 1099 Form - Misc doesn't print 2 forms per page.

    The 2007A PLD form that we have prints only 1 form per page.  The 1099 forms that we have for MISC have 2 'forms' per page.  I have tried scaling the size of the repetitive area so 2 vendors print per page, but I am unsuccessful.  How does PLD know how many vendors (1099's) to print per page?

    Our organization is having this issue with the new Adobe forms that were released. The 1099 smartforms print 2 forms per page but the 1099 adobe forms are only printing 1 form per the OSS  note that was just released - Note: 1949022. Is there somewhere in config that we can select to print 2 per page?
    We are using IDWTCERT_US_1099MISC which will print just 1 form per page ( we also had to make some adjustments because the top gets cut off...)
    form IDWTCERT_US_1099MISC1 will print 2 forms per page but it is not a new vendor that prints on the form it is a copy of the first on the page
    The 1099 Interest adobe form prints 2 per page with IDWTCERT_US_1099INT - this is curious too because the smartform prints 3 forms per page
    Has anyone else experienced this issue? Do you know how to resolve it?I am considering putting in a problem report.
    Thank you

  • Print Multiples copies of the same form.

    Post Author: Morovis
    CA Forum: General
    Can I print a multiples copies of the same form using a counter. For example I like to print 200 copies and I have a variable or running toatl that can be incremeted by 1 trought the copies.

    I used to be able to print multiple copies of the same picture on one page using iphoto. There was a customise button when you went through to print and it was there somewhere. I can't see it anymore - maybe since an upgrade.
    It's gone. But as a work-around, duplicate your photo (⌘D) to create as many versions as you want copies and select all at once. Then use the "Custom" print layout and set the photo size you want.
    After printing, trash the added versions.

  • Printing same smartform with different set of records continuously.

    Hi SDNer,
    Suppose a table contain Studet info like the following one:
    ID   Name    Sub1       Sub2     Sub3
    1    xxx        sb11       sb12     sb13
    2    yyy        sb21       sb22     sb23
    3    zzz        sb31       sb32     sb33
    Think that the smartform contain only a single page(Suppose smartform of student result).In the Selection screen User can put the range of ID.When User put 1-3 the smartform print 3 pages---1st for the student with id 1,2nd for student with id 2 and 3rd for student with id 3.when user put the input 1-2 the smartform print 2 pages.I need your help to accomplish such a scenario.
    Thanks in advance.
    Regards,
    Sarbajit.

    Hi,
    As per user's selection criteria you need fetch data in your driver program and need to store it in an internal table. The same internal table you need to pass to smartform. to handle your requirement of displaying one student record per page you need to use COMMAND node (with some condition). Using this you can force your smartform for page-break.
    I hope this will help you to start and explore further.
    Regards,
    Sambaran Ray

  • 4 copies of same form with differnt footers and terms and conditons at back

    Hi Gurus,
    I have a requirement for invoice printing have a standard driver program for that..
    The problem is when we print the form we need 4 copies of the output with 4 different texts at the footer.
    like customer delivery copy, payment copy etc.
    And for cust delivery copy it should print the terms and conditons at the back side similarly a differt terms and condtions for payment copy..
    Please Help.. and provide ur valueable suggestions

    Hi Imran,
    Efficient, easy and perfect solution is here:
    Step-1: Your dynamic/conditional texts in footer should write in a new window. Create a new window and place it in page accordingly. Now, change the type of that window as 'COPIES WINDOW'.
    Step-2: In side this window, create a program-line and get the value of system variable 'SFSY-COPYCOUNT'. This will be either of 001/002/003/004 for different 4 copies.
    Step-3: Now depending on this value, print your footer.
    Hope this will solve your problem.
    Thanks
    Arghya Roy

  • Need to package multiple copies of same form in a single document

    Hi,
    I used Livecycle to creat an interactive form. I now need to create a single pdf document that has multiple copies (about 30) of the same form. Help!
    Thanks in advance.
    Margaret

    Hello Margaret,
    I have been struggling a lot to develop and interactive form using LIvecycle. i.e., a form that is pre-populated with data and then user can add more data and then the form can be saved.
    I saw that you have mentioned developing an Interactive form. could you please send me a sample or help me with the same?
    Thanks and Regards
    Nanda

  • Error in smartform printing where main data of the form is blacked out

    Hi Guys,
    I encountered a problem when printing my form. The main window is blacked out (not blank) but viewing it in SAP data are correctly displayed. The main window is a table. Hope you guys can help. Thanks a lot.
    Ian

    Sorry mate I thought it is SAPScript and giving solutions for SAP script now I realised it is SF, this could be one of the reasons...
    double click on main window and click on Output options tab at the bottom you will see saturation  under shading label, if it is 100% then it will black out your page try to set to 0%, for normal white display for grey shade keep 10 %
    I hope this will solve your problem.
    Regards,
    SaiRam

  • Printing a form

    Hi folks,
    I had an question, related to printing the form using sapscript. I am printing a sapscript form using two printers. The first one is HPLJ4000 : HP Laserjet 4000   and the model is Dell Printer and using this printer the form is printing fine.
    However when I print using another printer HPLJ4000 : HP Laserjet 4000 but a different model HPLJ 2100TN some of the data is not printing in the right font size. The font I am using is HELVE and I believe it is not recognising it.
    I do not know how to work on the issue, asked the Basis guy too he has no clue about it.
    Any thoughts or ideas will be helpful?
    Thanks,
    Sk

    Hi
    See this OSS notes
    OSSNote:960341
    Symptom
    In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
    Other terms
    CONVERT_OTF, SAPscript, Smart Forms
    Reason and Prerequisites
    The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
    The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
    Example:
    %Charwidth values from HP4300 HELVE 060 normal
    /Widths
    [ 278 333 500 633 633 1000 758 333 333 333 633...
    Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
    This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
    The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
    Solution
    Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
    Header Data
    Release Status: Released for Customer
    Released on: 30.06.2006  12:44:06
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s):            Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV       COURIER, HELVE, TIMES
                            (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ                  COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV              COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK          COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL                      COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE                      COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR                      COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH                      CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA                      JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP                      KPBATANG, KPDODUM, KPGULIM
                            KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF                      TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH                      THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR                      ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000    0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4  P 144  240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE  120  00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000    0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4  P 144  240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE   120  00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005  09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Smartform Printing Problem in SAP ECC 6.0 with Ehp6

    Hi Sap Expert,
    Our Sap System has been upgraded from ECC 6.0 to ECC 6.6 ( Ehp6). now we are  facing  problem in to print smart forms .
    I have a smart form with one page and three copies are there.
    On first it was written ORIGINAL, on second DUPLICATE and third one is TRIPLICATE.
    When I see the print preview it shows all the three pages ( ORIGINAL,  DUPLICATE and  TRIPLICATE. ). but when i give the command to print.  it will only 3 copies
    ORIGINAL. and when i convert into PDF it shows only one page ORIGINAL.
    I want ORIGINAL,  DUPLICATE and  TRIPLICATE printout in single command.
    Note : Before Up gradation of sap system it worked fine.
    Guide me.........

    Hi Marques,
    Yes, my problem has solved,
    Write the code Driver Program:
    Declare Internal Table as:
    DATA : BEGIN OF ITAB OCCURS 0,
              I TYPE I,
              TEXT TYPE CHAR20,
              END OF ITAB.
    and Append 3 time this Itab with the no of copies of form ( Original, Duplicate and Triplicate ) as
        ITAB-I = 1.
       ITAB-TEXT = 'Original'.
       APPEND ITAB.
       CLEAR ITAB.
    Now,
    LOOP AT ITAB.
    call function module of smartforms as
    CALL FUNCTION fm_name
       EXPORTING
        CONTROL_PARAMETERS         = CO
        OUTPUT_OPTIONS             = OT
    *   USER_SETTINGS              = 'X'
         L_***                      =  L_***
         V_INDX                     = ITAB-I
    * IMPORTING
       TABLES
         IT                         = IT
    and modify the smart form as
    write the code in window
    IF V_INDX = '1'.
    v_text = 'Original'.
    ELSEIF V_INDX = '2'.
    v_text = 'Duplicate'.
    ELSEIF V_INDX = '3'.
    v_text = 'Triplicate'.
    ENDIF.

  • Smartform printing in PIN server.

    Dear SAP Guru's..
    This is a tipical problem which we are facing in our PIN server. while executing a report it will Display output in Smartform. But in Development sever it is working fine. While we are executing in Producation last colon is cutting upto 6 charecters. we checked all the Output controlls(Output device, page Formatte)..Plz do the needfull to solve the issue..Thanks in advance..
    UR's
    GSANA

    There only a few possibilities for this if it is printed on the same printer.
    -SPAD definitions must be the same
    -driver for the porinter must be the same
    -form must be the same (check form and customizing)
    -if you use locl the locl must be defined the same on dev and prod
    Otherwise let do your bais consultants do the work.
    success., Gr. Frank

  • Printed Adobe Form - pagination and data content problem

    I have been making changes to HR Appraisal Forms and all goes well except when I want to paginate a section. 
    The text is in a value string.
    I define a flowed subform with direction Top to Bottom.  binding None
    Subform Pagination Place > Following Previous    After > Continue Filling Parent If Dataset Paginated > Goto content area (there is only one content arrea defined in this form
    Allow Page breaks within content.
    I have a table object within the Subform. Place > Following Previous    After > Continue Filling Parent If Dataset
    The table has a Header row Place > Top of Next Page (this works fine) checked Include Header Row Initial Page and Subsequent Page
    the Table row (body) Pagination Place > Following Previous    After > Continue Filling Parent If Dataset
    When I test with more data than fits on page I get overflow and pagination with the Header on both pages.
    The bad the data that overflows to the new page is the same from the start of the first page, it repeats.  aso the second page has the content the length of what the overflow data would have been.
    How do I get the data NOT to repeat from the beginning on the second page?   This should have been easy but I have tried almost everything to correct the problem EXCEPT define all the objects as subforms and use Acessibility to make them work as table or row.  Please remember that I am NOT trying to make an interactive form and just want printed overflow.

    Hi,
    It allows the save as from a process point of view there speaks nothing against having long notes. And in the smartform print and in any other online UI in PM (R/3, BSP, WD) the notes are displayed correctly.
    The PDF is just another UI component, and the only one with the issue. To be honest, I think the SAP note is a rubbish answer, and an easy way out. Yes, in general it is better to have short notes on element level and longer pieces of text in an attachment.
    But logically speaking, the PDF thing is just plainly a bug.
    But we can talk short or long about it, in the end SAP is the one with the final answer
    Regards and Groetjes,
    Maurice Hagen

  • Link a field to another in same form.

    Link fields in the same form? For example: copies of the same information to autofill into field B. after/or during inputing in field A.
    I'm creating fields for IRS forms so users can type in the info and print. Each form has multiple copies of the same fields for IRS, user's records, etc.

    Just give them the same field name and this will happen automatically.

  • Print multiple forms between FP_JOB_OPEN and FP_JOB_CLOSE

    I am aware, that there are questions regarding "Printing Multiple forms", but I didn't find answers there.
    Still my system is not working as expected:
    1.  FP_JOB_OPEN is called
    2. the generated Adobe Forms function is called multiple times
    3.  FP_JOB_CLOSE is called
    This program doesn't deliver all the pages, but just the first call. How shall I solve this problem?
    (Coding should work anywhere with copy-pase.)
    data: fm_name           type rs38l_fnam,
          fp_docparams      type sfpdocparams,
          fp_outputparams   type sfpoutputparams.
    parameters: p_fpname type fpname default 'FP_TEST_02'.
    * Get the name of the generated function module
    call function 'FP_FUNCTION_MODULE_NAME'
      exporting
        i_name     = p_fpname
      importing
        e_funcname = fm_name.
    * Sets the output parameters and opens the spool job
    call function 'FP_JOB_OPEN'
      changing
        ie_outputparams = fp_outputparams
      exceptions
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        others          = 5.
    * Call the generated function module
    call function fm_name.
    * SECOND CALL ****************************
    call function fm_name.
    * Close the spool job
    call function 'FP_JOB_CLOSE'
    *    IMPORTING
    *     E_RESULT             =
      exceptions
        usage_error           = 1
        system_error          = 2
        internal_error        = 3
        others               = 4.

    Hi ZSOLT,
    In order to call the form multiple times please do the following,
    1) Just before your FP_JOB_OPEN you need to pass the output parameters (good practice). You can also set other parameters as well (for example nodialog, preview, copies., etc)
      CLEAR  fp_outputparams.
      fp_outputparams-dest = 'PDF1'.      "Default pdf printer
      fp_outputparams-reqnew = 'X'.       "New spool request
    Now call your FM FP_JOB_OPEN with the above output parameters.
    2) Usually this step is processed in a loop. (getting your interface data into a internal table and then looping at it)
    But here I am enhancing your example code.
    In order to trigger the form multiple times you need to change some input data to the form (for example I have changed date and time below in the prepare test data sections) so that the call function fm_name gets regenerated every time there is new data
    data  l_datatypes       type sfpdatatypes.
    prepare test data
      l_datatypes-char = '#'.
      l_datatypes-string = 'Auf geht''s! '.    "#EC NOTEXT
      l_datatypes-numc = '42'.
      l_datatypes-dec = 0 - ( 12345 / 7 ).
      l_datatypes-fltp = 0 - ( 12345 / 7 ).
      l_datatypes-int = 4711.
      l_datatypes-curr = 0 - ( 12345 / 7 ).
      l_datatypes-cuky = 'JPY'.       " no decimals
      l_datatypes-quan = 12345 / 7.
      l_datatypes-unit = 'DEG'.       " 1 decimal
      l_datatypes-date = '20040613'.      
      l_datatypes-time = '100600'.         
      l_datatypes-lang = sy-langu.
    FIRST CALL ****************************
    Call the generated function module
      CLEAR fp_docparams.
      fp_docparams-langu = 'EN'.       
      fp_docparams-country = 'US'.  
      call function fm_name
        exporting
          /1bcdwb/docparams        = fp_docparams
          datatypes                = l_datatypes
          mychar                   = l_datatypes-char
         mybyte                   =
          mystring                 = l_datatypes-string
         myxstring                =
          mydate                   = l_datatypes-date
          mytime                   = l_datatypes-time
          mynum                    = l_datatypes-numc
          myint                    = l_datatypes-int
          myfloat                  = l_datatypes-fltp
          mypacked                 = l_datatypes-dec
      IMPORTING
        /1BCDWB/FORMOUTPUT       =
    prepare test data
      l_datatypes-char = '#'.
      l_datatypes-string = 'Auf geht''s! '.    "#EC NOTEXT
      l_datatypes-numc = '42'.
      l_datatypes-dec = 0 - ( 12345 / 7 ).
      l_datatypes-fltp = 0 - ( 12345 / 7 ).
      l_datatypes-int = 4711.
      l_datatypes-curr = 0 - ( 12345 / 7 ).
      l_datatypes-cuky = 'JPY'.       " no decimals
      l_datatypes-quan = 12345 / 7.
      l_datatypes-unit = 'DEG'.       " 1 decimal
      l_datatypes-date = '20100913'.                 "You need to change your data in order it to trigger a new form with the new data.
      l_datatypes-time = '10700'.                        "You need to change your data in order it to trigger a new form with the new data.       
      l_datatypes-lang = sy-langu.
    SECOND CALL ****************************
    Call the generated function module
      CLEAR fp_docparams.
      fp_docparams-langu = 'EN'.
      fp_docparams-country = 'US'.
      call function fm_name
        exporting
          /1bcdwb/docparams        = fp_docparams
          datatypes                = l_datatypes
          mychar                   = l_datatypes-char
         mybyte                   =
          mystring                 = l_datatypes-string
         myxstring                =
          mydate                   = l_datatypes-date
          mytime                   = l_datatypes-time
          mynum                    = l_datatypes-numc
          myint                    = l_datatypes-int
          myfloat                  = l_datatypes-fltp
          mypacked                 = l_datatypes-dec
      IMPORTING
        /1BCDWB/FORMOUTPUT       =
    Close the spool job
    call function 'FP_JOB_CLOSE'
       IMPORTING
        E_RESULT             =
      exceptions
        usage_error           = 1
        system_error          = 2
        internal_error        = 3
        others               = 4.
    I have tested the above code and I am getting multiple forms.
    Please try on your end and let me know if it works.
    Thanks
    Raj

  • Smartforms: print accompanying documents

    Hi,
    I have to reproduce in Smartforms the same output as the existing legacy system.
    Legacy system automatically outputs
    1)A Quotation
    2)A Condition of Sale document (always printed out)
      (PDF file, 2 pages, contents are numbered and appear in
       2 columns on each page).
    3)A technical document (only printed if a criteria is
      satisfied in the logic within the Quotation)
      (PDF file, 1 page, contents appear in 2 columns on the
       page [which includes some technical drawings])
    Smartforms
    I have no problem reproducing the Quotation in Smartforms but not so sure how to output the 2 accompanying documents automatically with the Quotation.
    Currently, the Smartforms has the following design:
    1) First page
    2) Next  page
    Question
    a)Does anyone know how to get the 2 PDF files printed automatically with the Quotation without having to bring the contents into Smartforms?
    b)If the PDF contents of the 2 files has to be integrated into the Smartform, what would be the best approach?
    Bear in mind that one of the documents contain technical drawings.
    Am thinking it would be good to create at least another page (ie LAST page) and maybe incorporating the contents of the 2 files in there somehow (maybe the technical file as a scanned object and the other file contents contained in multiple windows of the LAST page).  No MAIN window in the LAST page. 
    Would my proposed approach work?  Any ideas, anyone?
    c)Have been playing with the order sequence of the different pages. Have not got it quite right yet?
    Page          Next
    First         Next
    Next          Next  ?
    Last          ?
    How to get the system to process the last page only once?
    Or is there another way???

    any suggestion?

Maybe you are looking for