Custom footer on each copy of invoice

Recently I used this webapge http://winrichman.blogspot.com/search/label/multiple%20copy to create 3 copies of an invoice from one xml file. But now I need each invoice to have a custom footer ex (Copy 1 - Customer), (Copy 2 - Remit), (Copy 3 - File)
Any help would greatly appreciated.
Edited by: defdames on Apr 8, 2010 7:20 AM
Edited by: defdames on Apr 8, 2010 7:33 AM

Well change of direction. Since I was not able to figure it out by grouping I went this route, which is close but seems to be off a tad. What I am doing is trying to increase a variable by one every time I create a copy of my invoice as in my syntax here
<?xdoxslt:set_variable($_XDOCTX,’DUPE’, 0)?>
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
<?xdoxslt:set_variable($_XDOCTX,’DUPE’, xdoxslt:get_variable($_XDOCTX, ‘DUPE’) + 1) ?>
<?for-each-group@section:/ TMP008/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE;G_INVOICE?>
Then in the footer I have this
<?choose:?>
<?when: xdoxslt:get_variable($_XDOCTX,’DUPE’)=”1”?>
<?call:Footer1?>
<?end when?>
<?when: xdoxslt:get_variable($_XDOCTX,’DUPE’)=”2”?>
<?call:Footer2?>
<?end when?>
<?otherwise:?>
<?call:Footer3?>
<?end otherwise?>
<?end choose?>
What is happening when I preview in PDF is I get Footer3 for the first copy and Footer1 for the next two. I guess what I am looking for is how to use get_variable in the or loop with initiating DUPE back to it's default value
Thanks in advance

