One Smartform - Multiple PERNRs - Output is Single PDF

Hi Gurus,
Scenario:
100 Employees receive Appraisals.
Out of which -
50 receive Bonus
30 receive Variable Pay
20 receive Other Incentives
The Forms for Bonus / variable pay and other incentives are different.
Smartform 1: Bonus
Smartform 2: Variable Pay
Smartform 3: Other Incentives
The output that i need is when the Form Generation Program is executed, i should be able to club into one Single PDF File for each
a. 50 PERNRs who receive bonuses with Smartform 1;
b. 30 Variable Pay PERNRs with Smartform 2; and
c. 20 Other Incentive PERNRs with Smartform 3.
Currently, when the Form Gen. program is executed, it is creating one smartform for one PERNR....thereby, creating 100 PDF files.....
Kindly help.
Kumarpal Jain.

Can u tell me where is that i am going wrong in the below code...
FORM GETTOB .
  WA_TAB-NSALARY1 = WA_TAB-NSALARY.
  W_FILE_PATH = L_FNAME2.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = P_FORM
  VARIANT                  = ' '
  DIRECT_CALL              = ' '
   IMPORTING
     FM_NAME                  = PM_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 PM_NAME
     EXPORTING
       CONTROL_PARAMETERS         = WG_CPARAM
       OUTPUT_OPTIONS             = WG_OUTOPTIONS
       USER_SETTINGS              = ' '
       ANRED                      = WA_TAB-ATEXT
       FNAME                      = WA_TAB-VORNA
       SNAME                      = WA_TAB-NACHN
       ACCOUNTNUMB                = WA_TAB-PERNR
       POSTXT                     = WA_TAB-PLSTX
       COCTXT                     = WA_TAB-LTEXT
       COSTCEN                    = WA_TAB-KOSTL
       NSALARY                    = WA_TAB-NSALARY1
       EDATE                      = WA_TAB-EDATE
   IMPORTING
    DOCUMENT_OUTPUT_INFO       =
     JOB_OUTPUT_INFO            = T_OTF_FORM_FM1
    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.
  CONCATENATE WA_TAB-PERNR'_TOB_'WA_TAB-BEGDA'_'WA_TAB-ENDDA'.pdf'
  INTO W_FILE_NAME.
  PERFORM PDF_CONVERSION.
ENDFORM.                    " gettob
FORM PDF_CONVERSION .
  CALL FUNCTION 'CONVERT_OTF'
     EXPORTING
        FORMAT                     = 'PDF'
        MAX_LINEWIDTH               = 132
    IMPORTING
       BIN_FILESIZE                = W_BIN_FILESIZE
      BIN_FILE                   =
      TABLES
        OTF                        = T_OTF_FORM_FM1-OTFDATA
        LINES                      = T_PDF_TAB
     EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 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.
  CONCATENATE  W_FILE_PATH'\'W_FILE_NAME INTO W_FILE_PATH.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME = W_FILE_PATH
      FILETYPE = 'BIN'
    TABLES
      DATA_TAB = T_PDF_TAB.
ENDFORM.                    " PDF_CONVERSION
Edited by: Kumarpal Jain on Sep 9, 2009 2:34 PM
Edited by: Kumarpal Jain on Sep 9, 2009 2:35 PM

