Invoices duplicated

Hi;
The code below is a copy of the one that works ok, this code makes duplicates of an invoice.
This code is added here: VOFM...data transfer -> billing document, here i´ve created a new record where i added the code below.
Any help to avoid duplicated invoices.
What the SD consultor whants is that the records with amount = zero don´t be passed to the invoice, so it won´t be displayed.
Any Help.
Thanks on advance.
FORM DATEN_KOPIEREN_600.
*{   INSERT         DESK903967                                        1
Header data
VBRK-xxxxx = ............
Item data
VBRP-xxxxx = ............
Additional split criteria
   DATA: BEGIN OF ZUK,
           MODUL(3) VALUE '001',
           VTWEG LIKE VBAK-VTWEG,
           SPART LIKE VBAK-SPART,
           ABTNR LIKE LIPS-ABTNR,
           EMPST LIKE LIPS-EMPST,
         END OF ZUK.
if lips-lfimg > 0.
   ZUK-SPART = VBAK-SPART.
   ZUK-VTWEG = VBAK-VTWEG.
   ZUK-ABTNR = LIPS-ABTNR.
   ZUK-EMPST = LIPS-EMPST.
   VBRK-ZUKRI = ZUK.
endif.
*}   INSERT
ENDFORM.

I am not sure what exactly you are trying to achieve.
check the item field : VBRP-NETWR > 0 & delete other line items etc...

