Replicate data on subsequent page with Fixed Number of Fields in the Layout

Here is a tricky one. I have a Report that is generating a sort of Master Detail Report. This report prints on a Pre-printed form.
1. 1/3 of the Page is dedicated to logos and Company information.
2. Second 1/3 part of the page is dedicated to the Customer information (Name, Address, Phone/Fax details)
3. Final 1/3 part of the page is the detail which can accommodate up to 4 rows. In this section, there are individual fields for the 4 Lines. The goal is to show up to 4 records in the Detail and if there are more records being fetched in the cursor (More than 4), then I need to print the Header section again since its the same Customer and the Detailed records start from Record Number 9 and then 17 and so on.
I am populating the Header and the Detail records in a Formula Column and not in the Main Query. The Main Query is pretty simple, it just gets all Customers based on a Zip Code. This is why, there is only one Repeating Group and all the items (Master record) and the Detailed Records (Which are basically individual fields placed one below the other) are part of the same Repeating Group. They are being populated in a Formula Column and not a Query.
Having said this, is this a very cumbersome way to take this approach? The Report already exists in this state and I need to make some modifications and this feature I am talking about would be a big leap.
Thanks
Edited by: Roxyrollers on Aug 2, 2012 3:18 PM
Edited by: Roxyrollers on Aug 2, 2012 3:41 PM

I have changed the Report and it has become simpler and more manageable. What I now have are two separate Queries. The Main Query gets all the Customer Information based on Zip Codes and lists all the Personal Information in the middle section (The top section is left blank for the Pre-Printed form). There is now another Query which is linked to the Main Query based on Customer ID. The second Query is retrieving Multiple Records.
Q_1 = Main Query getting Customer's Personal Information
Q_2 = Detail Query getting all the Invoices for the Customer with different dates
Now, is there a way to say that if Number of Records > 5 (Invoice Detail Repeating Group), print the details on the following Page? However when I am doing this, I also want the entire Header section to be replicated on the following Page.
Example: Customer ID 1001 (David Taylor) has 10 Invoices that need to be displayed. My output should be like below
Page1
Name:    Mr David Taylor                  Customer ID: 1001
Address: 2200 Picket Fences
         Santa Ana, CA 92704              Phone#: (949)555-5555
Date           Product            Quantity              Price
==============================================================
05/17/2012     Product 1          2                      99.99
05/22/2012     Product 2          1                      99.99
06/01/2012     Product 3          3                      99.99
07/17/2012     Product 4          40                     99.99
==============================================================
Page2
Name:    Mr David Taylor                  Customer ID: 1001
Address: 2200 Picket Fences
         Santa Ana, CA 92704              Phone#: (949)555-5555
Date           Product            Quantity              Price
==============================================================
07/18/2012     Product 5          25                     99.99
07/22/2012     Product 6          3                      99.99
07/23/2012     Product 7          1                      99.99
07/24/2012     Product 8          1                      99.99
==============================================================
Page3
Name:    Mr David Taylor                  Customer ID: 1001
Address: 2200 Picket Fences
         Santa Ana, CA 92704              Phone#: (949)555-5555
Date           Product            Quantity              Price
==============================================================
07/26/2012     Product 9          25                     99.99
07/29/2012     Product 10         3                      99.99
==============================================================Any help is appreciated. I am going to look into creating a Summary Column in Q_2 and going from there. Thanks!

