Delete proposed items with billed quantity 0 in VF01

Hi,
We need to delete from the proposed items to invoice the items with billed quantity 0. The lines with this quantity = 0 have not to be showed so we need to delete the items just when the items are proposed. Do you know any way to do that? The user exits we have found, like userexit_fill_vbrk_vbrp, are not usefull because are executed before the append is done to the table XVBRP.
Thank you,
Manel

This should be done in COPY CONTROL. Please sit with your functional counterpart to identify which copy control routine is currently being used. Next, in VOFM, copy this routine to a new routine (new routine # should be between 601 to 900) and adjust your new routine per your requirements.
Raj

Similar Messages

  • Unable to delete line item with 0 quantity in Invoice.

    Hi Experts,
    I came across a Invoice which reflects in VF04 as pending Billing due list. When i checked at the inter company Invoice i came across a line item with "0" quantity and price as zero, interestingly the replinishment cross company delivery document  for the same line item for "0" quantity had a Batch assigned to it.
    Now the issue is cusotmer has selected the line item with XX quantity and have selected the accounting document to be generated but the line item with "0 was left over and now still reflects in VF04.
    Customer does not want to reverse the full cycle to resolve the issue since the document was created a year back.My Question  is can we get the line item with "0" quantity to clear accounting so that it will not reflect in VF04.If so what will be process to do that.
    Thanks in Advance to advice.
    Regards,
    Sridhar.R

    Hi,
    It is  not possible to delete this line item, you can discuss with your client and delete it from the table.
    And now coming to the reasons why it has come into the invoice & Delivery
    1. The Batch Item category must have been configured as relevant for billing...check this and make it irrelevant if the client does not do batch specific billing. --- This will stop the batches from coming into the invoice.
    2.  Check for the batch item category in delivery if Zero quanity is allowed...if it is allowed make it not allowed and make it an Error message, whenever there is a zero quantity system will give a message.

  • PO Line Item with Open Quantity

    HI all,
    How should i select a PO line item with Open Quantity? Is it possible to post GR for a PO which is set for Delivery Complition but still has Open Quantity ..
    please help me how to check for OPEN QUANTITY.
    Thanks,
    Ravi.

    Hi all,
    Thanks for your answer, but can you be some more specific on what calculations need to be done.
    I need to Post a GR for all PO where PO line items have Open Quantity.
    Thanks
    ravi.

  • FOC items with bill rate as "0" are not appearing in project invoice

    Customer has a unique requirement of billing resources working on the project for free due to business reasons.
    The issue is that the FOC items with bill rate as "0" are not appearing when the invoice is generated.
    Please let me know if any one has come across this kind of a requirement and please share if you have any workaround.

    Hi
    You may try setting the bill rate for those cases as 0.01.
    That way the items will be included in the invoice, but not affect dramatically the amount billed to customer.
    Dina

  • Item with zero quantity.

    Hi ,
    I need a SQL query which returns all the items with zero quantity.
    In mtl_system_items_b am not finding any quantity column.
    I have written a query.will you please let me know whether it works or not.
    select b.segment1,0
    from
    inv.mtl_system_items_b b
    minus
    SELECT b.segment1,m.TOTAL_QOH
    FROM APPS.MTL_ONHAND_ITEMS_V m,
    inv.mtl_system_items_b b
    where b.inventory_item_id=m.inventory_item_id
    and nvl(m.TOTAL_QOH,0) >0
    Thank you.
    Regards,
    Neeraja.I

    Hi,
    try with this query,
    select
    msi.INVENTORY_ITEM_ID
    , msi.DESCRIPTION
    from
    MTL_SYSTEM_ITEMS_B mis
    , MTL_ONHAND_QUANTITIES moq
    where mis.INVENTORY_ITEM_ID =moq.INVENTORY_ITEM_ID
    and moq.TRANSACTION_QUANTITY <>0
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Excisable items with zero Quantity

    Hi,
    Posting Invoice for Non-Excisable item with zero Quantity is allowed, How to get the same with the Excisable Item ?
    Thanks And Regards
    Vivek

    Hi Jimmy,
    Thanks for ur response,
    I m working on SAP B1 PL34 and also checked in PL05, Is there any way to achieve that facility in Invoice Document?
    And if u find any notes for it then plz give me the link.
    Thanks and Regards,
    Vivek

  • Add or Delete Line Item in Billing Creation (VF01)

    Hi,
    During the billing document creation (VF01) for Order-Related Billing (example: Doc Type F5 - Pro Forma for Order), can you
    manually add or delete line items?
    Let's say if Sales Order was created with 3 line items and only 2 line items should be included in Billing Doc F5.  During the
    billing document creation (VF01), it automatically copies all 3 line items.  How can I delete the line item that I don't want
    to be included in Billing Doc F5?  Only way that I know is to put a billing block on Sales Order item so it won't automatically
    copied into a billing document.  But this process is inconvenient.  After F5 document is created, my user will then need to
    remember to go back to Sales order and remove a billing block from that line item.
    Also vice verse, can an item be manually added to a billing document during the creation mode (VF01)?  Is there somewhere
    in the configuration that I can change to allow this?  Or is it a standart SAP practice all items on a billind document have to
    be Order or Delivery-Related?
    Thanks,
    Michelle

    Hi,
    While creating the invoice via VF01. Please go to selection list icon. this will take to you another screen. here you can select the line item you want to copy/bill.
    Please try and let us know.
    Thanks,
    Vishal

  • Can not delete service entry sheet having Items with zero quantity

    Dear Experts ,
    I am having one service entry sheet with many line items out of which some line items are having quantity zero. Now when trying to delete the service entry sheet , system is asking to fill the quantity . since there are already some other service entry sheets through which full quantity equal to Purchase order quantity for that service line item has been already entered , the system is giving message "quantity exceeds"  if even quantity 0.01 is entered for namesake to allow delete of entire SES.
    The user had saved this service entry sheet & left it as it without acceptance for long time , it is required to be deleted as whole.
    Please advise how it can be deleted as system is not allowing it to delete & asks quantity to be filled NOW where  quantity had been entered zero while previously saving .
    Thanks in advance ,
    Regards,
    Anil Shanbhag

    Hi ,
    The SES has all line items with WBS elements , the idea to delete the SES is to free-up the budget which is commited due to creation of this SES.
    I have tried deleting individual line items in SES ,but system gives error "enter quantity" where line item quantity is zero. there are few such line items with quantity zero out of total 26 line items in the SES.
    I want to know whether Blocking of SES at header level will free-up the budget as it is the basis purpose for deleting SES , which i think may not serve the purpose.
    Kindly advise.  Thanks for your inputs.
    Warm Regards,
    Anil

  • Related item with calculated quantity

    Hello,
    I have requirement like this in 11.5.10.2.
    1. I have sales order with item "A" quantity 10.
    2. I choose related item "B" with default quantity 1.
    This is easy.
    I want put my own quantity instead 1. I can change this quantity manually but I want make own calculation and I want fill in quantity by system.
    What kind of setup/customization I have to make? Has somebody had requirement like this?
    Regards,
    Luko

    Luko,
    I think the standard functionality is always going to give you a quantity of 1 as default.
    Have you tried using a personalization on the LINE object, WHEN-VALIDATE-RECORD event, with a condition statement restricting the trigger to the item relationship type(s) you're using?
    If your requirement is as simple as always setting the related item quantity to be the same as the ordered item quantity then you should be able to take care of that within the perso. If you have variable qty relationships, you'd have to look at storing those in the Item Relationships DFF and referencing that setup from your perso to get the correct calculated qty value to set.
    Regards,
    Jon

  • Deleting Library Items with Action Script

    Is it possible to delete the library items at runtime?
    I am loading b.swf in a.swf. After some time b.swf unloads and c.swf is loaded inside a.swf. Though the b.swf unloads but the library items of b.swf remain there and conflict with the library items of c.swf. c.swf has some items with the same name as in b.swf. c.swf shows the movieclips from the library of b.swf with similar name.
    I think the best way would have been to load these assets externally instead of keeping them in the library if we want to destroy them at runtime. But, we have a large number of already constructed files. Ability to destroy the library items at runtime will also help maintain memory usage in limits.

    If you have swf files in your library, that is not a good way to implement a design.  You should load all swf content dynamically at run time.  You cannot delete anything compiled into the file, such as library objects, as far as I know.

  • Deleting quotation items with BAPI_CUSTOMERQUOTATION_CHANGE

    hi everybody,
    i try to delete single line items/positions in quotations by calling BAPI_CUSTOMERQUOTATION_CHANGE. The return table is always filled with success-messages but somehow when looking at the transaction VA23 the line items are still present although a BAPI_TRANSACTION_COMMIT has also been executed in my souce code. Please advise...Thanks...

    In your internal table related to type QUOTATION_ITEM_INX, are you setting the UPDATEFLAG value to 'D' ?

  • Remove Billing Block on a Sales line item with Billing Plan

    Hi All,
    I need to remove/clear “<b>Billing Block</b>” on a sales order line item which as been attached to billing plan. Sales order line item can have more then one “<b>Billing Plan</b>” line item. Based on <b>billing date</b> I want to remove Billing block. Any hints or direction much appreciated. Thanks in advance.
    Kind Regards,
    Tim

    Hi,
    Use the BAPI BAPI_SALESORDER_CHANGE to remove the billing block in the sales order line item..
    Pass the item number ORDER_ITEM_IN parameter
    Pass the item number, UPDATEFLAG = 'U', BILL_BLOCK = 'X' in the ORDER_ITEM_INX parameter..
    Thanks,
    Naren

  • Line with 0 quantity for main item with batch split

    Hello experts,
    I have one line item in delivery. Delivery split is there: There are 1 spilt items with 1 batch nos. The main item category and the batch split item category are TAN.
    My system is showing 2 line items in billing, the batch line with quantity and the main line with zero qty. How to prevent this and have only the lines item in invoice with batch/qty. I don´t want to see the main item with o quantity.
    In VTFL I have routine for copying requirements 004 and Billing Quantity B. I need to create another copying routine or I need to use another item category for batch lines?
    Thanks in advance
    Pablo

    Hi Pablo,
    It is advisable to have a different item category for Batch split items.
    If you want the batch split items to suppress and show only the Total in the Invoice. Yes it is possible.
    1) You can do this in the Copy controls in VTFL - Delivery to Billing, go to your Item category and go to Item details - Change the billing Qty to 'G'.
    2) Go to Shipping > Deliveries > Item categories Determination in Deliveries > Define item category.
    Go to your item category which is used in Batch Split
    Remove the Billing Revelance and make it blank and Save.
    Now when you create the Invoice for Batch split - Only the total quantity will be displayed without the subitems - like in Delivery note or Delivery..
    Please check and revert back for any more details
    Rgds
    Sunil.

  • Schedule lines with null quantity deleted from EKET

    Hi All, I would understand if there is a logic that deletes schedule lines with null quantity from EKET.
    Sometimes it happens and sometimes not and I can't find the reason. I thought that it could depend from the transaction used (ME38 or MD43) but it's not so.
    thanks
    L

    Hi,
    This functionality was implemented after OSS Note was applied with release 4.0B.
    191898 - ME38: Delivery schedules w/ scheduled quantity zero

  • BAPI_BILLINGDOC_CREATEMULTIPLE u0096 Duplication of line item in billing docume

    Hi All,
    I am using BAPI “<b>BAPI_BILLINGDOC_CREATEMULTIPLE</b>” to create billing document. Creation of billing document is fine, but issue is I am passing individual line item along with <b>quantity</b> to be billed. But what’s happening is if I got 3 item line in sales order with quantity 1-3-5, billing document getting created 3 quantity ‘1’, 3 quantity ‘3’ and 3 quantity ‘5’. So I end up with 9 line item on billing document which is incorrect.
    Please see the code below which I am using, can anyone tell me what I am doing wrong here. I basically need to create 3 billing line item with respective quantity I pass. Any hint is much appreciated. Thanks in advance.
    Regards,
    Tim
    loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
        select single * into gs_vbak
                        from vbak
                        where vbeln = GS_INIT_ITAB2-VBELN.
        select single * into gs_vbap
                       from vbap
                       where vbeln = GS_INIT_ITAB2-VBELN AND
                             posnr = GS_INIT_ITAB2-posnr.
        select single * into gs_mara
                       from mara
                       where matnr = gs_vbap-matnr.
        refresh GT_BILLINGDATAIN.
        GT_BILLINGDATAIN-SALESORG   = gs_vbak-vkorg.
        GT_BILLINGDATAIN-DISTR_CHAN = gs_vbak-vtweg.
        GT_BILLINGDATAIN-DIVISION   = gs_vbak-spart.
        GT_BILLINGDATAIN-DOC_TYPE   = GS_INIT_ITAB2-auart.
        GT_BILLINGDATAIN-ORDBILLTYP = p_fkart.
        GT_BILLINGDATAIN-SOLD_TO    = GS_INIT_ITAB2-kunnr.
      GT_BILLINGDATAIN-ITEM_CATEG = GS_INIT_ITAB2-pstyv.
        GT_BILLINGDATAIN-REQ_QTY    = GS_INIT_ITAB2-kwmeng.
        GT_BILLINGDATAIN-SALES_UNIT = gs_vbap-vrkme.
        GT_BILLINGDATAIN-CURRENCY   = gs_vbak-waerk.
        GT_BILLINGDATAIN-SHORT_TEXT = 'Test'.
        GT_BILLINGDATAIN-BILL_DATE   = gl_date.
    write GS_INIT_ITAB2-afdat to GT_BILLINGDATAIN-BILL_DATE ddmmyy.
    GT_BILLINGDATAIN-BILL_DATE  = GS_INIT_ITAB2-afdat.
        GT_BILLINGDATAIN-PRICE_DATE = SY-DATUM.
        GT_BILLINGDATAIN-REF_DOC    = GS_INIT_ITAB2-VBELN.
        GT_BILLINGDATAIN-DOC_NUMBER = GS_INIT_ITAB2-VBELN.
        GT_BILLINGDATAIN-ITM_NUMBER = GS_INIT_ITAB2-POSNR.
      GT_BILLINGDATAIN-ORIGINDOC  = GS_INIT_ITAB2-VBELN.
        GT_BILLINGDATAIN-ITEM       = GS_INIT_ITAB2-POSNR.
        GT_BILLINGDATAIN-NO_MATMAST = co_x.
        GT_BILLINGDATAIN-COUNTRY    = 'AUS'.
        GT_BILLINGDATAIN-MATERIAL   = gl_matnr.
        GT_BILLINGDATAIN-TAXCL_1MAT = '1'.
        GT_BILLINGDATAIN-REF_DOC_CA = 'C'.
        append GT_BILLINGDATAIN.
      endloop.
    Prepare for BAPI call
        CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
          EXPORTING
            CREATORDATAIN         = GS_CREATORDATAIN
          TESTRUN               = co_x
          POSTING               = co_x
          TABLES
            BILLINGDATAIN         = GT_BILLINGDATAIN
        CONDITIONDATAIN       = GT_CONDITIONDATAIN
        CCARDDATAIN           =
        TEXTDATAIN            =
        ERRORS                =
            RETURN                = GT_RETURN
            SUCCESS               = GT_SUCCESS
        clear gl_return.
        loop at GT_RETURN.
          if GT_RETURN-type EQ 'E' OR
             GT_RETURN-type EQ 'A'.
            move: GT_RETURN to gl_return.
            exit.
          endif.
        endloop.
        if gl_return is initial.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
          WAIT   = '1'
            IMPORTING
              RETURN = gt_return_commit.
        endif.

    Hi,
    Check this code...For creating billing document from sales order..
    TABLES: vbak.
    PARAMETERS: p_vbeln LIKE vbak-vbeln OBLIGATORY,
                p_fkart LIKE vbrk-fkart.
    DATA:
    s_vbsk LIKE  vbsk.
    DATA:
    xkomfk     LIKE     komfk    OCCURS 0 WITH HEADER LINE,
    xkomv     LIKE     komv     OCCURS 0 WITH HEADER LINE,
    xthead     LIKE     theadvb  OCCURS 0 WITH HEADER LINE,
    xvbfs     LIKE     vbfs     OCCURS 0 WITH HEADER LINE,
    xvbpa     LIKE     vbpavb   OCCURS 0 WITH HEADER LINE,
    xvbrk     LIKE     vbrkvb   OCCURS 0 WITH HEADER LINE,
    xvbrp     LIKE     vbrpvb   OCCURS 0 WITH HEADER LINE,
    xvbss     LIKE     vbss     OCCURS 0 WITH HEADER LINE.
    SELECT SINGLE * FROM vbak
           WHERE vbeln = p_vbeln.
    IF sy-subrc <> 0.
      MESSAGE s208(00) WITH 'Invalid vbeln'.
      LEAVE LIST-PROCESSING.
    ENDIF.
    CALL FUNCTION 'RV_INVOICE_REFRESH'
         EXPORTING
              with_posting = 'B'
         TABLES
              xkomfk       = xkomfk
              xkomv        = xkomv
              xthead       = xthead
              xvbfs        = xvbfs
              xvbpa        = xvbpa
              xvbrk        = xvbrk
              xvbrp        = xvbrp
              xvbss        = xvbss.
    DATA: BEGIN OF t_vbap OCCURS 0,
            vbeln TYPE vbeln,
            posnr TYPE posnr,
          END OF t_vbap.
    SELECT vbeln posnr INTO TABLE t_vbap
           FROM vbap WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    Fill the values.
      xkomfk-mandt  = sy-mandt.
      xkomfk-vbeln  = p_vbeln.
      xkomfk-posnr  = t_vbap-posnr.
      xkomfk-vbtyp  = vbak-vbtyp.
      xkomfk-seldat = sy-datum.
      xkomfk-fkart  = p_fkart.
      xkomfk-fkimg  = '1.000'.
      xkomfk-vrkme  = 'EA'.
      APPEND xkomfk.
    ENDLOOP.
    CALL FUNCTION 'RV_INVOICE_CREATE'
         EXPORTING
              vbsk_i       = s_vbsk
              with_posting = 'B'
         IMPORTING
              vbsk_e       = s_vbsk
         TABLES
              xkomfk       = xkomfk
              xkomv        = xkomv
              xthead       = xthead
              xvbfs        = xvbfs
              xvbpa        = xvbpa
              xvbrk        = xvbrk
              xvbrp        = xvbrp
              xvbss        = xvbss.
    READ TABLE xvbfs WITH KEY msgty = 'S'.
    WRITE:/ sy-subrc.
    WRITE:/ xvbfs-msgv1,xvbfs-msgv2,xvbfs-msgv3.
    Thanks,
    Naren

Maybe you are looking for

  • Iphoto/ app store Help!!!

    Alight, I'm not good at explaining things so bare with me. About a year ago, my uncle who works at apple updated our family computer (or so he told my parents that he did). Anyhow, I got my own computer so the family computer was not of use to me. We

  • How to automate an oracle 8i database startup

    I have an Oracle 8i database with the SID = MUKREC and installed on C:\ Whenever the computer is restarted, the database doesnot startup automatically But has to be started manually. What could be the cause of this issue and how can I resolve it. So

  • A easy and simple database change?

    Hi folks: I have a easy and simple question (I guess) that I need to resolve a database problem. I installed a 9.2.0.1 database but I setting up the wrong character set. Now I need to change the character set to AL32UTF8 but I really don't know how.

  • Infopackage disabled with Backgroung job run

    Hello experts I had problem in executing the infopackage in back ground mode also for the previous load of the saem infopackage when iam checking the Process overview of the request it is showing Errors occured. Is there any way to repair the the inf

  • How to delete the licencenumber of photoshop elements registered on a computer?

    How can I delete the licencenumber of photoshop elements 10 from my computer?