RCTI Invoice Creation in R12 AR

Hi,
There is a business requirement for a client based out of Australia to create a RCTI Invoice (Recipient created tax invoices).
Business Case: Client receives money from a sponsor who does not want an invoice. Since the business needs to account the same in their books, they wanted to raise an RCTI invoice in AR so that it is not sent to the sponsor as a regular customer.
Is this possible in AR? Any workarounds?
Thanks
Karthik

You may explore to use miscellaneous receipt functionality in AR wherein you can receive money without entering customer details. You can define a specific receivable activity to track these transactions for tracking and reporting.
Regards,
Tarun

Similar Messages

  • This is a question:      Smartforms for RCTI Invoice generation

    Hi Guys (and Girls),
    I have client who would like to generate an RCTI invoice via smartforms.  The system has been configured to immediately print a form once transaction MRRL has been called.  However, our attempts to date to get a Smartform to print on creation of the invoice via MRRL has failed miserably.
    SAP comes pre-configured to generate RCTI invoices via SAP Script with Form MR_PRINT.  This can be changed in config via transaction NACE (Output type MR) to enable a smartform to be selected instead - but the standard program RX08NAST does not appear to be set up to execute smartforms, so all attempts to call the Custom smartform result in SAP Script being called instead.  And attempts to change the program from RX08NAST to something like RLB_INVOICE causes the invoice generation program to generate a workflow error and not print anything.
    SO, the 8 point question - does anyone know of a program that can be assigned to the RCTI invoice generation output type that will result in a Smartform being called instead if s SAP Script form?
    And secondly , the 2 point question, is LB_BIL_INVOICE the best smartform to copy for an RCTI invoice (The RCTI  looks the same as a standard Sales Invoice, but I'm concerned because we require vendor data, not customer data, and I don't know if the data structure passed into the LB_BIL_INVOICE form is set up for that)?  Can anyone confirm or deny this?
    Cheers,
    Steve
    Message was edited by:
            Stephen Keam

    r u printing this invoice from the VF01/02/03
    if Yes you can do this as follows.. As i understood.. you are printing a form for Inovice... you need to print invoice details and Venodr and Purchase order Details.
    you can achive this as follows..
    Note1: in LB_BIL_INVOICE you wont get the vendor details and Purchase Order details... but still you cane achive this bye writing you own select query in Smart form layout - Gobal declaraions>initialization..
    <b>Use the RLB_invoice as u r print Program.. Creat your own Layout in SMrtforms ther retrieve the VEnodr and PO Details.. and  confiur the output type as  Print program is RLB_Invoice and layout is your zLayout.</b>
    now you have Invoice details and Vendor and PO details... Prepare a invoice in Smatform asd your Requirement...
    In Smartform "Create Form inter face as mentioned in the Print Pogram
    <b>JUST this is Exampl only</b>
    first call this *   Determine smartform function module for invoice
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  FORMNAME           = LF_FORMNAME
                    variant            = ' '
                    direct_call        = ' '
             IMPORTING  FM_NAME            = LF_FM_NAME
             EXCEPTIONS NO_FORM            = 1
                        NO_FUNCTION_MODULE = 2
                        OTHERS             = 3.
        IF SY-SUBRC <> 0.
        Error handling
          CF_RETCODE = SY-SUBRC.
          PERFORM PROTOCOL_UPDATE.
        ENDIF.
    then
        Call smartform invoice
          CALL FUNCTION LF_FM_NAME
            EXPORTING
              ARCHIVE_INDEX      = TOA_DARA
              ARCHIVE_PARAMETERS = ARC_PARAMS
              CONTROL_PARAMETERS = LS_CONTROL_PARAM
              MAIL_RECIPIENT     = LS_RECIPIENT
              MAIL_SENDER        = LS_SENDER
              OUTPUT_OPTIONS     = LS_COMPOSER_PARAM
              USER_SETTINGS      = SPACE
              IS_BIL_INVOICE     = LS_BIL_INVOICE
            IMPORTING
              JOB_OUTPUT_INFO    = LS_JOB_INFO
            EXCEPTIONS
              FORMATTING_ERROR   = 1
              INTERNAL_ERROR     = 2
              SEND_ERROR         = 3
              USER_CANCELED      = 4
              OTHERS             = 5.
          IF SY-SUBRC <> 0.
          Error handling
            CF_RETCODE = SY-SUBRC.
         endif.
    <b>Close this thread if when u r problem ise solved
    Regards
    Naresh Reddy K</b>

  • 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 user creation in R12 and migration of users

    I would like to know how we can automate a process of user creation in R12, or is there a way to create multiple users in Ebiz with respective responsibilities.
    Second case is, migration of users from one instance to another. The problem out here is selective users not all?
    Regards

    Pl search the forums for FND_USER package - you will find several hits that show how this package can be used in a programmatic fashion to bulk create new users and assign responsibilities. Examples are also available on My Oracle Support.
    To migrate user, use FNDLOAD. See this doc - you will also find hits in these forums if you search.
    376469.1 - Can FNDLOAD Migrate User Accounts Without Forcing Users To Change Their Passwords?
    HTH
    Srini

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

Maybe you are looking for

  • Header Fields in HTTP Adapter

    Hi, Can anyone please explain meaning of "Header fields in HTTP adapter" ? It has "Name" and "Value" fields in the receiver HTTP channel. If I enter values like: Name                         Value Source                        XYZ Destination        

  • (my name's) MacBook Pro (2) at login... what is the (2)?

    A few days ago my MacBook Pro froze and I had to force it to shut down. The next time (and all subsequent times) I've turned on my computer to login, as the username is shows (My name's) MacBook Pro (2). The (2) is new... what does it mean? Is there

  • Reversal from Invoice Parking

    Hi all, Kindly tell me that if  a PO has been created with wrong vendor and service entry sheet and invoice parking has also been done then what are the steps of reversal? I mean i know that first parked invoice will be reversed , then service entry

  • JPF and backing file

    I have just started using BEA portal. JPF has controller that handles all the action processings. Backing file has callback handlers to perform the same. Is the backing file concept prior to JPF's were introduced or they still go hand in hand? When d

  • AFAB dynamic variant creation for Posting period.

    HI, Business Requirement : Business want to run AFAB transaction code every month automatically with schedule job. system should pick present month period in posting period field. i checked in variant creation  against posting period there is no dyna