Similar Messages

  • Displaying page total on a page with fixed number of lines

    Hi ,
    My requirement is to have a fixed number of rows per page (say 20) and to have a page total beneath the table containing the data.I am using a RTF template.The columns in the table are
    Order
    Amount
    Page Total : 3000
    For including a page-break after 20 lines, i have added the following code.
    For - each ______________
    <?if:position() mod 20 =0?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
    end - for_______________
    This limits the no of rows per page to 20.
    I have tried 2 ways to display the page total but both don't seem to work Can someone please point what i am missing here?
    1) Using add and show-page-total
    I added the code (<?add-page-total:at;'Amount'?> to the Amount data column in the template and then used the <?show-page-total:at?> in the page total data column to display the total. But this doesnt work.It doesnt display any value.
    2) Using Variables:
    I declared a variable (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', 0)?>) before the table. Then, i used the (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', xdoxslt:get_variable($_XDOCTX,'RTotalVar') +Amount)?>) in the Amount data column to calculate the sum. I then used <?if:position() mod 20 =0?> <?xdoxslt:get_variable($_XDOCTX, 'RTotalVar')?><?end if?> in the data column of the page total. But this doesnt work.  The variable loses its value when it is displayed outside the table. Why is it so? How can i declare a global variable? I am not sure why the variable loses it value when taken out of the table. I would want it hold the value through out the document. Is my understanding correct?
    Kindly help me with this issue.
    Thanks,
    Vidhya

    Hi
    I have the same issue. could anyone provide the link or template. I searched in the forums but couldnt find related to this post.
    please help
    Thanks

  • SharePoint Bug? Conflict Error when saving a Page with a "Required" DateTime field in the page layout

    Hello,
    I've just recently encountered a weird error / bug in SharePoint. Here is the scenario:
    - I have a custom column "Test Date" that is of DateTime field type. The field is configured as REQUIRED.
    - It is added to a custom Content Type "Test CT" that is based on a "Publishing Page" content type
    - I have created a Page Layout "Test PL" which is based on that particular content type.
    Now here is what happens:
    1. I try to create a page based on both that Content Type and Page Layout in the Pages Library. I manage to create it successfully.
    2. However, when I go to try and edit the page, fill-in the required values and try to save it using the PAGE TAB -> SAVE BUTTON, I get the below error/s. Note that this happens no matter what I choose in the drop-down menu for Save Button.
    "The file XXX has been modified by USER on DATE"
    But I know I am the ONLY user modifying the page. 
    If I try to save again it gives me options to whether Discard my Changes, Keep Editing, Overwrite Changes, or Merge.
    3. HOWEVER, if I use the Save button on the UPPER RIGHT corner of the screen (the shortcut). I am able to save successfully without any errors!
    The only thing I've tried that made it work was if I made the DateTime OPTIONAL. But I need it to be REQUIRED.
    Is there any workaround to this error / bug?
    Thanks

    I have some additional info but nothing really good. 
    If you click the Save in the left side of the Ribbon then it looks like that is when you get the message. If you click the Save in the top right corner you won't get the message. They must be calling different saving functions. 
    There really is no way around it other than making the field optional which probably removes some server side validation checks causing that message.
    We've chosen to remove that field from the page as I needed it required, then they can't publish the page until they go to the properties and set the article date. By removing the field from the page layout the message goes away.
    I hope MS will fix this at some point.
    -tom daly

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • When I tgry to drop a video from the main screen to a time line with no secuence i receive an error with no number, just tell me the progran stop working and the program closes can you help me please

    please someone who help me please
    when I tgry to drop a video from the main screen to a time line with no secuence i receive an error with no number, just tell me the progran stop working and the program closes

    You need to help us first ...
    Computer specs:
    OS, CPU, RAM, GPU, vRAM ... and also disc layout & connections can be useful (as in, "2 internal hard-drives and an external on Thunderbolt connection for exports")
    Program specs:
    Specific build of Premier Pro from the bottom of the "About" splash screen off the "Help" menu is best.
    Footage file type: MXF, AVCHD, MOV, m2s, what?
    Even the camera it was shot on can be of interest at times.
    And did you use media browser to import, then project panel to drag & drop?
    Neil

  • I'm an artist with a number of CDs in the itunes store and most of the customer reviews are missing or hidden.  Anyone have a solution?

    I'm an artist with a number of CDs in the itunes store and most of the customer reviews and ratings are missing or hidden.  I know there have been reviews posted but I can't see them on my computer in the itunes store.  Anyone have a solution?

    You aren't being left in any lurch. Your hardware is obsolete, and the software world has moved on. If you have a qualm about the matter then discuss it with the software's developers. Apple is not responsible for software they do not develop. This is technology, and you will just need to get used to it.

  • Need to generate PDF file from OAF with "n" number of fields

    Hi All,
    I have a requirement in OAF to generate PDF file with n number of fields in PDF output. PDF output could have some times 2 fields or 3 fields or 7 fields too in some condition and it will be based on one parameter. This output will be looks like below given scenarios:
    Example Scenario I
    Emp No | Emp Name | Dept No | Job |
    11 | Abc | 10 | MGR |
    Example Scenario II
    Emp No | Emp Name |
    11 | Abc |
    Please let me know if any one know how to go about it.
    Thanks in advance,
    Arvin
    Edited by: user636850 on Jan 26, 2011 6:11 AM

    Hi All,
    I have a requirement in OAF to generate PDF file with n number of fields in PDF output. PDF output could have some times 2 fields or 3 fields or 7 fields too in some condition and it will be based on one parameter. This output will be looks like below given scenarios:
    Example Scenario I
    Emp No | Emp Name | Dept No | Job |
    11 | Abc | 10 | MGR |
    Example Scenario II
    Emp No | Emp Name |
    11 | Abc |
    Please let me know if any one know how to go about it.
    Thanks in advance,
    Arvin
    Edited by: user636850 on Jan 26, 2011 6:11 AM

  • I have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    i have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    Hi guillermospain,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    OS X: Connecting a Wi-Fi printer to your Wi-Fi network
    http://support.apple.com/kb/ht3500
    OS X Mountain Lion: Set up a printer
    http://support.apple.com/kb/PH11145
    OS X Mountain Lion: Reset the printing system
    http://support.apple.com/kb/PH11143
    Cheers,
    - Judy

  • How to control the number of fields in the Advanced mode in af:query

    Hi,
    How to control the number of fields in the Advanced mode in <af:query>?
    Say i have 20 fields in my table and i created a view criteria with 2 fields. It would work perfectly in Basic mode. But in the Advanced mode all other fields selection is possible on clicking the ADD Fields button. I did not want the client to make a search with all 20 fields. Only 10 fields are to be listed in the Advanced Mode even though there are 20 fields in my table.
    How do i control the list of fields in ADDFields button?
    Any ideas?
    KR

    You can uncheck the Querable property of the attributes which you need not show up in the Advanced Mode (but they will not show up in other modes too !) or programatically set the same as mentioned here -
    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.htmlAlso you can hide the AddFields button as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

  • Different Header for First and Subsequent Pages with Summary on last page

    The data in report can vary from 1 to more than 50 rows (order lines). The header on first page is detailed and the header on subsequent pages has only some fields (whenever data is large). There is a summary section which has to be on the last page of the report only and that too at the bottom (just above the fixed footer in the report).
    So, for a single page report the the detailed header, all lines, summary at the bottom and then the footer has to be printed.
    For a two page report - first page will have detailed header, some lines, fixed footer and second page will have short header, remaining lines, summary at the bottom and then the footer.
    For a three page report the summary has to be on third page only and so on.

    In a word processing document, select your object, place it where you want & then go to Format > Advanced > Move Object to Section Master. To place a different repeating object, you will need to insert a section break.
    With page layout documents, each page is a separate section, so there is no section master. Objects placed on one page don't repeat.

  • [JS] Export jpg from each page with specified number from database

    Hello,
    I imported a database into InDesign (CS 5 with OS X 10.7.2), so that every product and product number is on a different page in InDesign. Now I need to export each page to a jpg-file. The name of the jpg should be "productnumber.jpg".
    I found the script „PDFExportCropper.jsxbin“, which does what I want but creates pdf-files instead of jpgs.Thereafter, I can convert the pdfs to jpgs automatically with Photoshop.
    But: The script takes hours and hours to create the pdf-files: Right now, more than 8 hours for only 100 pdf-files. The database has 65.000 products!
    Any idea to improve the workflow? Any other script available which I did not find but does what I need?
    As a designer, I have no experiences at all in scripting.
    Thanks for answering!
    Best regards
    Rainer
    from Germany

    I think I fixed it.
    In line 20, I have now the following code:
    var page = myImage[i].parentPage.name;
    Is this the right way, to get the actual page?
    Also I would like to know, how can I export the images cropped to their "box"? How do I have to change my script?
    Thanks

  • Form with variable number of fields?

    I need to write a data entry form in JSF. It's the standard kind of things, a series of labels and textFields and checkboxes and so on.
    The number of items is not known in advance. It is data-dependent. There might be 1 label-value pair sometimes and 10 label-value pairs another time, depending on the data.
    To do this in JSF would I have to write a custom component? Using JSP and JSTL tags I would write a <c:forEach> loop, but it seems like that's not the right thing to do in JSF. Does anybody have experience with this, or an example that could get me started? Thanks.

    I think the table would handle the layout and repetition of rows. But if some of the input fields are text input and some are checkboxes or another type, how would I get the right type of input on each row? Do you have an example where the backing bean dynamically builds components, that I could look at? Thanks.

  • BDC for Uploading data from XL sheet with unknown order of fields

    Hi SAP Gurus,
    My requirement is as follows,
    A BDC is to be developed for uploading data from an XL sheet, but the problem here is , the order of fileds in the sheet can be changed .
    ie,  for example the fields in the XL sheet are :-
      matnr    maktx   menge  amount
    but the user can give as
      matnr  amount  menge  maktx
      or
    maktx   matnr  amount  menge
    how i can solve this problem.
    Thanks and Regards,
    pavan.

    Hi Pavan,
    You need to handle it by your self, you can create a dynamic table based on the file value.
    The field name pass from file with the record as a header, and based on the header name create your dynamic table.
    afterward you can pass your value to BDC.
    for creating dynamic table you can use this method
    call method cl_alv_table_create=>create_dynamic_table
      exporting
       i_style_table             =
        it_fieldcatalog           = it_field[]
       i_length_in_byte          =
      importing
        ep_table                  = dyn_tab
       e_style_fname             =
      exceptions
        generate_subpool_dir_full = 1
        others                    = 2
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
                 with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    -Dhirendra

  • Why does Excel save with a number added and to the desktop

    I have just updated to Maverick and I love it. However, when I amend a spreadsheet in Excel 2008 and save the file it adds a number to the file name and saves it to the desktop instead ofits original location. I find this extremely irritating. Can someone help?

    MartinR
    I am doing Save exactly as I used to do with Mountain Lion. I have been experimenting and have found a strange effect which is entirely down to Maverick. If I open the Excel file from the Dock and amend it will save it to the Desktop with a number added to the file name. However, If I open the file from its original location and amensd the file it will save it to its original location without changing the file name. I then dragged the original of the file on to the desktop, amended it and closed it and it saved it to the desktop without altering the file name. This is somthing that Apple needs to look into and not Microsoft.
    This means that I will have to drag all Excel files that I regularly use on to the desktop and not into the Dock. I have one large and complex Excel file with 60 sheets and regularly save as I work on it. Puting it into the Dock would create a nightmare.
    Thanks for your help.

  • Number of fields in the table

    Hi experts,
    How do you obtain the number of fields of a particular table ?
    I want the count of the fields of a table.
    Thanks in advance,
    Chithra.

    Check the code below:
    DATA: d_ref TYPE REF TO data,
    i_alv_cat TYPE TABLE OF lvc_s_fcat,
    ls_alv_cat LIKE LINE OF i_alv_cat,
    fname TYPE fieldname,
    ncomp(9) TYPE n,
    rcount(9) TYPE n,
    fcount(3) TYPE n.
    TYPES: BEGIN OF itab1,
    message(50) TYPE c,
    END OF itab1.
    DATA: g_itab1 TYPE STANDARD TABLE OF itab1.
    DATA: wa_itab1 TYPE itab1.
    ncomp = 1.
    rcount = 0.
    TYPES: tabname LIKE dcobjdef-name,
    fieldname LIKE dcobjdef-name.
    PARAMETER: p_tablen TYPE tabname. "Input table field
    DATA: BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE dntab.
    DATA: END OF itab.
    FIELD-SYMBOLS : <f_fs> TYPE table,
    <f_fs2> TYPE ANY,
    <f_fs3> TYPE ANY,
    <f_fs4> TYPE ANY.
    REFRESH itab.
    CALL FUNCTION 'NAMETAB_GET' "Fetches the fields
    EXPORTING
    langu = sy-langu
    tabname = p_tablen
    TABLES
    nametab = itab
    EXCEPTIONS
    no_texts_found = 1.
    LOOP AT itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    ls_alv_cat-seltext = itab-fieldtext.
    ls_alv_cat-reptext = itab-fieldtext.
    APPEND ls_alv_cat TO i_alv_cat.
    fcount = fcount + 1.
    ENDLOOP.
    WRITE:/ fcount.
    WRITE: ' number of column'.
    internal table build
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = i_alv_cat
    IMPORTING
    ep_table = d_ref.
    ASSIGN d_ref->* TO <f_fs>. " Dynamic table creation with fields of the
    *table
    DATA: l_field TYPE fieldname,
    l_field1 TYPE fieldname.
    SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <f_fs>.
    "Fetching of the data from the table
    rcount = 0.
    LOOP AT <f_fs> ASSIGNING <f_fs2>.
    rcount = rcount + 1.
    DO fcount TIMES.
    "Here u can check the validations and process
    ASSIGN COMPONENT ncomp OF STRUCTURE <f_fs2> TO <f_fs4>.
    IF NOT <f_fs4> IS INITIAL.
    MOVE <f_fs4> TO l_field1.
    ncomp = ncomp + 1.
    ELSE.
    CONCATENATE 'IN ROW' rcount 'COLUMN' ncomp 'IS BLANK' INTO wa_itab1.
    APPEND wa_itab1 TO g_itab1.
    ncomp = ncomp + 1.
    ENDIF.
    ENDDO.
    CLEAR:ncomp.
    ENDLOOP.
    LOOP AT g_itab1 INTO wa_itab1.
    WRITE:/ wa_itab1 'is blank'.
    ENDLOOP.
    regards
    Kannaiah