Similar Messages

  • Multiple JSPs output into single PDF file

    Could anyone guide me on how do I combine output of multiple JSP files into a single PDF file? I have got 8 different reports and shall required to have single output of all of them in a PDF file. Its urgent. Please help.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • Examples for converting multiple form output to single pdf

    Hi all ,
         I need sample code or examples for converting multiple smart form outputs (more than 1)  to single pdf. Can someone provide that? Reply  ASAP 
    Thanks & Regards,
    Pavan.

    Hi,
    check this:
    [How to merge multiple spools into single PDF file?;
    [Merge multiple PDF Files;
    [https://www.sdn.sap.com/irj/scn/advancedsearch?query=multipleformoutputtosinglepdf++]
    hope u'll get some idea.
    Regards,
    Sneha.

  • Multiple smartform output to single pdf file

    HI,
    I am new to ABAP. I have a requirement to combine multiple smartfrom output to  single pdf file.  I searched in this site. I got material but i did not get the complete concept. Can anybody tell me the methodology and sample code to do that.
    Thanks & regards,
    Maha.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • How do I scan multiple documents to a single pdf from the ADF on my MX922?

    How do I scan multiple documents to a single pdf from the ADF on my MX922?
    Solved!
    Go to Solution.

    Hi Riceburner1,
    Since you have had difficulty scanning using My Image Garden, you can scan using the IJ Scan Utility program that also comes with the printer.  To do this, please follow these steps:
    1. Place the documents in the ADF or on the platen glass of the printer.
    2. Start the IJ Scan Utility.
        For Windows 8.1:
        1. On your keyboard, press the Windows key.
        2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it, then continue with Step 3 below.
        For Windows XP:
        1. Go to your START MENU, then select ALL PROGRAMS, then CANON UTILITIES, then the IJ SCAN UTILITY program.
        2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears. Please continue with Step 3 below.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window. In the Select Source field of the Scan Options section, select DOCUMENT (ADF/PLATEN) to scan items placed directly on the platen glass, DOCUMENT (ADF SIMPLEX) to perform single-sided scanning from the ADF, or DOCUMENT (ADF DUPLEX) to perform double-sided scanning using the ADF. You can then set the item size, resolution, etc. in the Scan Options section as desired.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
         a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.  Please note that the filename that you give the document here will be the default filename for all items scanned until you change the file name.  If you leave the file name the same in the field, the scanned item will have a sequential number appended to the end of whatever name you give it.
         b.) In the DATA FORMAT field, use the drop-down arrow to select the desired option. If you are scanning a multipage document, select the PDF (Multiple Pages) option.
         c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6.  In the APPLICATION SETTINGS section of the window, please select the DO NOT START ANY APPLICATION option.  
    7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
    8. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed.   Once the scan is completed, scanned images are saved in the previously selected folder location specified in the SETTINGS... window.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • To print one photo multiple times on a single page

    The title of my question is the title of the page in iPhoto 8 help.
    "To print one photo multiple times on a single page"
    It says (a bit shortened) 1. Select photo 2. Click print button 3. Select paper size 4. Select print size 5 Click Customize button 6 Click Settings button 7. Select "Multiple of same photo per page from the Photos Per Page pop-up menu. 8 Click OK 9 Click Print.
    I can not find the pop-up menu referred to in Step 7. There are two "settings" buttons - neither produce a Photos Per Page pop-up menu. Settings appears if you click a double arrow to the right in the lower margin but only deals with font issues and "Print Settings" does not offer such a pop-up.
    I am using Leopard on a PowerBook G4 and just bought and installed the newest iLife 8.
    Grateful for help.

    Arthur:
    When you click on the Customize button there will be a Setting button in the next window. Click on it and in the drop down window that comes up will be the option to print multiple photos of the same photo per page.
    Select that option and click OK. You'll get the spinning cursor for a few seconds as iPhoto creates the multiple copies on the page you selected. Be sure that the print size is small enough so that you can have multiple copies of it on the paper size you selected.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Hiding filenames when combining multiple files into a single .pdf

    I'm fairly new to this Acrobat X. I'm trying to assemble my portfolio to distribute to employers but I cannot seem to get rid/hide the filenames in the final pdf file. I was using the option to 'combine multiple files into a single pdf' because I was compiling images and documents to a single readable pdf file. I got all that done but once I open it, I'd see that each page would still contain the original file names rather than page numbers - which I prefer not to have employers see for the sake of tidiness (and I refuse to use the Adobe portfolio because it's not really efficient on space or design. I prefer a simple page-by-page pdf). So I was wondering if anyone can tell me how to hide my file names, change them into page numbers or getting rid of them all together so the 'Table of Contents' in the pdf preview mode would not show anything, I would really much appreciate it.
    -Ss

    Well, when the .pdf is in the final, deliverable form; I open it in Mac preview mode and the sidebar is always extended showing a 'table of contents' rather than having each document in the pdf file have a number designating a page name, it shows each individual filename the pdf is composed of. Not too sure about bookmark, though. Thanks for the reply!
    If you want, I can send the file to you.

  • Generate and Print Preview Multiple Forms in a Single PDF

    There have been other questions similar to this but none directly address my problem.  We have the need to generate multple forms in a .pdf using Adobe interactive forms.  We can generate the multiple forms, but the user has to click on each form to view.  They want to have the forms in a single document that they can scroll through before printing.  We can do this in SmartForms but need to do it in Adobe.  Does anyone know how to generate multiple forms, either multiple copies of the same form or various forms, from an ABAP program into a single pdf that can be print previewed, in scrollable form, by the user?

    I can describe it one more time, I think:))
    You have multiple options, but only one "reasonable" within SAP.
    You can call an external application (through command line etc.) to concatenate forms for you.
    You can use iText as mentioned in the thread, and write yourself a "tool" which will concatenate the forms for you.
    Both these "options" would not be acceptable for my clients, I name them to help you get the whole picture.
    Then there is the third option: use a form for a single instance (template/ form A) and create a new form (form B), where you will use the A template:
    - you need to: create a new interface where everything from the old interface is a row of the table (example: you have a form to print out the personal card of the employee, so in a new form you will need to use a table, where a row is an employee)
    - you need to create a new form layout based on the new interface:
    in this new layout you will paste the whole layout of the old form (A/ single instance) and wrap it into a subform. The added subform will work as a table (you will bind that to the table from interface) and everything from the old template within this new subform will work as a "row" (something what you can repeat for each data item).
    Does that sound reasonable?
    Cheers Otto

  • Scanning multiple pages to a single PDF

    I need to scan (with a standard HP all-in-one) multiple pages and save them to a single PDF. Does anyone know how to do this? I was hoping to scan individual pages into individual PDFs, then combine them somehow -- but I can't figure out how Mac OS can do that. Any thought? Thanks in advance.

    Combine PDFs
    Good luck.

  • Scan multiple pages into a single PDF document?

    How can i scan multiple pages into a single multipage PDF file?
    I've seen similar questions posted, but I haven't found any good answers. The only advice i saw was to scan each page as a separate PDF document, then merge them into a single PDF using third-party software.
    Obviously, i don't want to have to do that.
    I can't believe that there really is no way to do it using the existing HP print/scan utilities provided with the hardware.
    My printer/scanner is the "HP Photosmart 5514 e-All-in-One Printer - B111h", and i'm running Vista (64-bit) on an HP Pavillion notebook.
    This question was solved.
    View Solution.

    Hi,
    From the HP Scan software (Start > Programs > HP > HP Photosmart 5510 Series > HP Scan) select PDF and ensure the resolution is 300 DPI or lower.
    Ensure the Show Scan Preview option is checked and click on Scan.
    Once scanning the first page completes, place the next page on the glass and click the plus button below the scan preview...
    Once you are done click on Save.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Combining multiple files into a single PDF/A

    The issue brought up in another discussion is the loss of PDF/A conformity when “merging” multiple PDF/A files into a single file (I use PDF/A for preservation of corporate records). The “insert” option retains conformity but does not allow inserting multiple files in a certain order, unless you insert them one by one (which is a pain when you have 50 files to attach).
    The solutions I’ve come up with so far:
    1)     1)  In AAPro – combine files into a single PDF and then convert it to PDF/A using Preflight. This is easy, my only problem is that I don’t have AAPro (and AAStandard doesn’t convert to PDF/A).
    2)     2)  In AAStandard – combine files into a single PDF and then “print” to PDF/A. The problem of this “re-frying” is that it only creates PDF/A-1b (not 1a), bookmarks and OCR of scanned pages are lost, and files become significantly larger.
    I wonder if anyone knows a more intelligent way around this problem, provided that I only have AAStandard. Thanks!

    Well, when the .pdf is in the final, deliverable form; I open it in Mac preview mode and the sidebar is always extended showing a 'table of contents' rather than having each document in the pdf file have a number designating a page name, it shows each individual filename the pdf is composed of. Not too sure about bookmark, though. Thanks for the reply!
    If you want, I can send the file to you.

  • [CRS2008] Scheduling a report to multiple file output in single schedule

    Hi,
    Is there any way in CRS2008 / Infoview to scheduling one report to multiple file output in one schedule?
    i thought maybe it can, but still not found the way.
    Says,
    I have one report say "Report by Branch.rpt", the parameter prompt is BranchCode.
    I want to generate the "Report by Branch.rpt" for every BranchCode in separate output generate file. Like, "Report by Branch.rpt" for BranchCode A, or "Report by Branch.rpt" for BranchCode B.
    So, if i run the schedule, it will generate several report based on the report parameter given.
    Hope, would find the way.
    Thanks in advance.
    Regards.
    Edited by: fritzwijaya on Sep 20, 2010 3:47 AM

    For anyone still looking, the job can be seen under the Job History option on the home screen, but not on the Job History option under the report in the catalog - i am assuming this is becasue somehow im not referencing the report correctly in the ScheduleReport request message.
    Also, the jobId returned is a parent jobId, which when used to poll the job status, always returns a 'Scheduled' status. Im now adding 1 to this ID to get the status of my job - this returns the correct status of 'Success'.
    Still hoping someone has an idea on the getDocumentData question...?
    Thanks.

  • How to merge outputs in single PDF?

    How can I merge the output of two files(Oracle reports10g file), into single PDF? Is it possoble in Reoprts 10g?

    Re: Merge few reports into a single PDF file
    Re: How to append pdf (Very Urgent plz)
    re:Possible to Merge Reports?

  • Multiple smartform Outputs in Single PDF

    Hi,
    I am displaying ALV report , from there I am converting my smartform output into PDF using CONVERT_OTF and Downloading it to my desktop.
    Now user is looking for push button in ALV, i.e Display PDF in Single File. I have created the pushbutton and tried to convert the OTF data PDF as per below link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?quicklink=index&overridelayout=true
    My file is downloading to the desired path. When i tried to open that file it is giving error message as below.
    THERE WAS AN ERROR OPENING THIS DOCUMENT .  THE FILE IS DAMAGED AND COULD NOT BE REPAIRED.
    when i seleted the rows seperatly, it is displaying as PDF correctly, but if i tried to append the lines as per the above reference link i am getting the problem.
    Can anyone please help me out to solve this.
    Thanks & Regards,
    Srinivas Bhavanam
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Mar 24, 2010 6:25 PM

    This article is correct about the //. First make sure you remove them correctly, and nothing else. Only 2 // must remain, one at the beginning, one at the end.

  • Multiple e- signatures on single PDF

    Hi All - We have a requirement that a document can be uploaded from Web-center portal application and request e-signatures from multiple recipients .
    Displaying the single water mark e-signature at the end of each page is possible ,
    but how can we manage in-case of multiple signatures ,is there any feasible solution to satisfy this requirement .
    appreciate your feedback and thanks in advance .
    Thanks
    Sreeni

    [Disclosure: I work for CoSign]
    Yes, your needs are covered by the CoSign Connector for Oracle WebCenter Content. It uses the CoSign signing system (either on-premises or cloud) to securely sign pdf or other documents.
    The signing process can be controlled by Oracle workflows. A document can be signed multiple times. The resulting signed pdf document and its signatures can be viewed using the free Adobe Reader or by other apps. Adobe Reader (or other apps) can verify the signatures to assure the viewer of the signers' identity, intent and to verify the document's integrity (ensure that the document was not changed since signing.)
    More info via sales at arx.com. Tell them Larry Kluger sent you.

Maybe you are looking for