Similar Messages

  • Text copy from customer master to Sales order and invoice

    Dear friends,
    when i maintain the text in the customer master ther needs to copy to sales order and from sales order to invoice.
    Can you please guide me how to do this config
    Thanks
    Raju.

    Dear Raju,
    First you need to do the Text determination for all areas(i.e Customer Sales and distribution,Sales order header,delivery header and billing header) through VOTXN transaction.
    -->Create the Customer text ID under Object KNVV
    Maintain the text for Text ID in the customer master >sales area data>Extras-> Text
    To copy the customer text to the sales order you need to keep KNVV table as Text object in the sales order text access sequence for the text ID.
    If you want to copy the sales order header text to the invoice header first you need to copy the sales order header text to the delivery header from delivery you can copy to invoice.
    When you want to copy the Text from Sales order to delivery the Access sequence will place a role
    If you want to copy the sales order text to the delivery document The Text Object should be VBBK in the delivery Header Text determination access sequence for that Text ID
    Again you can copy the text from delivery to Billing document through checking the Delivery Text field in the billing document detail screen (Top most bottom of the screen).
    Go to VOFA transaction select your billing document type then go in to the details here you can find the Delivery Text field you just check that check box.
    Now system will copy the sales order header text to the delivery header then it will copy to the invoice header.
    I hope this will help you,
    Regards,
    Murali.

  • Print Multiple copies of report, and resetting Page number for each copy.

    Dear frnds!
    i am using developer 6i reports i have a problem.
    i want to Print Multiple copies of report, and resetting Page number for each copy" that is 4 copies of an invoice is required
    1 - for user copy
    2- gate copy
    3- accounts office
    4- office copy
    any body please tell me the solution "i am using oracle 9i and developer 6i"
    Thanx
    Ibrar

    Hi,
    I was wondering if you were able to get your multiple copies working? Below is what I have so far, just trying to get it to work before changing the actual template.
    <?for-each-group@section:R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?variable@incontext:G1;R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    HEADER
    PSN: <?$G1/Pick_Slip_Number_Display_ID54?>
    PSN Detail: <?$G1/PickSlipNumber_ID260?>
    Page 1 of 3
    <?start:body?>
    BODY
    <?$G1/LineNumber_ID6?>
    <?end body?>
    FOOTER
    <?end for-each?>
    <?end for-each-group?>
    XML:
    <R5542520>
    <Pick_Slips_Detail_Lines_S24>
    <Header_Custom_Section_S24>
    <Pick_Slip_Number_Display_ID54>123456</Pick_Slip_Number_Display_ID54>
    <PickSlipNumber_ID260>123456</PickSlipNumber_ID260>

  • Copy AR invoice to Credit Memo

    In B1 2005A SP01 PL 36, you cannot create a Credit memo from a closed invoice. This is extremely restrictive as the majority of product returns occur after the invoice has been paid. Is there an update to 2005A that provides this capability or does 2007 offer it? If not, this really should be considered since the Credit memo is used to return money to the customer. Not having to reenter the information would be a time saver and a potential reduction of entry errors. In our instance, all of our products are under Batch management and the credit memo has to put the stock back into the correct batch. This should automatically done from copying the original AR.

    Hi Art,
    Here are the postings as performed in my UK localisation testdatabase:
    AR invoice:
    BP account Debit 117.50
    VAT @ 17.5% Credit 17.50
    Revenue Credit 100.00
    Credit Card Payment:
    Credit Card account Debit 117.50
    BP Account Credit 117.50
    Cancellation of Credit Card Payment:
    Credit Card account Debit -117.50
    BP Account Credit -117.50
    The payment is reconciled with the original invoice & the cancellation.
    The invoice is reconciled with the payment & the cancellation, yet in status 'open' because the payment has been cancelled & the balance due is back on the account.
    The invoice will appear in the open items list as unpaid & is available as base document for a credit memo. You can then use the 'copy from' or 'copy to' functionality to creste the credit memo based on the invoice.
    The invoice will then be reconciled with:
    a) the payment
    b) the cancellation of the payment
    c) the credit memo
    If you use the invoice as base document for only a partial credit memo, then you will need to either create another payment to clear the balance due or another credit memo.
    As I outlined above, the reason for 'locking' a fully reconciled invoice is because this particular transaction is completed. This is of importance, especially if there is stock with serial/batch numbers involved. Depending on the industry, it is of vital importance to keep track of batches & being able to duplicate a batch/serial number when the original transaction is completed, would lead to inconsistencies. Also,
    if there has been no stock transaction prior to the invoice, this is done on the same journal entry. So if, say 100 items of your stock left the warehouse at a MAP of 1 each at the invoice stage, the value of your warehouse is reduced by 100. If you base the credit memo on the invoice, this stock is always received back with a value of 100. If the MAP changes, say to 1.5 & you the create an independent credit memo, then the items are received back with the new MAP of 1.5 since there is no link to the original, outgoing, document.
    Therefore, the process should be:
    1. AR invoice (Status: open)
    2. Payment (AR invoice status: closed)
    3. Cancel Payment (AR invoice status: open)
    4. Credit memo (full- AR invoice status: closed, partial-AR invoice status: open)
    5. Payment/credit memo if balance due (AR invoice status: closed)
    All the best,
    Kerstin

  • Copy AP Invoice to AP credit memo got a discount per line automatically

    Dear All,
    Our customer is in SAP8.8 SQL2008 CA localization. When they copy AP Invoice to AP credit memo (service type), the 1st line always has a discount (no matter which GL I choose). No matter which user I user no matter which posting date I choose, the discount of the first line comes automatically. How can I remove this? Thanks in advance.
    Regards,
    Yuka

    Hi Gordon,
    Wish you all the best and Happy Chinese New Year!
    I tried to reproduce the issue like below.
    Duplicate the AP invoice. Change the posting date to 2010/10/29. Then I found the total of the first line (has 1.03 discount), the amount changed (From $ 21,497.67 to $ 21,498.64). Then I change it back. Save the invoice.
    Copy the AP invoice to AP Credit memo. Change the posting date to 2010/10/29. The total of the first line changed again.
    Is this sounds like a SAP bug? Or it is some settings wrong?
    Thanks in advance
    Regards,
    Yuka
    Edited by: Jie Jin on Feb 4, 2011 1:04 AM

  • Set the custom timer job that copy the data in the same list

    Hi
    How to set the custom timer job that copy the data in the same list
    Thanks,

    hello
    please it is wrong to copy all of the list3 item in list1 as the example as below is a copy of one item.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.SharePoint;
    //This namespace is used for the SPJobDefinition class
    using Microsoft.SharePoint.Administration;
    namespace GENERAL_CustomTimerJob
    //To create a custom timer job, first add a class to your SharePoint project and
    //inherit from SPJobDefinition. Implement the constructors and override the Execute
    //method as shown below. To install your timer job, and set the schedule, you must
    //add a Feature and a Feature receiver.
    class GENERAL_CustomTimerJob :
    SPJobDefinition
    #region Constructors
    //You must implement all three constructors
    public GENERAL_CustomTimerJob()
    base()
    public GENERAL_CustomTimerJob(string jobName,
    SPService service,
    SPServer server, SPJobLockType targetType)
    base(jobName, service, server, targetType)
    public GENERAL_CustomTimerJob(string jobName,
    SPWebApplication webApplication)
    base(jobName, webApplication,
    null, SPJobLockType.ContentDatabase)
    //Set the title of the job, which will be shown in the Central Admin UI
    this.Title = "Simple Example Timer Job";
    #endregion
    //Override the Execute method to run code.
    public override
    void Execute(Guid targetInstanceId)
    //Get the Web Application in which this Timer Job runs
    SPWebApplication webApp =
    this.Parent as
    SPWebApplication;
    //Get the site collection
    SPSiteCollection timerSiteCollection = webApp.ContentDatabases[targetInstanceId].Sites;
    //Get the Announcements list in the RootWeb of each SPSite
    SPList timerJobList =
    null;
    foreach (SPSite site
    in timerSiteCollection)
                    timerJobList = site.RootWeb.Lists.TryGetList("List3");
    if (timerJobList != null)
    string sourceUrl = "http://aydi-pc";
    string destinationUrl =
    "http://aydi-pc/sites/Site1/";
    string sourceList = "List3";
    string destinationList =
    "List1";
    using (SPSite sourceSite =
    new SPSite(sourceUrl))
    using (SPWeb sourceWeb = sourceSite.OpenWeb())
    using (SPSite destSite =
    new SPSite(destinationUrl))
                                    using
    (SPWeb destWeb = destSite.OpenWeb())
    SPList ObjSourcelist = sourceWeb.Lists.TryGetList(sourceList);
    SPList ObjDestinationlist = destWeb.Lists.TryGetList(destinationList);
    SPListItem newItem = ObjDestinationlist.Items.Add();
    SPListItemCollection items = ObjSourcelist.Items;
                                        if
    (items.Count > 0)
    foreach (SPListItem item
    in items)
    newItem["Title"] = item["Title"];
    newItem["Nom"] = item["Nom"];
    newItem["Prenom"] = item["Prenom"];
    newItem.Update();

  • Combine PDF's and put filename in footer of each page

    Hello,
    I've got about a 1000 individual pages to print,
    so I figured in order to avoid having to click each page open and print it,
    I can combine the documents into one document,
    and only launch the print command once,
    and then have a coffee until its is finished
    But I'd like Acrobat to actually put the filename of each document in the footer of the corresponding page when I combine the documents; so I know afterwards which page is from which document. Is there a simple (easy) way to do this;
    or will I have to enter the footer into each page separately?
    Thanks,
    Jan

    Then go to Advanced - Document Processing - Batch Processing and then create
    a new batch process and select the command you want to use (probably add
    header/footer or something similar) and the input folder and save options.
    That's it, basically.

  • Fbl5n: The printer provides me only one customer items for each page...

    Hi all,
    launching t.code FBL5N, and printing the repost list, the printer provides me only one customer items for each page...
    I'd like obtaining more customer items for each page...
    What to do?
    Thanks

    Hi Umberto..
    Thats how the standard report works..
    To meet your requirement, you would probably need to look at another standard report.
    In case you need further clarification, please feel free to write to me..
    Good Luck!
    Lucid-Mind...

  • Have a gap in detail of first page and not display group footer on each pag

    Please help me about Memo field in SubReport in CrystalReportXI. I have a SubReport that need to display pageheader, detail, page footer, and  in detail of subreport contains memo field and set the property of this text box to "Can Grow" = Yes .However, CrystalReportX does not support to display  pageheader, pagefooter in SubReport. So. I have created a formular FakePageHeader that has code  as
    "WhileReadingRecords;
    true"
    and group in this field and checked option repeat group header on each page and right click Section Expert->check print at Bottom of page for Group Footer.
    This problem is when I preview Subreport. It display text in group header and a gap in detail of first page and view next page, the subreport display right data of memo field. But the report still not display group footer on each page.
    How do I can remove a gap in first page and display group footer on each page?
    Thanks

    in subreport in format for the memo field uncheck keep object together.
    You can not force group footers to repeat on each page.
    I have not tried this but you might be able to capture the data you want to show in SR page footer and display in main report page footer, using shared variables.
    Ian

  • Repeat group footer on each page

    Hi all,
    I have a regular report with 1 Group. My problem is that my report doesn't repeat group footer on each page. I know that in Grouping options there is an option for "Repeat Group Header on each page" checkbox which makes the Group Header print on each page. I've found that Header and Footer both work together and that if you print Header it will print footer as well. The thing is I have paging functionality (<a href='http://www.crystalreportstrainingbootcamp.com/resources/trainers_talk_detail.asp?Title=03'>click here for paging details</a>) in my report in the Group, so once it reaches 14 lines in Details it goes to the next page, prints the GROUP HEADER but not the GROUP FOOTER on each report page.
    Does anybody know why?
    I found the following topic: <a href='http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=90BF3D79A308CCF6B58F1E2656225CDD?cmd=displayKC&docType=kc&externalId=c2004981&sliceId=&dialogID=360384&stateId=1%200%20356275'>Creating a fake group header for orphaned group footers</a> but it's for CR 7. Was it resolved in newer releases of CR or it still needs a work around? I'm not even sure if that will fix my problem...
    Thank you,
    Tatyana

    Hello,
    please give us the verison of your Crystal Reports product that we can investigate
    Regards,
    Falk

  • How to create a custom measure for each level of a dimension

    Hi all!
    Can Anyone please explain me with an example, how to create a custom measure for each level for a dimension? I dont mine if you use
    one or more measures.
    thanks in advance
    hope someone helps me.

    For example:I create a dimension for product_dim witch has 4 levels:total, class, family and item:
    d_aben18
    n1_aben18
    n2_aben18
    n3_aben18
    n4_aben18
    herarchy:h_aben18
    cube:cubo_aben18
    measure:med_aben18
    I create this code to fetch the data to the dimension:
    TRAP ON CLEANUP
    SQL DECLARE c1 CURSOR FOR SELECT-
    total_product_id,1,'N1_ABEN18',total_product_dsc,-
    class_id,1,'N2_ABEN18',total_product_id,class_dsc,-
    family_id,1,'N3_ABEN18', class_id, family_dsc,-
    item_id,1,'N4_ABEN18',family_id,item_dsc-
    FROM PRODUCT_DIM
    "OPEN THE CURSOR
    SQL OPEN c1
    "FETCH THE DATA
    SQL FETCH c1 LOOP INTO-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N1_aben18_LEVELDEF,:D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N2_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N3_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N4_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    "SAVE THE CHANGES
    UPDATE
    COMMIT
    CLEANUP:
    SQL CLOSE c1
    SHOW 'KK2'
    Then I create a cube with use compression off, and in rules sum for example.
    After, I create a measure and I select Override the aggregation specification for the cube, in rules I put nonadditive and I would like to create aprogram to assign distinct values to each level of the dimension. For example, I put 1, 2 3, and 4 values, but at the end I would like to put count(distinct(values)).
    for that I create another program:
    VRB D_RETURN DECIMAL
    if D_ABEN18_N1_ABEN18_LEVELDEF eq 'N1_ABEN18'
    then D_RETURN = 1
    if D_ABEN18_N2_ABEN18_LEVELDEF eq 'N2_ABEN18'
    then D_RETURN = 2
    if D_ABEN18_N3_ABEN18_LEVELDEF eq 'N3_ABEN18'
    then D_RETURN = 3
    if D_ABEN18_N4_ABEN18_LEVELDEF eq 'N4_ABEN18'
    then D_RETURN = 4
    else d_return=26
    return d_return
    "SHOW D_RETURN
    cubo_aben18_med_aben18_stored=d_return
    but it doesnt work.I dont know how to put to assign or to see what I want.
    I report the measure, or I report the program, but then how can I see the values of the measure?
    thanks in advance

  • I want to set up a custom footer for my office documents.  I have the home/student version of Office 2010 for Mac. Will I be better off purchasing Office for business or just stick with apple products.

    Hi,
    Can someone help me to set up a custom footer on my iMac.  Currently using home/student 2010 and it does not offer a custom option.  Will I need to purchase Microsoft business or would I be wasting my money.  I went to the apple store for guidance and they informed me they could not help me with the microsoft products.  To my surprise although apple has a version of microsoft, it is not a full version.  I did not purchase the apple word, excel, powerpoint and such to avoid problems sending letters and such to pc users.  Does anyone have advice or experience enough to let me know what issues may arise out of either choice. 

    Microsoft Office 2010 is out of date. You need to buy Office 2011.
    You can get more advice here:
    http://www.msofficeforums.com/

  • How to generate PDF copy of invoice list

    Hi All,
    I need a favor from you in helping to generate a PDF copy to invoice list .
    I observed that  spool is not generated for this print output of invoice list but output successfully triggered.
    we have z report (zretrieval ) to generated the PDF  but it's not allowed to generate PDF.
    I tried alternative method by saving the print preview but I can able to save only that particular page.
    our business looking for all invoice list pages in single pdf  so please guide me to proceed further.
    Regards
    Srinivasa Reddy

    I presume your issue is output triggered but PDF file is not generating if the invoice list goes for multiple pages.  If this is correct, then you need to talk to your ABAPer as they only, have to check the  smartform being used for invoice list.
    G. Lakshmipathi

  • The pricing procedure in Sales order is not getting copied into invoice

    The pricing procedure in Sales order is not getting copied into invoice.
    I have created a document type (pricing procedure),based on the document type ,pricing procedure determination is done.
    So while creating sales order the pricing procedure is determined but when invoice is created the pricing doesnt refelect in the invoice.How to over come this problem

    Hi
    Please check the in OVKK, weather you have maintained correctly or not.Also check in the Billing document type details what is the Document pricing procedure that has been maintained.
    Regards
    Srinath

  • How do i put three items into the footer of each page aligned differently

    Hi,
    I am trying to have the footer of each page in my document with 3 items : -
    1 logo aligned left
    1 text (date and page number) aligned centre
    1 logo aligned right.
    If I add the logos as background they only seem to appear on the first page.
    Thanks,
    James

    James,
    It may not be clear in the small screen shot, but I used Tabs for alignment. Here is a close-up of the Ruler:
    You can get even more control if you place the text in a Text Box and place the text box into the Footer, between the graphics.
    Regards,
    Jerry