Maybe you are looking for

  • Can U transfer purchasers from one account to another?

    I have an old account at the Apple Store that I had not used in a few years and had forgot about. I now have a new account and would like to transfer the purchasers from my old account to the new one. Is there a way to do that?

  • After installing Photoshop Elements 12  Organizer starts OK but Editor starts then immediately terminates with no error messages. Suggestions appreciated.

    After new install of Adobe Photoshop Elements 12 editor will start but just terminates/disappears with no error message. The organizer starts and runs OK   Win7/64 with latest maintenance  i73770, Nvida GTX 670 16 GB memory. Install log shows no erro

  • How do I change the tab background color in Firefox 4?

    I just upgraded to Firefox 4. Tabs are now fine black font on dark grey background -- very hard to read. How do I change the tab background color? I have searched and the closest I can come is some instructions for modifying .css files, and it is not

  • HT1918 Change Country for Apple ID

    I need to change my country for my Apple ID, but I have a balance of .47 cents.  It tells me I have to clear the balance before I can change the country, but I can't find a way to do this.  Can't buy much for .47c!  Can anyone tell me how to clear th

  • Diffie-hellman

    hello, I encrypted my data with symetric method (DES) and I would like to protect my key transfer by Diffie-hellman method. Diffie-hellman use this calcul: g^x * mod(p) on my card i have this code : public void genereCleDH(){            clePrive = ne