Problem in Invoice creation

Hi All,
I am facing problem while creating Invoice Pro Forma Ind D_ZXEP.
please look below to find out the process i am following.
First i create a VMI Consign using transaction VA01 for a line item
After that i create delivery using transcation VL01 and complete the PICKING
REQUEST for corresponding line item Ex 10 and its component  ex 90001
and GOODS MOVEMENT and COnsignment fill up.
No i create invoice using transaction VF01.
When i press save its create two invoice, first for item 10 with qty 0 and second for line item component 90001 for the given qty.
But it should create one Pro Forma Ind D_ZXEP.
Please help me to know to solution for the above problem.
Thanks
Piyush Mathur

Piyush, this doesn't look like an ABAP issue to me, you might want to post your questions in the SD functional area forum to get a better response.
All I can suggest as a developer is to look at the VOFM routines (VOFM transaction) for the Data Transfer -> Billing Documents. See routines 1 and 7 and check if you have any custom routines for invoice split.
Also once we had an unwanted invoice split and I had to debug the transaction. According to my old notes, the crucial place was in the include LV60AA29, at perform xvbpap_identisch. You might want to put a breakpoint there and debug your VF01.

Similar Messages

  • Excise Invoice creation error -Billing document does not exists

    Dear Experts,
    I have created supplementary sales order, billing with refernece through sales order by VF01.
    Now I want to create Excise Invoice but system gives error Billing Document does not exists
    I have checked billing document in VBRK table & it is showing in table.
    My item categroy is L2N -and set it to C
    I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
    Pl. guide me.
    Thanks
    Trupti

    Resolved my problem.
    Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
    outbound delivery.
    So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
    Thanks to all.
    Trupti.

  • Excise invoice creation incase of price increase

    Dear all,
    I am facing a problem in case supplementary billing scenario at my client's place.
    Some times price of the material increases and that price will be effected from past date.Then a supplementary excise is created with values consisting of
    Differential value + 16% excise on differential price + 2 % Ecess + 1%Hecess + sales tax against all the effected invoices previously created.
    " Differential value = (New Price - Old Price)*(total invoiced quantity of the material from effected date to till now ) "
    How can i create excise invoice in sap for this case, where there would be no goods movement..
    With the help of my abaper i can create debitmemo with this pricing structure with some modifications in program for VFRB - Retro-Billing by individual invoice wise.
    But my client is asking for excise invoice creation for this scenario but not debit memo.
    Pls guide me the way to do this scenario.
    Thanks in advance
    Kartheek N

    Hi,
    We also have same scenario and we done work around for this solution.
    Suppose i have
    Base Price 1000
    ED              160
    ECESS         32
    SECC            16
    Based on the above we made Billing document VF01 and Excise Invoice through J1IIN.  After sending the material there is price change and you require to raise suplementary invoice for the same, in that wat you required to do is
    1. Create Sales Order with referene to main billing document
    2. Create Billing document with refernce to sales order and note that the Billing category is M becasue as per standard SAP billing category M and U are only relevent for Exicse Invoice cration.
    Through the above you can rraise the invoice.
    If it helps provide rewards
    Rgds
    Gautam

  • Internal Error -2038 Invoice Creation

    ¡Hi! Help!
    I explain my problem
    I've created a vb.net 2005 application. Through DI API (SBO 2005 SP 01, patch level 20).
    This application, windows forms run, it opens an SBO conection and  starts a timer. Every 5 secconds the timer ticks, it
    searches for custom xml files containing info needed to create/update Invoices, or Sales Orders. Whenever I find files to
    process, the timer stops, documents are processed one after another and then timer continue ticking. I use one Company and
    one conection open since the moment the program starts and it remains opened the whole day.
    There are two servers. SAP Server, and there's another server (in this server runs my application, here I have just my app
    and DI API so it connects to SAP Server) both on same Domain.
    Database size is 50 GB, and it grows about 90 - 100 MB every day
    The amount of invoices created is about 500/600 daily.
    Problem is many times invoices creation are unsuccesfull due to one of the following errors:
    OINV.Series , 'Internal error (-2038) occurred'  or just OINV.Series , 'Internal error (-2038) occurred'
    this makes more difficult to figure out the reason why this happen and moreover how to solve it, because as some or many of
    you may know, internal error is not much explict and the causes for this error are very different.
    Now, I'm certain Invoice series are OK because the same Invoice creation that fails in one moment, simply is succesfully
    created after 2, 3 or even 5 or 6 tries!.
    Errors increase a lot at evening, when intensive use of SBO database is taking place. However these errors use to happen
    even  at morning when few Invoices are created, I mean, not necessarily happen at intensive use.
    Invoices are not that large. The biggest are about 10 - 12 lines.
    This situation is frustrating both for my customer and myself
    Has anyone experienced something similar? is this something about sbo db performance? does anyone knows if there's some kind
    of document about Internal error?

    Hi Marcel,
    I think the first thing I'd check is for deadlocks on the database. Earlier patches of SBO 2005A SP1 are known to have issues in this area (see SAP note 1113543 for an example). It would certainly fit the symptoms you are getting (ie the same document can be created without errors at a different time).
    Kind Regards,
    Owen

  • Multiple Invoice Creation

    Hi All,
    I want to create Multiple Invoice Creation through BAPI or FM. For this invoice PO is the Reference.
    As per requirement i have multiple PO in container, at one shot i want to create invoice realted PO as the reference.
    Thanks
    Amit

    hi,
    I am trying in another way - creating one proforma invoice for multiple deliveries. and with that proforma invoice trying to create excise invoice.
    But i am facing problem in creating proforma with multiple deliveries because of DIFFERENT NUMBER RANGE IN HEADER (delivery)AT FOREIGN TRADE --- UNDER ORGANIZATION --- NUMBER OF FOREIGN TRADE DATA - ( which is internally assigned by the system)
    If i can get where this number is assign my problem is solved
    K.S.Rao

  • Trigger workflow for MIRO invoice creation

    Hello,
    In standard functionning it is not possible to trigger the workflow for documents coming from MM.
    When using transaction MIRO and selecting invoice creation the created document has following value :
    BKPF-AWTYP = 'RMRP'. whereas creating it from FB60 results to BKPF-AWTYP = 'BKPF'.
    The problem is standard code checks AWTYP is not equal to 'RMRP' before creating event to start the standard workflow for invoice validation.
    Question : why sap doesn't allow workflow creation for invoices from MIRO?
    Thanks for your answers.
    Best regards,
    Laurent.

    Hi,
    here they are...
    WS20000397 MMIVBlockedP Treatment of inv. blkd for price, Log.IV
    WS20001004 MMIVToRel Release the Completed Log. IV Document
    WS00400026 MMIVquantity Treatment inv.blocked f.quantity reasons
    WS20001003 MMIVToCompl Complete the Parked Log. IV Document
    WS00400027 MMIVprice Treatment invoic.blocked f.price reasons
    All of these workflows are a one-step / one-level of approval and needs some workflow configuration at least for the agent assignments. For a full-blown workflow you should take these workflows as an example, how you could work with it.
    The last two workflows work with preliminary posting on the miro (transaction MIR7).
    Best regards,
    Florin

  • Wrong payment term during invoice creation

    Hi All,
    when i created sales order with one line item then it is creating two entries in VBKD table with POSNR = '0000' with payment term ZTERM = 'ZI15'  and POSNR = '1000'  with payment term ZTERM = 'Z223',  but problem is that when going to create Invoice it is picking wrong payment terms Z223 while it shud be ZI15. can anyone please help me to know why it is creating 2 entries in VBKD and why it is taking wrong invoice during Invoice creation.
    Saurabh

    HI,
    Please review SAP note 38934 which may help to explain this issue.
    If you do not have VBKD data for a particular line item, it is the same
    as the header (vbkd-posnr = 000000). This is standard behaviour.
    so if you have a vbkd line item, that simply means some part of the business data is different to the header
    and that's why the line item for VBKD was created (in this case a different payment terms has been entered for the line item)
    For the second part of the issue, please start at trx VTFA and check the copy control (especially at line item level).
    kind regards
    Paul Q

  • Duplicate Invoice Creation MIRO

    Hi All,
                 Our client has an special requirement. Currently we have an issue with duplicate invoice creation with MIRO transaction. The 'Check doub inv' check box in the vendor master data is already checked. For MM, there are three configurable check boxes i.e. T-Code OMRDC (Co.Cd, Ref. No. and Check Inv. Date.). Per our system configuration, we have the first two boxes checked and the 'Check Inv. Date' unchecked. The Ref. No. field is used to capture the invoice number. This way, if a vendor invoice has already been entered, when trying to enter another vendor invoice with same invoice number, amount, currency, company code and vendor number, irrespective of the date, the system displays a message as "Check if the invoice has already been entered...". As per our requirement, the client basically wants to distinguish between the two invoices purely based on Invoice Number (Reference Number-XBLNR). That is if an invoice has already been entered with a 'Reference Number = 123' for example, the user should not be able to post another invoice with same 'Reference Number = 123', for same vendor, same company code, irrespective of the invoice date and invoice amount. I really appreciate if someone could help me ASAP.
    Thank you,
    Jitesh

    Dear
    Please set the following in MM Logistics Invoice Config so that when MIRO/MIR7 is done twice then qty of MIGO  exceeds then you get an error message.
    T.Code : OMRM
    Material Management>Logistics Invoice Verification>Define Attribute of System Messages
    In the above node keep message number 504 Quantity invoiced greater than goods receipt quantity and keep online and batch as error and standard as W.
    Hope this solves your problem.
    Regards

  • Purchase Order and Invoice creation

    Hi All,
    I am having some fields related to Purchase order and Invoice creation, i have to find out the tables to which tables these fields belongs to.
    Below are the Header fields:
    Wrbtr  Tcode - MIRO,
    Lfsnr   Tcode - MIGO,
    Evertn Tcode - Me32k,
    Kbetr  Tcode - Me32k,
    Kschl  Tcode - Mek1,
    Selkz  Tcode - Mek1,
    Werks Tcode - Mek1,
    Evart   Tcode - Me31k,
    Frgco  Tcode - Me35k,
    Sddat  Tcode - Me35k,
    Below are the Detail fields:
    Kbetr   Tcode - Mek1,
    Konwa Tcode - Mek1,
    Lgobe  Tcode - Me21n,
    Planloc Tcode - Me31k,
    Datab   Tcode - Mek1,
    Datbi    Tcode - Mek1,
    Fromdate  Tcode - Me31k,
    Todate      Tcode - Me31k,
    i have to retrive all these fields from tables, so plz anybody give me exact tables to use in the select quries to retrive these fields.
    Thanks in advance,
    Balu.

    Hi,
    U can get the req fields as follows:
    Below are the Header fields:
    1)Wrbtr Tcode - MIRO- table rseg ,field-wrbtr
    give belnr (invoice no ) & BUZEI(item)  if known, else, give ebeln,ebelp.
    2)Lfsnr Tcode - MIGO,-table mkpf,give mblnr (mat doc no ) & ZEILE(item) field-xblnr  or give ebeln,ebelp
    3)Kbetr Tcode - Me32k,
    table:konp or konv.
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH  in 1 of the tables- konp or konv,wil get kbetr.
    4)Kschl Tcode - Mek1,
    Pass ebeln,ebelp to table ekpo, get mwskx(taxcode), u will get condition type kschl from FM -FI_TAX_GET_CONDITION_TYPES.
    or
    table:konh or konp or konv.
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV   as KNUMH in 1 of the tables-konh or konp or konv, wil get kschl.
    5)Werks Tcode - Mek1,-table-ekpo, field-werks(give ebeln,ebelp)
    Below are the Detail fields:
    1)Kbetr Tcode - Mek1,
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get kbetr.
    2)Konwa Tcode - Mek1,
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get konwa.
    3)Lgobe Tcode - Me21n,give ebeln.ebelp in table ekpo, get lgort.pass lgort to table t001l, u wil get lgobe.
    4)Datab Tcode - Mek1,table-konh,field datab
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH  in - konh ,wil get datab.
    5)Datbi Tcode - Mek1,table-konh,field databi
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in  table- konh,wil get databi.
    Hope its useful to u.

  • Error while excise invoice creation thru J1IJ

    Dear All,
    Scenario: Stock transfer from Excise depo to other plant.
    Problem :
    Excise Invoice is not getting Generate in Transation J1IJ. i am getting following error
    "Excise invoice selection not complete for the item 000010"
    Also Please tell me the process , (STPO > Delivery > Invoice > Excise Invoice) is it correct ?
    Thanks in advance
    Vishal

    Hi ,
    The process as below
    1.Create STO ---Me21n
    2.Delivery with reference to STO ---Vl10B/VL10D
    3.Invoice proforma with reference to delivery--Vf01
    4.Excise invoicewith reference to Proforma---J1iJ
    Kindly check the excise duty is coming in the proforma invoice
    Regards
    Damu

  • How to restrict accounting doc generation while excise invoice creation

    Hi,
    i have to restrict accounting document generation while excise invoice creation through J1IIN.
    i can't use statistical in my pricing proceedure since this is excise group and plant specific requirement.
    same priicing proceedure is being used across all other excise groups and plants.
    requirement is that one plant is having excemption from duties. my client wants excise duties to be calculated but should not be posted to accounting for that excise group.
    can you suggest me how to map this scenario.
    Thaks in advance.
    Regards
    Satya

    Hi
    If it's a Deemed Export scenario  then you can map this as a standard process.
    Click the utilization button in the left corner, this will give you a next screen , Now here there is a pencil button .
    Now click over this - this will change the color of the description and activate it. Now here if you select Deemed and save the document - There will NOT be any accounting entries for the excise document .
    Try this , hopefully this will help you.
    Thanks
    RB

  • Accounting entries at billing and excise invoice creation in J1IIN

    Hello Guruz
    I need to know the accouning entries at the time of billing and the excise invoice creation in J!IIN.
    Thanks in advance.
    Regards.

    Hi
    At the time of Billing Customer a/c will get debited and Sales revenues a/c will get credited.
    At the time of Excise Invoice Excise paid a/c will get debited and all excise duties (Cess, Basic,S cess ) will get credited.
    Hope this will helps you..

  • Automatic excise invoice creation in STO scenario

    Hi All,
    This is related to stock transfer from Depot to manufacturing plant.
    I have done the replenishment delivery at Depot. Now my requirement is automatic excise invoice creation. For that i have done the required settings like excise and series group. I have checked the Creation EI option in exciser group also.
    PO(ME21n) --> VL10B --> VL02N --> VF01 (JEX) --> Automatic excise invoice once save the billing.
    Once  i sqve the billing, it has to create excise invoice at Depot. It is not happining.
    Please let me know if i have to do any more settings.
    Regards
    Lakshmikanth

    Dear Lakki,
    Please check, whether for Defined Excise Group:
    Path: SPRO --> IMG --> Logistics General --> Tax on Goods Movement --> India --> Basic Settings --> Maintain Excise Group
    Select your Excise Group and Mark the Boxes: Create EI, and Box: Depot EIs.
    Have you maintained relevant setings, like:
    --> Had you checked the Box: Excise Inv during Billing, under Tab: Outgoing Excise Invoice
    --> Relevant checks for Depot Settings, under Tab: Depot Settings
    Best Regards,
    Amit

  • PO creation Date and Invoice creation Date

    Hi,
    Can any one help me regarding which table I can look for PO creation date and Invoice creation date. I require these fields for my reporting requirement.
    Thanks in advance,
    Arvind.

    Thanks for your response Bala.
    I got the Table which I require. I have one more question on this.
    Can you tell me Invoice Creation Date is RBKP-BLDAT(Document Date in Document) or RBKP-BUDAT(Posting Date in the Document) and PO creation Date is EKKO-AEDAT(Date on which the record was created) or EKKO-BEDAT(Document Date in Document).
    Points already rewarded.

  • How to Check product warranty in CRM based on R/3 invoice creation date

    Dear all,
    As per our client business process, for a sales product warranty starts once after creation of Invoice in ECC system. in that case, how to perform warranty check in CRM Complaints based on ECC Invoice creation date.
    Please suggest me the standard SAP solution for this. Your help will be highly appreciated
    Regards
    Raghu ram
    Edited by: Raghu Ram on Jan 11, 2010 7:24 AM

    Hi Raghu,
    This is pure development. But it is possible.
    You need to use a function module to create warranty contract in CRM against to ECC invoice with the following prerequisites
    1. Same SLA should be available in both ECC and CRM (In ECC there is no SLA concept, in that case u need to maintain SLA as text component in delivery/sales order or any Z transaction document, the same can be pulled into CRM warranty contract)
    2. All the products sold in ECC should be having serial number during delivery process. Then the combination of product and serial number will be created an equipment master in ECC. This equipment master should be replicated to CRM as and when it is created in ECC.
    3. The partners in equipment master should be same as in invoice or sales order document in ECC
    4.  Addiitionally, all the products in the ECC invoice to be replaced as service material with SCN item category (We used this logic), so you can use any other logic to get service line item. You can use any common service material also as line item.
    5. Male the status profile settings to release the contract once it is created and saved in CRM
    6. In the complaint or service request document, set the contract determination as Unique number (I think "D")
    As standard, You can create wrranty contract and assign warranty master as and when ECC invoice is created by manual method.
    Hope this development logic will be useful.
    Regards,
    Ram.

Maybe you are looking for