Adobe: How to print the documents more than once with different data.

Hi Experts,
I have a requirement to print the document of minimum 5 employee's at a time.
First we are displaying the list of employee's and then the user is provided an option to select the employee's and print their details.
A form has been created. We are able to print the document for a single employee. But now the requirement is to select multiple employee's and print their details at one time.
I am able to get the contents all the employee's in an internal table. But i am not getting to combine the contents together and print the document.
So could some one help me how to get the contents of all the selected employee's and print the document's.
Thanks.

I don't understand whether you want to print several different documents in a row each with  an employee or one pdf document with several employees in it.
If you want to print one document with multiple employees inside, then you have to recode your PDF to be able to handle a table containing each employee data.
If you want to print multiple pdf documents each containing one employee info, then this is done in abap. [see BC480]
i.e.
DATA:
gt_customers TYPE TABLE OF scustom,
gs_customer LIKE LINE OF gt_customers,
gt_bookings TYPE ty_bookings, "table of sbook
gt_sums TYPE flprice_t,
gv_image_url TYPE string,
gv_fm_name TYPE rs38l_fnam,
* parameters for calling the generated function module
gs_docparams TYPE sfpdocparams,
gs_outputparams TYPE sfpoutputparams,
Event START-OF-SELECTION:
* Please note that the error handling implemented here is very
* rudimentary!
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Get name of the generated function module
TRY.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = pa_form
IMPORTING
e_funcname = gv_fm_name.
CATCH cx_root.
MESSAGE e004 WITH pa_form.
* No active form &1 available
ENDTRY.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Optional: Set output parameters
gs_outputparams-nodialog = space.
gs_outputparams-preview = 'X'.
gs_outputparams-dest = pa_prnt.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Open print job
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_outputparams
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE e020.
* Form processing could not be started
ENDIF.
LOOP AT gt_customers INTO gs_customer.
* Set form language and country (->form locale)
gs_docparams-langu = pa_lang.
gs_docparams-country = pa_cntry.
PERFORM find_bookings_for_customer.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Now call the generated function module
CALL FUNCTION gv_fm_name
EXPORTING
/1bcdwb/docparams = gs_docparams
is_customer = gs_customer
it_bookings = gt_bookings
it_sums = gt_sums
iv_image_url = gv_image_url
iv_sending_country = pa_cntry
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE e021.
ENDIF.
ENDLOOP.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'.
In the above pay attention to the loop.
Cheers,

