Item split (into 2 lines) in billing document from one delivery (VF01)

Hi,
I need to split one item of one delivery into 2 items of billing (via VF01). Example:
- I have a delivery 80941805 that has only one line with item material XXX and quantity 1000
- I wish to create a billing document (from the delivery above) with 2 lines with the item XXX. First line with quantity 600, second line with quantity 400 (both the same material XXX). This is necessary due to different taxes in each line, one with taxes, other without taxes (different tax codes).
It´s possible via some standard function or user-exit ?
Best regards,
Leandro Mengue

Hi,
***This is under development !!! Only for tests purposes!!! ***
Actually I working on a example routine where I split the itens in two lines (each line) with the half of original quantity each one.
include LV60AB01:
ENHANCEMENT-POINT XVBUK_XVBUP_XVBFA_AUFBAUEN_01 SPOTS ES_SAPLV60A.
ENHANCEMENT 281  ZFATURAFIM.
data: wx_lips like alips occurs 0 with header line.
append lines of alips to wx_lips.
loop at wx_lips.
  wx_lips-J_1BCFOP(1) = '7'.
  wx_lips-sortfeld+5(1) = '1'.
  modify wx_lips.
endloop.
append lines of wx_lips to alips.
loop at alips.
  alips-lfimg = alips-lfimg / 2.
  alips-lgmng = alips-lgmng / 2.
  alips-ntgew = alips-ntgew / 2.
  alips-brgew = alips-brgew / 2.
  alips-volum = alips-volum / 2.
  modify alips.
endloop.
ENDENHANCEMENT.
Include LV60AA22: (to be possible process the same line item two times)...
ENHANCEMENT-POINT FAKTURA_LIEFERBEZOGEN_01 SPOTS ES_SAPLV60A.
ENHANCEMENT 282  ZFATURAFIM.
   read table xvbup with key vbeln = lips-vbeln
                          posnr = lips-posnr.
   xvbup-fksta = 'A'.
   modify xvbup index sy-tabix.
ENDENHANCEMENT.
Contributions and comments will be apreciated !!!
Best regards,
Leandro Mengue