Maybe you are looking for

  • How to Collect IDOCS before sending to 3rd party

    Hi All, I am sending out PO's using ORDERS idoc from SAP to 3rd party. In my scenario I need to group the similar IDOC data into a single file before sending it out to the 3rd party using XI. So in Partner profile I have choosen 'Collect IDOC' option

  • Employees' photo cann't be showed in portal MSS. Can anybody help me?

    Our portal system met one urgent problem in MSS for providing employee's photo from ECC6.0 system to portal. It is like that: some of our portal mss accounts, who are department managers, can not see their employees' photos in the portal page through

  • Who wants some cash? not dukes, cash

    Hi, I'm having a problem with a piece of my code, it's not overly complex but it is non the less stumping me. The problem is with printing. If anyone is interested in earning some cash to sort this out for me I'll be happy to talk. This is my persona

  • Time Machine doesn't make backups

    Hi, I have problems with Time Machine. I deleted by error the backup file in Time Capsule, but now Time Machine doesn't create a new one, simply it doesn't work. External disks are recognized (Time Capsule or USB disk) but it doesn't make backups, on

  • Can main page be regular web page

    I want to create a normal blog with iWeb, but I cannot figure out how to get each entry to go to the top of the main page, and have all the others still there, sitting below it. I don't want there to be just a photo and paragraph for each entry, I wa