Similar Messages

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • How to Print Html Document (more than one page)

    I've a problem with printing my html page. I can print one page of html file, But my document is longer than one page. and i can't print it.
    who know how to print . Please Reply

    A recent article in JavaPro has a nice solution for this problem. Check out
    http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    It describes a way of using Views to break down the pages.

  • Hello. My iPhone 4s when recieving message plays the tone more than once. How to stop that?

    It plays the tone more than once and it's not playing the tone fully. It plays like it is "stuck". Like CDs play when they are scratched. How can I stop that?

    Pause and off are the same thing.   This is how you stop the music.
    iPhone User Guide (For iOS 5.0 Software)

  • TS1292 How come it doesn't show the amount of money there is s gift card?  I tried putting in the code more than once, but all it says is that the card has already benn redeemed?

    How come it doesn't show how much money there is left in my iTunes gift card?  I have tried putting in the code more than once, but all my tablet says is that the card has already been redeemed.

    I haven't got access to the server right now (so I can't provide the complete details), but something like 6-700 GB (which is more than it shows in the client time machine windows, but less than what is true (which was around 1,5 TB))

  • Can you create a form in which its never possible for the same person te sign the form more than once.

    Hi, I've been looking into this for awhile and believe the answer is 'no' but was just wondering if anyone here would know of a solution.
    The company I work for has a formulier on which a number of Excel files are placed. This form is then sent to a five (often different) people who are then required to open the Excel files and if accord to place their digital signature. We would like to make sure that no one is able to sign the form more than once and also if possible to make sure they have opened the Excel files. It would be great if anyone had any tips...
    All the very best,
    Martin Angell

    I am not an Excel or Excel-to-PDF conversion expert, so I do not know how Excel forms are converted to PDF form fields. With this caveat here's what I do know.
    In Acrobat It is possible to create a PDF form in which there are JavaScripts associated with fields (any fields, including signature fields). These JavaSripts can do a lot of things, including checking the signer's certificates on the already signed signature fields. Then you can make all unsigned signature fields read-only, in which case the user will not be able to actually sign them. After that you can overlay a button field on top of each unsigned signature field with exactly the same dimensions and associate a JavaAcript with this button field. This JavaScript would put up an UI asking the user for the signing certificate and its password, check this certificate's CN against the list of already signed signature fields and initiate the signing of the unsigned signature field behind this button if your condition is satisfied.
    I never tried that myself but it could work. This looks complicated and it is but if you really want it you can try.

  • I'm unable to install the newest version of itunes on my pc, the promt says that there is a problem with the windows installer package, but I have downloaded the exe more than once. Is anyone able to help?

    I'm unable to install the newest version of itunes on my pc, the promt says that there is a problem with the windows installer package, but I have downloaded the exe more than once. Is anyone able to help?

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

  • Permissions Error if Script is run more than once with out closing Diadem

    I am in a REAL pickle here and need some HELP......
    I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
    Error is around this portion of script:
    '******* GetFilePaths() *** *** NEW Function ***
    Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
    ' Promt the User to select the ASCII files to load with a File Dialog
    FileListPath = AutoActPath & "FileDlgList.asc"
    Set fso = CreateObject("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList(0)
    Do ' Until (DlgState = "IDCancel")
    Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
    IF (DlgState = "IDCancel") THEN Exit Do
    ' Read in the saved list of file(s) selected in the File Dialog into FileList()
    **** This next line is where the ERROR happens *******
    Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
    CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
    f.Close ' close the file
    iMax = UBound(CurrFiles)
    IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles(iMax)
    END IF
    Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
    ' Append current file dialog selection(s) to any previous file dialog selection(s)
    IF iMax < 1 THEN iMax = 0
    ReDim Preserve FileList(k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList(k) = CurrFiles(i)
    NEXT ' i
    IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
    Loop ' Until (DlgState = "IDCancel")
    GetFilePaths = FileList
    End Function ' GetFilePaths()
    266 6:18:34 PM Error:
    Error in <NoName(1).VBS> (Line: 8, Column: 1):
    Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
    Permission denied
    I can send the script and file I am loading if that would help.
    Solved!
    Go to Solution.

    Jcheese,
    I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
    If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
    Carmen C.

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • How to use a picture more than once in the light table?

    when i drag a picture from my browser to the light table i get the number 1 in the thumbnail. the book suggests that we can drag more than once the same picture in the light table but i have not yet figured out how to do it? any ideas?

    Indeed it do, I have that book, and you and I have both proven, beyond any doubt, the authors are incorrect.
    I tried all weekend to build a light table display that would print on half of a piece of paper. I figured I'd just select all, duplicate or copy and paste and set up another display just like it. That way, I'd print one sheet, trim it in half and have two nice assemblies of the same images. Took me many hours of dicking around to arrive at my lame non-solution.
    Hope someone else gives us both better advice.
    bogiesan

  • Running the VI more than once, won't populate the array correctly!

    I have found something pretty weird while I was trying to do the following:
    I have an Array to wich I want to append a new set of data from two sources. To do
    this I found two different ways:
    1. I can take the array and append every element (from the sources of new data) to
    the array.
    2. Or, I can create a new array, and append it to the previous one.
    Every of those solutions is ilustrated in the enclosed VIs. But the second one
    doesn't work correctly. If we run it just once, it will display the correct data,
    but if we run it more than once, it will show the cells of the appended data
    empty!!!
    How come this happens? It seems I'm missing something very basic and i
    mportant.
    Thank you for your time and help.
    Regards,
    JAVIER
    Attachments:
    1_This_is_the_working_solution.vi ‏20 KB
    2_Why_does_this_doesnt_work.vi ‏24 KB

    Hi,
    actually you don't need to add elements continiously to each other or to the array.
    The basic solution is to form the appropriate array and insert it into your array.
    I have made the example.
    Good luck.
    Olrg Chutko.
    Attachments:
    Solution3.vi ‏20 KB

  • Does 4G drain the battery more than 3G with the iPhone 5?

    Hi im due an upgrade and im thinking about getting 4G, but does it drain the battery more than it does with 3G with the iPhone 5?

    the phone can handle it or else it wouldn't be supported. it can also handle LTE which is even faster than 4G in most cases

  • How to print Text for more than 255 characters.

    Actually I am writing dynamic sql in which some text is assigned to some variables
    and then contacating tohse variables to create one complete SQL. So the text into that variable is more than 25 chars, which i want to print to check wether the sql generated is correct. While doing do I am getting following error.
    ORA-20000: ORU-10028: line length overflow, limit of 255 chars per line
    ORA-06512: at "SYS.DBMS_OUTPUT", line 133
    As i understood that in one line of DBMS_OUTPUT.PUT_LINE can accomodate only 255 characters. What is the alternative to get the text printed.??
    Sample code -->>
    SET SERVEROUTPUT ON
    DECLARE
    T varchar2(1000);
    T1 varchar2(100);
    T2 varchar2(300);
    T3 varchar2(250);
    T4 varchar2(85);
    BEGIN
    -- Assigning values to T1,T2,T3,T4...
    T := T1 || T1 || T3 || T4;
    DBMS_OUTPUT.PUT_LINE(T);
    END;

    The other alternative is to upgrade your database to 10g...
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> declare
      2    v_str   VARCHAR2(2000);
      3  begin
      4    v_str := LPAD('X',250,'X');
      5    v_str := v_str||LPAD('Y',250,'Y');
      6    v_str := v_str||LPAD('Z',250,'Y');
      7    v_str := v_str||LPAD('A',250,'A');
      8    v_str := v_str||v_str;
      9    DBMS_OUTPUT.PUT_LINE(v_str);
    10  end;
    11  /
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY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YYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAA
    PL/SQL procedure successfully completed.
    SQL>I've only done 2000 characters here, but it'll happily cope with more.
    ;)

  • How to get the document which is associated with a process having specific Guid value?

    when a PDF file is opened, AcroRd32.exe is started automatically, and we get the GUID value of that adobe reader.
    In c#, can't we get the document associated with the GUID value,  I mean the total PDF file which is opened in adobe reader at runtime.
    Here I'm struck up in code, can anyone suggest how to where I was missing something.
    Acrobat.CAcroAVDoc AcroAvDoc;
    Type AcrobatCAcroType;
    AcrobatCAcroType = Type.GetTypeFromCLSID(new Guid("{CA8A9780-280D-11CF-A24D-444553540000}"));  This CLSID is of adobe reader's.
    ///////Here I think I'm missing something
    Object obj = Activator.CreateInstance(AcrobatCAcroType);
    AcroAvDoc = (Acrobat.CAcroAVDoc)obj;
    I think I can get the full PDF document with AcroAvDoc.GetPDDoc();
    Thank you...

    Post your question in the forum for Acrobat SDK.

Maybe you are looking for