Similar Messages

  • Show The Word Original or Duplicated When Xml Have lots of Invoices

    Hy! i have a template of a invoice with have multiple invoices and i print all the original and duplicated invoice sucessefull. If i have a xml with 4 invoices it prints me 8 invoices! Now i have one issue that i cant solve! in the headers i want to print original or duplicated!
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,2,1)?> this allow to print the original and duplicated invoices
    <?xdoxslt:set_variable($_XDOCTX,DUPE,position())?> this is a variable to control the position of the for each to know if writes "original" or "duplicate"
    <?choose:?><?when:xdoxslt:get_variable($_XDOCTX,DUPE)=1?>ORIGINAL<?end when?>
    <?otherwise:?>DUPLICADO<?end otherwise?><?end choose?>
    <?for-each@section:/R55AVPAG/View_F0413___F0414_S1_Group/On_Address_Number_S3/On_Payment_Item_Number_S4?> this allows if xml contains more than one invoice to show all
    <?for-each:View_F0413___F0414_S1?> this is for each for the lines
    <?choose:?><?when:xdoxslt:get_variable($_XDOCTX,DUPE)=1?>ORIGINAL<?end when?>
    <?otherwise:?>DUPLICADO<?end otherwise?><?end choose?>
    this piece of code works if the xml only have one invoice. it prints the "original and "duplicate" correctly. my problem is when i have one more than one invoice! in the first page of the first invoice i have "original" and in other all invoices i have "duplicate" word. And what i want is "original" "duplicated", "original" "duplicated". My problem is the Variable DUPE! i thought that this variable value was 1 efor each iteration of this <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,2,1)?> , but not. This variable is iterating for each invoice. Exist Any way to reset this variable when one invoice finish? what i want is: I print first invoice "original" , than first invoice "duplicated". When the program start's to print the second invoice this variable backs to position1.
    any help? Thanks

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • Duplicated lines in PLD

    Hi All,
    Our customer's A/R invoices are copied from SO#. So for each line in A/R invoice, we can find a 'Base document key'.
    They would like to have the  'Base document key' of the first line in the A/R invoice in PLD header. That is ok.
    And they would like to have the 'Posting Date' for the SO against the 'Base document key' on PLD header as well.
    I have to find out the posting date in ORDR table. That is ok too. But, then I found I have the lines in the A/R invoice duplicated.
    How many SO I have in the system how many duplicated lines I have in A/R invoice.
    However, the header info is good. Anybody has idea on that?
    In a word, they would like to have the SO# and Posting Date in A/R invoice. SO number is in A/R invoice table. Posting date is in SO table. After I add 'Posting Date' in the header, the lines in A/R invoice are duplicated.
    I have a screen shot but I don't know how to paste it here. What I did is here (In the header):
    1) Field 1: Database >> A/R invoice - Rows >> Base Document Key
    2) Field 2: Database >> A/R invoice - Rows >> Row Number
    3) Field 3: Formula >> Field 2 == 0 (Link the other fields to this field. Then only the first line shown up. Actually I think we don't have to do this. The system will only show the info in first line if we put the line info field in the header. )
    4) Field 4: Database >> Sales Order >> Posting Date >> Related to 'Field 1'
    After I add field 4, the line items duplicated. Thanks.
    Regards,
    Yuka

    Then what type should the UDF be? Date or Time?
    Is this user query good for FMS? I have a Date type UDF and FMS, but I cannot carry the Posting date from the ORDR table. Thanks a lot.
    SELECT T0.DocDate FROM ORDR T0 WHERE T0.[DocEntry] = $[$38.1.45]

  • Check for duplicated invoices - Special G/L indicator

    Hi Gurus,
    When posting an invoice to a vendor with special G/L indicator, the check for duplicated invoices is not efectuated by the system. For
    normal GL posting the message F5 117 is defined as an error message. This happens in F-02 and FB60 transaction.
    How can i e check for the duplicate invoices when working with Special G/L indicators.?
    Can you please help me this ?
    Regards,
    Mário.

    F-47 is for Vendor down payments.
    Have you created your special GL Indicator for Vendors or Customers?
    Please check the account type of the Special GL Indicator.
    Rgds
    Murali. N

  • NGenerate Original and Duplicated Invoice

    Hy. I have one issue. My customer when print a invoice it want to print the original and duplicated. Someone have an ideia how i can do this. For Each Invoice Print it print's a copy of this invoice. My Ideia is create one variable y/n to gives option to the user if he want to print only original or original and duplicated invoice. if yes it print's twice if no it prints only original. Someone can help me o this issue?
    Thanks
    Edited by: user5877544 on Apr 28, 2009 4:39 AM

    Take a look here:
    http://winrichman.blogspot.com/2008/09/multiple-copies-in-bi-publisher.html

  • Skype number duplicated invoice

    Hi,
    I just placed an order 7 minutes a gofor a SKYPE number, I chose Paypal as a method for payment. Unfortuenatly the payement did not go through so, I attempted to try again twice using different methods but the problem now is I have 4 pending invoices.
    I would like to ask support team to please cancel the duplicated invoices or all 4 invoices so I can use a credit card payment instead for the last order which is for one month trial.
    I need to sort this today so I can start use the number and add credit.
    thanks

    Hi, LGBTXS, and welcome to the Community,
    Before proceeding, I would ask PayPal and the payment method you use to fund your PayPal account why the transactions are not being processed.  Then, please contact Skype Customer Service:  Here is another link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    If you experience difficulty reaching Skype Customer Service, try again using a different web browser and choosing a different path through the various drop-down menu options presented. Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also impede reaching an agent.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Items in the invoice are being duplicated...

    Hello,
    We have invoice and that invoice has 6 items with diff prises. but 2 of the items with are having same information and they have been duplicated and same item is being charged twise... does any1 have any idea?
    Please let me know
    Regards,
    lata.

    Hi Latha,
    Please check the Sales order and confirm that the items are intact i.e.,there are only 6 line items and with different prices,check the delivery and if everything is same and different only in invoice,check the copy controls.
    Hope this helps you certain extent.
    SriRam

  • Invoice PDF output duplicated

    Hi,
    Some times the PDF output of the invoice is duplicated with that of previous invoice,where the invoices are created simultaneously via transaction VF04.
    We use a custom program and Sapscript for this purpose.
    But this doesn't happen all the time and only happens occasionally even with two invoices.
    Not too sure if some buffering concept is invloved.
    Could not find any relavant notes describing similar problem in the SAP service.
    I have tried tracing the output of FM 'CONVER_OTF',but with no clue.
    Can someone guide me in sorting this problem.
    Many thanks in advance.
    Regards,
    Babul
    Edited by: Babul on Mar 31, 2010 11:31 AM

    I don't think the problem is in the OTF conversion. It looks more like an error in the output processing program - either the invoice number gets "stuck" somewhere or something is getting called numerous times. I'm afraid you'll have to go through it with a fine comb, especially check for SELECT statements, any loops and subroutine calls.
    It is less likely but the problem might be in the script as well.

  • Duplicated Invoice Posted to Accounting

    Hello All,
    I got an issue with Duplicated invoices.
    For one delivery 2 invoices created out of which one is Duplicate.
    For other delivery 4 Invoices created out of which 3 are Duplicates.
    The Biggest problem is that
    1. All 6 invoices posted to accounting.
    2. the duplicated invoices are not there in the Data base. When we try to check in SE16N VBRK we are getting Document does not exist problem.
    Now the issue is to find out how it is happened and we need to reverse the accounting entries posted to duplicated invoices.
    My Analysis:
    SAP Notes OSS 12934-Duplicated Invoices, 152051. These are not helping
    Could any body help me on this issue.
    Best Regards

    Hi,
    Thanks for Response.
    Critical thing is that the accounting documents exist for those invoices which are not in data base now.
    We can able to see the invoice number in FBL5N but the invoice is not there in SAP data base.
    As Invoices posted to accounting the customer receivables doubled for one delivery and 4 times for other.
    When we try to check form accounting document also but the system throwing error document does not exist.
    Hello Raghu,
    I checked in Short dump no system messages exist.
    Regards,
    SASi

  • Duplicated Invoices

    Hi,
    using this report "S_ALR_87012341 - Invoice Numbers Allocated Twice" I have analyzed the duplicated invoices. but I am not sure about  the accuracy of the data provided. in that list can there be any reversed  doc numbers?how to capture that information
    Gayani

    hi,
    I was referring to the invoices for payments. is there any option to check this on vendor master level?
    can you please clear the what do u mean by message type obmeg? is it a T code or  SPRO setting?
    Gayani
    Edited by: gayani premawardena on Feb 12, 2008 5:14 AM

  • Differential Invoice - Product costs are getting duplicated

    Hi,
    I set up differential invoice process for my client. Everything is perfect except an issue on PA document where product costs and other costs are getting duplicated (hence double cost). On differential invoice, in 'Diff. Condition' tab, these costs doesnot appear for difference condition types. Yet, they are again reflected in PA document when the Differential invoice is posted.
    Can you please share if anybody has some info how the issue can be handled.
    Points will be given for approriate suggestions and answers
    Regards,
    Praveen

    Hi Stefan,
    I think creating A/P invoice with posting date=03.01.2015 would be wrong.
    Instead you may create the same with posting date=07.01.2015 and document date=03.01.2015.
    Thank You,
    JO

  • Actual cost getting Duplicated while Invoice Verification

    Can any one help. Iam attaching the link below
    Re: Actual cost postings duplicated
    Thanks

    Hi
    Your Freight condition should be an expense condition and it should not charge upon the inventory
    If it is defined as such, then create an OSS message and ask SAP to investigate. Chekc if any note already exists
    br Ajay M

  • SRM Invoice management: Triggering issue : exception u201C105: suspected duplic

    Dear all,
    We note that IDs fall exception 105 "suspected duplicates" when no other existing ID in the system admits the same characteristics as these.
    1/ T code: /N/OPT/VIM_1CX5
    2/ This group detects a duplicate if Ids were the same:
    -     Date
    -     Company
    -     Amount
    -     Vendor
    -     Invoice reference
    > we care to control that in the type of document posted on the ID, this exception (105 suspected duplicates) is provided
    3/ T code: /N/OPT/VIM_1CX1
    For example, if the type do document is u201C2 Invoices ordering goodsu201D, we note that this exception is well planned
    *so this bug is random.*
    Could you help us to solve it?
    regards,
    Julien

    Hi Julien,
    First of all you are in the wrong forum here. You are talking about SRM Invoice Management in your subject, but you are describing SAP Invoice Management (an add-on by Open Text).
    When the exception for suspected duplicate arisdes it triggers a workitem in someone's inbox. When opening the workitem it shows the invoices for which this could be a duplicate in a list at the bottom of the screen. This should give some insight.
    You describe exception 105 which is for PO related invoices, and normally in the check the PO number is also included but not according to the fields you mention.
    Furthermore your description is not clear at all. Why do you say the bug (up to now I don't see a bug in what you describe) is random?
    Regards,
    Martin

  • How do we raise Incoming Excise invoice on Vendor1 and A/P Invoice on Vendo

    Hi All,
    How do we raise Incoming Excise invoice on Vendor1 and A/P Invoice on Vendor2 for a single purchase order?
    The Scenario:  PO is raised on Vendor2 for certain goods excisable and Vendor2 is not registered under Excise hence i cannot get Incoming excise invoice from Vendor2 or I cannot raise Excise invoice in B1 on the name of Vendor2.
    But
    the same goods (which are excisable) were already supplied by Vendor1 to Vendor2.  So here the excise invoice is coming from Vendor1 and A/P Invoice from Vendor2 how this is actually handled in Business One?  How do we show the A/P Invoice amount due on Vendor2 and the Excise Passed from Vendor1?
    Thanks
    SV Reddy

    Hi Thanga Raj,
    what you said is works only for payment consolidation.  where in a particular purchase two vendors are involved, the tax updates should go into relevant vendor master data.  in the above case excise is updated in the vendor1 account and RG23 also should be generated on the name of Vendor1.
    Since you already raising incoming excise invoice on the name of Vendor1 you also need to raise A/P Invoice on Vendor1 (this is mandatory, from the goods receipt PO when you click copy to Incoming Excise Invoice and A/P Invoice the system automatically inserts "Vendor1")
    but how do you update the Vendor2 account only for the A/P Invoice VAT portion.  Because in reality the VAT you are paying to Vendor2 since you need to raise the a/P Invoice on the name of Vendor2.  it is not actually happening in business one.  If you try to raise A/P Invoice on Vendor2 from this Goods Receipt PO, initially the system copies Vendor1 from GRPO and if you change and try to add the invoice on Vendor2 name, the system will ask you to create a serial number again if the item is excisable.  here the work is duplicated for the same item you already created a serial number while you creating the Goods Rectipt PO from Vendor1. 
    Any body knows any other scenario please help me.
    Thanks
    SV Reddy

  • DI API error while adding AP Invoice (Using serial Nos.)

    Hi,
    Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
    " [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
    If anybody has encountered this error and found a solution kindly let me know.

    Hi Vivek,
    Are you trying to add same document number, serial number or so on?
    "entry exist " means like "duplicate key problem", I guess.
    Basically, whscode column in PCH1 table allows duplicating.
    So, I think serial number is duplicated among same item code.
    Hope this useful for you.
    Regards,
    Hyunil Choi.

Maybe you are looking for

  • Content retrieved through RIDC after add/edit/delete is not updated

    Hi There is a functionality such that a user is shown the content details like folder name and content under the folder name to be displayed on the portal. Basically, the metadata of the folder and content need to be displayed and add/edit/delete ope

  • Image (Co. Logo) in Template header appears but not in Topic when viewing a topic which is attached to the Template

    I have an image (Co. logo) placed in the header of a template. Topics are attached to the template. I also have a separate page that has hyperlinks to the the Topics in the several books I have in the project. When I generate (WebHelp) project and vi

  • Loading xml and parsing

    Is there a way to load an xml file and parse the tags as we do in javascripts in java? i want to write a generic xml parser. what all should i know before starting. i choose java as my development language.

  • Ajax region pull bug?

    Hi, I have a page with two dynamic PL/SQL regions. I want to refresh the second one without submit my page like the following example: http://apex.oracle.com/pls/otn/f?p=11933:48:4181203731698424 here is the main of the example code. var get = new ht

  • Encore DVD 2.0 keyboard shortcuts (full list)

    Here's a complete list of shortcuts for Encore 2.0, including those left out of the User Guide and Adobe Help. - Larry Encore DVD QE