Line item duplicating

Hello Gurus,
I have another problem. I am displaying a line item but the problem is that some data is duplicating means first and second line item is the same some are not
check the table and i found out that there is 2 value for that particular material so i does display 2 line item with the same data.
Now i just wanted to display only one what should i do? thanks!

for example
say for table it_data , you have entries as
   vbeln   posnr   matnr
   10      10        100
    10      10        200
  IF vblen and posnr are the key fields , then first sort the table by vbeln posnr.
  Then Delete adjacent duplicates from it_data comparing vbeln posnr.
Reward if useful.
Thanks.

Similar Messages

  • Line items duplicated in KE24

    Hi,
    I have activated costing based profitability analysis and when I create a billing document the system generates a PA segment.
    It is correct but when I display it in KE24 it appears twice, one with the currency type B0 - Operating concern currency and the other with 10 - Company code currency.
    I don't want this information duplicated, how could I customize the system to generate only one line item?
    Thank you very much

    Hi,
    It totally depends upon how the operating concern is set. If Company  Code Currency check box is checked in KEA0, then CE1XXXX will the record the values in operating concern currency as well as in company code currency. If you dont want to view the line items in Company Code Currency, select only operating Concern Currency in selection screen in KE24 which will filter the record and report will display the line item with only operating concern currency.
    If you dont wnat the table to record the data in company code currency and only in operating concern currency, then you need to uncheck the company code currency in KEA0.
    Regards,
    Harish

  • Line item gets duplicated while creating billing document

    Hello,
    I have created an order with two billing plans (periodic & milestone) having single line item. When I create a billing document, line item gets duplicated.
    Can any one help me...
    Regards,
    Kishore

    Hello Balu,
    Kindly see the process below.
    Quotation -> Sales Oder -> Delivery -> Invoice (proforma) -> Excise invoice
    In the above mentioned process, I create quotation for 2 material for quantity 2 each say. I create SO with ref to quotation for only one material with quantity 2. Since I have to do proforma invoice & then the excise invoice, so I have created two billing plans. I have attached both the billing plans to SO. Now after completion of delivery, when I go for doing proforma invoice, I can see duplilcation of material (material in SO gets duplicated in Billing). When I go back to SO and remove one Billing Plan, then material is not duplicated in billing (proforma invoice). But as client said they want two billing plans to be attached to SO. So issue is with Billing Plan which creates duplication.
    I hope this clear's the issue to you...
    Can you suggest any way out....
    Regards,
    Kishore

  • Duplication of Line Items in Shopping Cart

    Hi,
    We currently use SRM 4.0 with ECC6 and IE version 6.0.
    The situation we are facing is as follows:
    When the user completes shopping at the vendor's web based catalogue and hits return button, even line item that punches out from the vendor catalgue is duplicated in SRM Shopping Cart at our end. Eg: if the user has shopped for 4 units (quantity) of a particular product at the vendor's catalogue and hits the return button, he/she finds that the same product has been duplicated in the form of 2 line items of the same product with the quantity field showing 4 units in each line.
    The question:
    What could be causing this impasse?
    thanks
    Anirban Gupta

    Hi
    For the time being, Please de-activate all the Active Customer BADI Implementations (name starting with Y or Z using SE19 Transaction). then try repeating the process of Shopping cart ordering again.
    <u>Please go through this link, which also relates to the same problem -></u>
    Re: Duplication from Catalog to SC
    Do let me know.
    Regards
    - Atul

  • Post non PO invoice line items using INVOIC01 and FM IDOC_INPUT_INVOIC_MRM

    hello there SAP folks,
    Have an interesting question for all of you. We currently have a partner through whom we use the IDOC_INPUT_INVOIC_MRM Function module to pass invoices. Now there are multiple line items some times [multi E1EDP01 / E1EDP02] segments which all refer to the same PO but to different line items on the PO. Now all that is well.
    For one particular partner we now have the following requirement. We are going to have the same condition as above, with the added condition that there are going to be some invoice line items with no reference to a PO. the reason is that the vendor is going to calculate the different taxes and send them to us. so when we post the invoice :
    we will now have
    31 Vendor
    40 GR/IR
    40 Tax 1
    40 Tax 2
    50 Tax 3 offset
    instead of
    31 vendor
    40 GR/IR
    to deal with the new situation I tried adding having the following
    first E1EDP02 is going to refer to the PO using qualifier 001, but second E1EDP02 [for tax] s not going to have a qualifier 001. When I do that i get a missing belnr (001) and zeile (001) error.the exact error message is the following
    Required field BELNR(001) is missing in segment E1EDP02
    Required field ZEILE(001) is missing in segment E1EDP02
    Message no. FD070
    Now to bypass that, I added the 001 qualifier for the second E1EDP02 [tax part] and now the error that I get is either the PO is duplicated or if i put some dummy PO number, then it says PO cannot be found.
    =======
    so the question is how is it possible to post  4 items in the idoc , with one being a PO reference and 3 non PO reference using INVOIC01 and IDOC_INPUT_INVOIC_MRM
    I also have to add that it is possible to add a non PO items to the MM invoice in MIRO by entering the additional tax lines using the g/l account tab next to the PO reference tab.

    nvm.
    Edited by: D N on Dec 16, 2008 2:10 PM

  • Duplicate Shopping Cart  line items  - Supplier doesnt get copied ?

    Hi,
    we are on SRM7  extended classic scenario and while we use the "Duplicate" option to copy the existing line items in a shopping cart then the supplier doesn't get copied to new line item, field remains blank? is it a standard behaviour?
    what are the steps needed to make this happen ? appreciate your help in this regard.
    Thanks,
    Maverick

    Hi
    In SRM , if you copy the line item all item data must copy including suppliers.
    step by step tell us
    like
    1 create a shopping cart describe requirement
    2. manually assigned a source of supply - assigned a vendor
    3. copy the line item into another one
    4. in the latest line item supplier was not copied.
    The behavior of copying/pasting or duplicating items in a SC is different depending on the status of the SC
    Note 1137292 - Inconsistency when duplicating items
    Muthu

  • BAPI_ACC_DOCUMENT_POST in case of  multiple line items

    Hi All,
              I'm working on program for uploading of Journal postings ( G/L postings) from excel . I am using
    BAPI_ACC_DOCUMENT_POST for this purpose.
    There is a possibility that the excel data may contain one Dr./Cr line item with multiple DR/Cr line items. System
    can recognise one line item with multiple line item by means of unique header reference field (XBLNR) . The excel
    data contains following fields :
    BLDAT     
    BLART     
    BUKRS     
    BUDAT     
    WAERS     
    KURSF     
    XBLNR     
    BKTXT     
    BSCHL1     
    HKONT     
    WRBTR     
    KOSTL     
    AUFNR     
    PRCTR     
    FKBER     
    SGTXT          
    BSCHL2     
    HKONT1     
    WRBTR     
    KOSTL     
    AUFNR     
    PRCTR     
    FKBER     
    SGTXT
    How can i populate the accountgl , accountrecievable ,ammountcurr tables in BAPi mentioned?
    <LOCKED BY MODERATOR - DUPLICATED THREAD>
    Re: BAPI_ACC_DOCUMENT_POST
    Edited by: Alvaro Tejada Galindo on Jan 13, 2010 4:29 PM

    This is a duplicate post. Please see my answer in the other one.
    Rob

  • Duplicate line items

    Hello,
    We are in SRM 5.0 with server 550 with ECS.
    We have faced a issued in a PO where all the line items have duplicated again.
    1   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       1   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       2   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       2   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       3   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       3   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       4   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       4   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       5   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
       5   Material  Other Consulting  G903520  903520  3  each  73,00 GBP Per 1  73,00 GBP  30.09.2009  Expenses  6686400  C Finance      
    Total Val.: 2.628,00 GBP  Tax Value: 394,20  GBP
    any clue why it has happened, we were not able to replicate this scenario in quality systems.
    Rgds,
    Madhan

    You could try searching OSS, however I think this is just a program error.
    Debug the used badis to see why this is happening.
    Kind regards, Rob Dielemans

  • How to relate vbrp & glpca to get line items for both ?

    Hi
    I am working on some report ,where I am passing vbrp-vbeln  to glpca-refdocnr to get some field from glpca tables.
    Now I have to work on item data as well.
    vbrp-posnr to glpca-refdocln to get he corresponding line items..but when I put a join condtion on vbeln & refdocnr..it gives me duplicates as well.
    below is my query & output  ..Please advice how to eliminate duplicate records ???

    hi,
    Ok. If we are getting 4 records here then the some where in the previous JOIN statements the records are being duplicated.
    If possible try to use join condition on the VBAK table, which is header table in the select statement if that is not possible,
    please try with the using DISTINCT key word in the select query.
    Let us know the issues.
    thanks,
    Bhaskar

  • PO printing, line item duplication

    Dear Gurus,
    We have created a PO with reference to a PR, while prining the PO, one of the line item is being duplicated, but the value of this line item is not considered in the total value of the PO. It is a Standard PO.
    Kindly advice how to rectify this error.
    Regards,
    LUX

    Hi,
    I found the reason for this behaviour, the Order price unit is different from the base unit of measure.
    LUX

  • Line item deletion in Maintenance order

    Hi Guru's
    Please let me know how to find the deleted line item in the component tab of maintenance order before saving.
    for eg. The user creates the following line item in the component tab of the maintenance order.
    Before saving he deletes the line item 20.
    Item   component   qty
    10       100001        10
    20       100003        20
    Please let me know  where exactly the deleted status is stored, before saving for the line item
    Regards
    Vidhyadharan

    Hi Pete
    We are trying to prevent the user from creating product line items in Maintenance order with respect to equipment BOM. Let me explain you the scenario
    Equipment 1000201 - contains the following components as BOM
    1002775 - qty 2
    1003326  - qty 1
    When the user creates the order , he tries to withdraw more qty than the qty specified iin BOM. We have controlled it using enhancement IWO10009.  Initially we didn't anticipate that the  control can  be skipped by duplicating the material (i.e material line) eg line no 10 :1002775 - qty 2 and line no 20: 1002775 - qty 2 and the transaction is saved. In order to control, we have modified the program accordingly and never allow the user to save, if there is a duplication of material.
    The problem started when the user tries to save the line item after deleting the duplicate material
    The check we used doesn't not allow the user to save inspite of the line item been deleted. The msg introduced keep repeating .
    We tried debugging the program, we wouldn't find any  deletion indicator in the structure   CAUFVD_IMP or resb  to overcome this bug.
    Can you pls let us know where exactly the deletion indicator or status is stored for the line item in the component tab before saving
    Regards
    Vidhyadharan

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • Vendor Line Item not cleared after F110

    Hi Gurus,
    We encountered an issue. The payment run was processed last April 18 and the vendor invoices were captured during the payment run and in the aging report, these invoices didn't appear as Open Item.
    In between April 19 until August 19, these invoices are not part of the proposal list until the when they run payment on August 20. The value is zero and in the proposal list, there is a value in the Reason to Print Advice "A".
    What is the reason for this?
    Thank you.

    Hi Dianne Obviar,
    For that invoice payment delete uncompleted payment
    proposal.
    U go through this path select F4 in run date field
    There check it any un completed proposal is there and delete
    that invoice line item will come for payable
    Regards
    Surya

  • Open Item and Line Items are not matching

    Hi Gurus,
    I ran the EFT for vendor #1600109 for payment on 10/18/07.  If I run the vendor open items report (ZFI019) for today, it shows the balance net of the EFT that is $203,466 ( $263869 - EFT Value is $60,403). 
    When I ran the vendor line items display (FBL1N), it shows all the invoices including the invoices paid on the Oct 18 EFT $263,869 which is (2034,66+60,403). 
    User wants the open item report should tally the line item display.
    I will assign good points.
    Thanks for your help
    Prashanth

    Hi Gurus,
    EFT is working fine. But the Vendor Open item Report (Custom Report) and Vendor line item report (FBL1N) is different.
    We are looking a balance for a vendor as on 15th where the balances are not matching between the reports but if i run FBL1N on 18th the balances are matching.
    Clearning date is 18th
    Posting Date is 15th.
    Thanks
    Prashanth

  • Urgent - "Vendor balances carried forward and line items report."

    Hello,
    Is there any report which will give me the vendor balance carried forward and the line items during that period.
    ==============================================
    Format-
    eg: statement taken from 1.8.2006 to 30.9.2006 is required as
    Bal b/f …………………………… 25000 cr.
    3.8.2006 Purchase Inv XXX ……   3000 cr.
    5.9.2006 Payment Chq XX ……  26000 dr.
    Bal c/f ……………………………  2000 cr.
    ==============================================
    Please advise on this.....
    Regards,
    J

    thanks for the response, but i have already tried those transactions.
    FK10N will give me the periodic bal statements and NOT line items display which will also have balance carried forward.
    F.41 and F.43 again gives the periodic and line items...but i want the vendor balances to  be in the format given above..
    like say, account statement.
    Please advise............
    Regards,
    J

Maybe you are looking for

  • XML Export/Import Query & Variables

    Hello, We are currently bringing up a new environment/landscape.  With that, I'm trying to copy some of the query elements off our current production server and move them back to the new development server.  After much wasted time trying to duplicate

  • Synchronous and asynchronous communication tcp/ip

    Hello all: it is common to make synchronous communication between client and server by socket tcp/ip. But I'm needing now to establish an asynchronous communication. I mean: 0.- The server is a multithread process that has the property to establish o

  • Unrecognized usb device

    Since loading iTunes 10.6.1 my Windows system is unable to load the USB device driver for iPhone or iPads. Anyone else with the problem or even better a solution?

  • How can i edit and save a spreadsheet or excel sheet on my MACbook pro

    how can i edit and save and rename excel or spreedsheet on my macbook pro

  • Wallet and dbms_crypto

    Hello, I intend to use DBMS_CRYPTO and use personal key that is already stored in a wallet (file). Which steps must i take to bring this key as a parameter to DBMS_CRYPTO.ENCRYPT for encypting BLOB. Al examples i found till now use only self created