Similar Messages

  • Hi , I am not able to create billing document from the delivery document .

    Hi,
    I am facing one problem i am trying to create billing document from delivery document but it is giving error " Payer" and Sold to party not found ".
    in my Delivery Document field partner tab is showing only ship to party it should show payer and sold to party also .
    Although it is maintained in customer AG.
    can any one help in this ????
    thanks !!!!!!!!!!

    Hi Payal,
    1.u check whether u have maintained[entering actual number] payer and bill to party in sales order[ which is copied from customer master].
    2.and check partner determination procedure for delivery document.
    more important is u wouldnot have maintained partner determination procedure for delivery header.[spro->sales and distribution->basic function->partner determination->partner determination for delivery]
    Regards
    Sharad

  • Two billing document from same delivery.

    Hi Experts,
    Can any one suggest solution for below scenerio.
    We have created one billig document againest delivery, also do release to accounting.
    Again system is allowing to create billing documet for same delivery with same quantities.
    We have checked all the possible rasons i.e. copy control from del. to billing & sap notes but did't get solution.
    Item category -TAN
    Billing quantity     B
    Pos./neg. quantity   +
    Pricing type         C
    Now Please suggest how to prevent system not to allow duplicate billing documents.
    Thanks in advance.
    Reagrds,
    Dharminder dalal

    Hi,
    As I understand this is happening only with  that particular delivery and I I suspect that the delivery status  is still open and hence it is allowing to raise billing document .If it is correct there is a work around solution.Goto T Code VL_COMPLETE and enter the delivery number and date and execute.
    Then delivery status will be changed to complete and system will not allow to raise another billing document.Also cancel all the other duplicate billing documents.
    If it is happening to all the deliveries then it could be a configuration problem.Follow the advices which are alraedy given and update the forum.
    Regards,
    Phani Prasad.
    Edited by: phani.prasad on Nov 2, 2011 2:39 PM

  • Issue in the Billing Document from the Delivery.

    Hi Experts,
    I have an issue with date of the bill document. The date is taken from the date when the delivery was posted however the users want to change this date to the day that the bill document was created.
    I don´t know where I can change this.
    Thank you and best regards.
    Thank you and best regards.

    Hi,
    While creating Billing Doc (T. Code: VF01), Mention "Billing date" as desired.
    If you leave this field as blank, System will create Billing doc based upon Delivery date.
    However, there is one more date ("Created on" in Header Data), where System records Document date as the date on which Billing Doc has been created.
    Best Regards,
    Amit
    Note: If want to make changes in Billing date for already created Billing Docs.
    Go to: VF02
    Key-in your Billing Doc. No. and Go to Header Data (Edit --> Header --> Header).
    There you will find Field: "Billing Date", which would be modifiable. Change the date as desired.
    Imp: on the same screen, You may see the details like:
    1. Payer
    2. Created By:
    3. Created on:
    4. Time

  • Billing document from Delivery without Sales order creation

    Hi,
    I want to know that is it possible to create a billing document from a delivery document but without a sales document?
    If yes what settings can be done in the system to achieve it?

    Hi,
    Yes. It is possible.
    Delivery type LO is delivery without reference.(No preceding document required to create delivery)
    Go to T-code VTFL. Select delivery type  LO as source doc and target doc. would be your billing type. Go to item level.
    Maintain copying requirement - 019.
    Billing quantity- B
    Pricing type -  B
    Pos/Neg quantity - + sign
    thanks,
    Vrajesh

  • Can we create multiple billing document from delivery with single line item

    can we create multiple billing document from delivery with single line item

    Hi
    Please check the link
    [can v create multiple billing document from delivery with single line item]
    and as Lakshmi said, check the forum before posting an issue.
    Regards
    AA

  • Can v create multiple billing document from delivery with single line item

    can v create multiple billing document from delivery with single line item

    Dear Sandesh
    Go to VOV7, select your item category.  In this maintain K  for Billing Relevance
    Now go to VF01, give the delivery number and do not press Enter.  Instead click on Selection list on the next screen, select the items you want to bill and click copy and continue if necessary
    thanks
    G. Lakshmipathi

  • Create Billing Document from Sales Order (Without Delivery)

    Dear Experts,
    Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
    But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
    So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type  to meet above requirement.
    Thanks in advance.
    Best Regards.
    Ripon

    Hi
    There are two most important configuration:-
    1) In VOV8 for your Order Type maintain the Order Related Billing Document
    2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
    Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
    Regards
    Amitesh Anand
    Edited by: Amitesh Anand on May 24, 2010 5:09 PM

  • View CRM billing document from FB03 - Accounting document

    I am working with a client who creates some orders in R3 and now some in CRM.
    The orders are billed in their respective system.
    The CRM billing is then transfered via BDOC's into R3 which create an accounting document.
    However, in the environment tab, there is no original document.
    Does anyone know if you can access via some form of document flow or function module call from R3 to go direct to the CRM billing document?

    Hi Mark
    I noticed that your Forum has now been answered.  Could you please share how you resolved the issue of displaying a CRM billing document from FB03 as an "original document".
    Many thanks,
    Verity
    Edited by: Verity Watts on Aug 3, 2010 9:32 PM

  • Prevent billing document from going to COPA

    Hello,
    I have a requirement to prevent a certain billing document from going to COPA. I created a new pricing condition, assigned an account key and linked this account key to a GL account. This enabled the condition value to be transferred to the GL account. In order to prevent the condition value from going to COPA, I did not assign this condition type to a COPA value field (transaction KE4I).
    However, I notice that the bllling document is going to COPA but no condition values are getting transferred. Is it possible to prevent such billing documents from going to COPA entirely (as they would unecessarily create a profitability segment)?
    P.S: This billing document was created with reference to a delivery of type LO (delivery without order reference) as we do not have the need for a sales order in this scenario.
    Thanks,
    Rugmani

    Hi
    First of all, I would like to ask you why you would not like to take this in COPA. When a revenue value is posted in GL account and you dont take a posting in COPA, it would imbalance your FI and COPA profitability...
    However, if you have rationally analysed your requirement and you would like to do it anyway, then here is the solution
    Use Exit COPA0005 and apply the following code..
    (This code is sample, based on blocking COPA doc where distribution channel = 45 and Ref Org Unit = CRMB).. You need to write your code in a way that it does not stop creating the COPA doc in other cases where it is required....
    Do thorough testing once you have this code..
    *&  Include           ZXKKEU07
    data : wa_ACCIT type ACCIT.
    if I_ERKRS = 'XXXX'. (Your Op Concern Code)
      read table T_ACCIT into wa_accit with key VTWEG = '45' AWORG = 'CRMB'.
      if sy-subrc = 0.
        E_INIT = 'X'.
      endif.
    endif.
    Regards
    Ajay M

  • Default value of condition in billing document from sales oeder

    Hi Everyone,
    What setting is required to get default value of condition in billing document from sales oeder
    Because when I am creating the billing document default condition value is not coming from sales order thats why once again I have to maintain the condition valu at the time of billing.
    I am using the same item category for two two order type,But in order type I am getting the default value but in other type I am not getting the default value in billing document
    Regards
    Prabudh

    Hi Prabudh,
    I understand you creat two order with different order type like "OR and "ASOR" for example and kept the item categary same as "TAN" in both and gone for billing say in "F2" and you are facing problem that when you do billing of OR in F2 pricing is picking the MANUAL condition value from order. but the same is not being picked if you process order ASOR in F2.
    for this the problem is with copy control.
    you can go to transaction code VTFA- copy control from order to billing.
    in this you choose your billing type and sales order type by using position.
    then on left side click on ITEM and choose your item category and and then on top chose DETAIL button or you can press CNTRLSHIFTF2 from keyboard.
    a screen will open in that you will find the pricing type. make it as <b>"C"</b>.
    Hope this solves your purpose.
    Award points if satisfied.
    regards/ashu

  • Creation of Multiple billing documents from a Single sales order

    Hi Experts,
    How can we create many billing documents from a Single sales order.
    Will it be possible we create a Sales order with bigger quantity and then keep on creating partial billing documents based on the billing quantities and dates.
    Request you all for a solution.
    Thanks
    Montee

    Hi ,
    1. If Qty is one number - based on value of the order - it is possible to create different billing doc.'s based on billing date and value using billing plan , again these are periodic billing or milestone billing
    2. Using Contract process- create material /qty contract- release partial qty  by creating release document and create billing document w.r.t to contract or release document (sales order)
    thanks
    Chidambaram

  • Cannot create billing document from sales document

    Hi,
    i am trying to create billing document from the created sales document.
    But the billing document is not generated. I was getting  the error - ' Document is blocked from billing'.
    SO, i changed the billing block and left it blank, and when  I tried to create the document again, I got another error " Create billing document" not allowed (uSER STATUS   ST01, Object VB006000071200000).
    Please help me out,

    Dear Priyam,
    Attached are the screen shots, go through them.
    I believe you need to change the status in the Sales order status(Object status).
    click on Object status
    Regards
    Shaik

  • Extract & Store pdf SD billing document from archivelink content Repository

    Hello friends,
    Can some one give me a hint on this :
    I have a requirement to create a program which will extract the pdf SD billing document from archivelink content Repository and will save pdf files on application servers's directory.
    We have business Object, Content Repository ID, Document type know for this.
    thanks
    ashish

    use FM : ARCHIVOBJECT_GET_TABLE to get the content in bin format..
    then use open dataset, transfer dataset, close dataset to store that in OS level.. task done..
    you can even use GUI_DOWNLOAD if you want to download it to presentation server.

  • Changing billing document date while creating billing document from vf01

    Hi gurus,
    I have requirement to change billing doc date while creating billing document from VF01.
    here I have to consider goods issue date eq billing date.
    caluculating billing date = Goods Issue + Goods in Transit duration time.
    I have done everu thing but I cant update the caluculated date, iam using the following enhancement
    Enhancement:SDVFX001
    Function Module:EXIT_SAPLV60B_001
    Include:ZXVVFU01 which are part vf01.
    here iam sending the calculated date to VBRK-FKDAT
    move cal_date to vbrk-fkdat.
    need help how to update the calculated date to VBRK-fkdat i.e billing document date
    Regards
    Bhaskar

    Hi
    No! That exit is not good for your issue
    U can use the user-exit USEREXIT_NUMBER_RANGE_INV_DATE  defined in RV60AFZC
    Max

Maybe you are looking for