Invoice Creation

Hi all,
Can any one tell me all the steps to create an Invoice?
I just want to create some dummy Invoices, which are used for testing purpose.
Thx for the Help...
Regards
JDev.....

Hi,
Payables Manager
Enter Supplier and Supplier Site
Enter Invoice Batch (If your system is configured for mandatory batching)
Enter Invoice and Distributions
Validate
Approve (if configured)
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/

Similar Messages

  • 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.

  • 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

  • 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

  • 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

  • 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.

  • User Exits for Invoice creation ,cancellation and sales return

    Hi Gurus,
    Pl help me it's very urgent.
    I did not find any user exit invoice creation so i wrote the following code in include program
    MV60AF0B_BELEG_SICHERN.
    This code is to update the Z*table while saving invoice ,cancellation and sales return.
    The code modification is like below
          FORM BELEG_SICHERN                                            *
          Buchen Fakturabelege                                          *
    FORM BELEG_SICHERN.
      READ TABLE XVBRK INDEX 1.
      IF SY-SUBRC NE 0.
        CALL FUNCTION 'DEQUEUE_ALL'.
        MESSAGE S032.
        EXIT.
      ENDIF.
      IF SAMH_MOD = ON.
        EXPORT XKOMFK TO MEMORY ID 'SDBILLDL'.
      ENDIF.
      DATA: CALC_TYPE.
      IF REBATE_DETERMINED = 'Y'.
        CALC_TYPE = 'A'.
      ELSE.
        CALC_TYPE = 'I'.
      ENDIF.
    *{   INSERT         RD1K903017                                        1
    Work Area*********************
    data : wa_xvbrk type VBRKVB.
    data : wa_xvbrp type vbrpvb.
    data : wa_zmigo type zmigo.
    data : wa_vbrp type vbrp.
    Internal table Creation*******
    DATA:  BEGIN OF tab_XVBRP OCCURS 100.
             INCLUDE STRUCTURE VBRPVB.
    DATA:  END OF tab_XVBRP.
    data : begin of tab_vbeln occurs 10,
           vbeln type vbrk-vbeln,
           knumv type vbrk-knumv,
           end of tab_vbeln.
    data : tab_zmigo type table of zmigo.
    data : tab_vbrp type table of vbrp.
    *****Data declaration*************
    data : v_no_of_inv type i.
    data : v_vbeln_no(10) type n.
    data : v_last_inv_no(10) type n.
    data : v_first_inv_no(10) type c.
    data : v_tot_qty type i.
    data : v_frbnr type mkpf-frbnr.
    *******Ranges*********************
    ranges : r_vbeln for vbrk-vbeln.
    *****Populating IT****************
    tab_xvbrp[] = xvbrp[].
    describe table xvbrk lines v_no_of_inv.
    *}   INSERT
      CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD'
           EXPORTING
                VBSK_I           = VBSK
                WITH_POSTING     = 'A'
                PREISFINDUNGSART = CALC_TYPE
           IMPORTING
                VBSK_E           = VBSK
           TABLES
                XKOMFK           = XKOMFK
                XTHEAD           = XTHEAD
                XVBFS            = XVBFS
                XVBSS            = XVBSS
                XVBRK            = XVBRK
                XVBRP            = XVBRP
                XVBPA            = XVBPA
                XKOMV            = XKOMV.
    *{   INSERT         RD1K903017                                        2
    data : v_count type i,v_fkimg type i .
    data : v_no_of_records(10) type n.
    wa_xvbrk = xvbrk.
    ********Selecting the last rec no from ZMIGO
          select max( sr_no ) from zmigo into v_no_of_records.
    *****If Distribution channel is not ZB*********
    if  wa_xvbrk-vtweg ne 'ZB' and ( wa_xvbrk-fkart = 'ZRIN' or wa_xvbrk-fkart = 'ZRTE' ).
    if v_no_of_inv = 1.              " Process only when there is one invoice
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = wa_xvbrk-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = wa_xvbrk-vbeln.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    endloop.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    clear v_no_of_inv.
    else.                              "When there are Split Invoices
    v_last_inv_no = wa_xvbrk-vbeln.
    v_vbeln_no = v_last_inv_no - v_no_of_inv + 1.
    v_first_inv_no = v_vbeln_no.
    sort tab_xvbrp by vbeln.
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = v_vbeln_no.                      "wa_vbrp-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = v_vbeln_no.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    at end of vbeln.
    v_vbeln_no = v_vbeln_no + 1.
    endat.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    endloop.
    endif.                             "End of first 2nd IF.
    clear : v_no_of_inv, v_vbeln_no.
    endif.
    ****************Sales return************************************
    if  wa_xvbrk-fkart = 'ZRRE' and wa_xvbrk-vtweg ne 'ZB'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                wa_zmigo-mtype = '651'.
                condense wa_xvbrk-xblnr.
                wa_zmigo-reference = wa_xvbrk-xblnr.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg, v_frbnr.
    endloop.
    endif.
    *******Invoice Cancellation*****************************
    if  wa_xvbrk-fkart = 'ZRS1' and wa_xvbrk-vtweg ne 'ZB'.
    delete tab_xvbrp[] where shkzg eq 'X'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                condense wa_xvbrk-zuonr.
                wa_zmigo-reference = wa_xvbrk-zuonr.
                wa_zmigo-mtype = '602'.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg.
    endloop.
    endif.
    clear : v_no_of_records.
    *}   INSERT
      CALL FUNCTION 'STACK_RESET'.
      R185D-DATALOSS = SPACE.
      FOLGEAUFRUF102 = SPACE.
      PERFORM SETPAR_INIT.
    *{   INSERT         RD1K903017                                        3
    *}   INSERT
      LEAVE.
    ENDFORM.
    This program is working fine for single user but in production where no of people are creating the invoices from different places the data is not getting updated in table ZMIGO.
    sometime populating with wrong data , partial data and sometimes no updation at all.
    I have used the table locking system enqueue and dequeue FM's before n after updation but still the same
    thing is happening.
    What could be the reason.
    Looking for help very urgent any other alternate option.

    Hi,
    Go thru these..
    Enhancement
    SDVFX009 Billing doc. processing KIDONO (payment reference numbe
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    SDVFX001 User exit header line in delivery to accounting
    SDVFX002 User exit for A/R line (transfer to accounting)
    SDVFX003 User exit: Cash clearing (transfer to accounting)
    SDVFX004 User exit: G/L line (transfer to accounting)
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX006 User exit: Tax line (transfer to accounting)
    SDVFX005 User exit: Reserves (transfer to accounting)
    Business Add-in
    SD_CIN_LV60AU02 BADI for billing
    If it is helpful rewards points
    Regards
    Pratap.M

  • SAP-MM CIN Error: JTAX Access sequence missing at the time of excise invoice creation in J1IS

    Dear Sir,
    During creation of excise invoice with ref to material doc system give a error massage JTAX access sequence is missing. Access sequence and tables are already exist in system.
    1.PO
    2. GR with excise capture& post here Part-I&II are genarated.
    3.Invoice
    4.Return delivery with reference to above goods receipt document.(122 m.type)
    5. J1IS- Creating outgoing excise invoice w.r.to return delivery material document.
    JTAX Access sequence missing at the time of excise invoice creation in J1IS

    The same error coming while consignment stock issue to cost center.
    1.Consignment Info record with excise tax code.
    2.PO consignment purchase order.
    3.GR with excise capture & post here Part-I&II documents are created.
       Material document created but there is no accounting document.
    4.While doing Consignment stock issue to cost center system generate an error message
    Access sequence JTAX missing  ( ) Message no. VE306"

  • Vendor Invoice creation through EDI (Transaction MIRO)

    Dear All,
    We want to implement Vendor Invoice creation thro EDI .(Transaction
    MIRO)
    We are not finding any suitable EDI Function Module in SAP which
    would take care of more than 20 items and run a MIRO or any
    equivalent transaction .
    Can any one please advise if any Function module exists ? We need it for
    Invoice creation with GR reference as well as without GR reference .
    Thanks
    Sanjay.

    Thanks Naren,
    I will come back after checking the fn module.
    - Sanjay

  • Vendor Text / Internal notes during Invoice creation

    Hello,
    We can create user ID for a Vendor contact using "Employee for Business partner" under "Manage Business partner" option.
    With this user ID, while trying to create an Invoice, Vendor text / Internal notes drop down does not appear under "Document tab" at item level. We only see one option "Comments from Vendor".
    But during invoice creation by a regular user , we see the drop down for "Vendor Text / Internal notes". We dont see the option "Comments from Vendor"
    Question : Is it possible to have the "Vendor Notes / Internal notes" drop down made available for Vendor Contacts just like reuglar users?
    FYI - We are using Standalone scenairo.
    Thanks for your reply in advance.
    Regards,
    UM.

    Hi Jon,
    Like said Yann, try to use BBP_DOC_CHECK badi.
    In this badi You can use FM BBP_PD_SC_GETDETAIL.
    Example:
      call function 'BBP_PD_SC_GETDETAIL'
        exporting
          i_guid     = iv_doc_guid
        importing
          e_header   = wa_e_header
        tables
          e_item     = e_item
          e_account  = e_account
          e_longtext = e_longtext
          e_messages = e_messages.
    This FM show You all longtext attached in document.
    Regards,
    Marcin Gajewski

  • Invoice creation by vendor and Brazil Localization

    Hi gurues,
    We are starting a SUS implementation on SRM 7.0 for a brazilian company and we want to know if SRM 7.0 is localized for Brazil, in order to calculate brazilian taxes at invoice creation by vendor on SAP portal.
    If yes, I would like to know if there is a guide or document to implement brazil localization on SRM 7.0. Thanks in advance.
    Regards,
    Horacio Miranda

    Hi,
    Please check help.sap.com. There is some info.
    http://help.sap.com/saphelp_srm70/helpdata/en/46/316c6190fd14dde10000000a155369/frameset.htm
    Regards,
    Masa

Maybe you are looking for