At time of return depot invoice creation , not capture Excise Condition Value

Hi,
my queastion is that
In retun process from Customer to Depot,
when user create return Depot invoice through t-code VF01 then  Not capture Excise Condition Value (  JEXP - Basic Excise Duty ,  JCEP- Edu.  Cess Duty and JA1X - Additional tax. ) at time of Depot. Invoice Creation.
we can also check  Table J_1IRG23D, in this table have value of these Excise Cond. Value.
But Delivery No. is not update in table J_1IRG23D.
and I applied  condition formula 356 in Procedure ZDOM02 ( Traders  Pricing Procedure).
How can capture condition value of JEXP, JCEP and JA1X  at time of Retrun Depot Invoice Creation ?
Guide me  .....

Hi,
I have  flow your define step:
Returns from Customer to Depot
1     Create a return order in Depot
2     Key in the invoice number and execute
3     Assign Order Reason and save
4     Create a return delivery  and do PGR.  Maintain storage location 1030
5     Create Transfer posting in MB1B with movement type 453, storage location 1030 and save
6     Note down the material document reference
7     Go to J1IG to reverse excise issue posting
8     Click "Capture"
9     Key in the material document number and  series group
10     Click "Details".  Now select the line item and again click "More documents"
11     Key in the original excise invoice reference created at supplying plant
12     Skip all warning message and go back
13     Maintain the internal number and the year.
14     With this, entry from RG23D will be reversed
But still the excise condition values are not being captured during invoice VF01 and std depot routing 356 is being used.
Program name of depot routing  is  FV64A356.
we can also check  Table J_1IRG23D, in this table have value of these Excise Cond. Value.
But Delivery No. is not update in table J_1IRG23D.
Guide me.........

Similar Messages

  • MIGO - Excise Invoice is not capturing.

    Hi All,
       In ECC 6.0 we are config. Sale Depot for this i am not able to capture Excise Invoice RG23D Register in MIGO Stage. I am entering BED, AED, ECS manually. Who to automate it for SAP Ecc 6.0
    I need you kind advice to resolve this issue.
    Thanks in advance,
    Sapuser

    Hi All,
        I have not maintained any Condition Record in  T.Code:FV11. Can you Please Explain me what has to me maintain. I am not aware of it.
    Please advice what has to be done in ECC 6.0
    Thanks in advance,
    Sapuser
    Edited by: Sap user on Oct 22, 2008 4:04 PM
    Edited by: Sap user on Oct 23, 2008 7:07 AM

  • PR/ Sales order value not coming in condition value routine

    As per the requirement while creating a PO I need to add a new condition type and need to calculate condition price for this newly added condition based on some matrix.
    For this requirement PO will always be created with reference to PR and with account assignment category as 'E' .
    (Hence sales order number /item will be copied from PR to PO in account assignment tab  )
    Now I have created a new pricing requirement routine ( To add the condition type ) and new condition routine to calculate and update the price.
    These routines are working fine if i check them with hard coded price values.
    But the problem is that I need the PR number(which we put in item overview ) / Sales order item number (from account assignment ). these values are not coming in pricing tables in the routine...structure EKPO come blank, KOMP-AUBEL is also blank).
    Please give your suggestions how i can i get PR/ SO in the condition values routine .
    Please reply

    resolved my self

  • J1IG Excise invoice is not capturing in RG23D Register

    Dear Experts,
    while making GR for the materiel,Excise tab is  updating in MIGO header level.but user select no excise entry here.while
    excise capturing with J1IG,its not updating RG23D Register.a internalnumber is generating while capturing J1Ig,but its not
    updating in RG23D Register,please sugest me,we are mainating J1ID and Excise data in vendor master.please suggest what might be wrong?
    Regards,
    Varun

    Hi,
    In SPRO-Log Gen- Tx on goods movement- India-Business Transactions-Incoming Invoice- Specify which movements involves excise invoice.
    Assign 101- No excise entry(Also 105 if you are using 103,105)
    Now in J1ID, material & chapter ID combination- maintain it as a 'N-Noncenvatable'.
    Regards,
    Piyush

  • What is the problem with the latest update of Firefox - 30. I have tried the update 4 times (Win 7 Pro ) Program will not start under conditions?

    That's it.
    After update the program will not run. No matter which method I choose. I.E. Run as administrator. Double click.
    I tried starting multiple windows but when each one get to a few 2000 mbs showing in Taskmaster they re-treat and close down??
    Uninstall and re-install the old version and everything is hunky dory?
    Well apart from informing me that there is an update available.
    Many thanks :)

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Creation of new Excise Condition

    I wanted to create a New Condition type for one specific NON CENVATABLE EXCISE duty .....
    I am clear about creation of Condition types and addition of that condition at required place in PROCEDURE.
    Do i need to make any other settings also ?
    Regards
    Shrey

    HI
    Check if needed to assign any account key to this new condition type in your procedure if needed, then mantain the GL acc for the same.
    If you are adding this condition type in your TAXINN procedure (assuming so) you need to create the condition type for the same by using trax FV11.
    If you are adding your condition type in Pricing procedure then no ned to create the condition record.
    Regards
    Sujoy

  • Excise Invoice can not be capture for RG1 in STO

    Hi All,
    I created a Purchase order for STO with the help of STO I created Replenishment delivery then JEX Invoice then Excise Invoice. At the time of MIGO I put the Excise invoice no. for capturing the excise duty. now when i am saving the MIGO system generating an error " Excise Invoice can not capture the RG1"
    Please throw your valuable suggestion.
    Regards
    Shambhu Sarkar

    Hi ,
    I am sure u r doing MIRO w.r.t PO after u have done MIGO of that document...
    Check that how many line items u have in MIGO and wether it is coming it MIRO or not...
    I would also suggest pl look into the MAP and Standard price in accounting view of material.
    Reply.
    Dipak

  • PO Collaboration : Invoice Creation Type field

    Hello,
    The Invoice Creation Type field in the SNC Web UI is always "Invoice Creation not allowed" irrespective of the settings to the Master Data / Transaction Data.
    Given below are the settings I ve maintained
    ECC System:
    PO -> Item Details -> Invoice Tab:
    Inv. Receipt Indicator - Checked
    GR-Bsd IV - Checked / Unchecked
    SNC System:
    Vaildation Checks - Tried both these settings:
    1. PO_INVOICE_CREATION - Active
        PO_INVOICE_DATA_ASSIGN - Active
        PO_INVOICE_RELATED_TO_PO_OR_ASN - Inactive
    2. PO_INVOICE_CREATION - Inactive
        PO_INVOICE_DATA_ASSIGN - Active
        PO_INVOICE_RELATED_TO_PO_OR_ASN - Active
    Infact, I am not able to see the Invoice tab itself in the PO details screen in SNC Web UI.
    Note : I am using the Orders.Orders05 Idoc for sending the PO from ECC to SNC system.

    Hi Bharath
    Your settings are fine
    Please do the following checks
    If you use IDocs of type ORDERS.ORDER05, SAP SNC can instead read the data for these fields from a reference document, such as a contract, that has previously been transferred via the Core Interface (CIF).
    In your PO you would have referenced a contract/agreement, Please check whether it is CIFed or not
    Also before CIFING do implement these notes
    1053121 & 828912
    Now when you send the ORDERS idoc, The RON xml reads this data and puts in structure
    <FollowUpInvoice>
      <RequirementCode>01</RequirementCode>
      <GoodsReceiptBasedInvoiceIndicator>TRUE</GoodsReceiptBasedInvoiceIndicator>
      <CustomerSelfBillingIndicator>FALSE</CustomerSelfBillingIndicator>
      <ProductTaxationCharacteristicsCode>V1</ProductTaxationCharacteristicsCode>
      </FollowUpInvoice>
    Irrespective, whether you create invoice for ASN or PO, the tab should be visible as Nikhil rightly mentioned
    In SAP SNC , Controlling Invoice Creation for POs is done by FollowUpRequirementCode as mentioned above
    Now since you are using ORDERS, you need to check you SA or Contract in Item Details Tab
    the following fields need to be checked "IR" in both cases and In Header Details Field "Invoicing Party"
    Also during creation of PO, make sure you dont check Unlimited Overdelivery in item delivery tab and even in your reference document.
    Now after implementing above two notes reCIF and try creating PO, It will work
    Please do mention whether you are able to see the above structure in your RON xml in SCM side and what details???
    Best Regards
    Vinod

  • Auto excise invoice creation

    Hi all
    I have done  following setting for auto excise invoice creation
    A) Maintain  excise  group : Checked excise invoice during billing : Check box  flaged
    B)Define accout in account detrmination : If We create it manually perfectly working
    C)business transaction : outgoing excise inovice : add one entry for sale area IN01/01/02  shipping point : INVE & Plant : PVVE ,excise group : EV & excise series ES  & export colulm kept blank beacise this domestic sale area
    But after creating billing document ( t_code  :vf01  doc_typ: F2) excise invoice  is not genrated automatically .
    Reques you all to suggest  why  excise inovice is not created ?

    Hi
    You will have to maintain Default Excise Group and Series Group in IMG> LO General>Tax on Goods Movement> India>Business Transaction>Outgoing Excise Invoice>Maintain default Excise Group and Series Group.
    Also Maintain the  Assign Billing Type to delivery Type.  IMG> LO General>Tax on Goods Movement> India>Business Transaction>Outgoing Excise Invoice>Assign Billing Type to delivery Type.
    Maintain it and then try to create.
    Regards
    Amitesh Anand

  • Excise consdition value not flowing inot the invoice

    Dear Gurus,
    Excise condition value not flowing in to  the invoice from sales order
    Thanks
    Sasi

    Dear lakshmipathi,
    Iam entering the BED/Ed/ShEd  values manually....
    Where can I check the Tax code in the sales order?Does you mean to say the Tax classification at Item-Shipping tab?
    Thanks
    Sasi

  • In dealer Invoice , Excise duty values not captured from MIGO

    In dealer invoice , I have changed excise duty values in MIGO . This is not captured in MIRO. But the system took excise value from default values ( from FV11 condition record ) . This is happening for New plants.  Old plants works good.
    Regards.,
    Lakshmanan.S

    hi,
    create a PO with zero tax code. such that base amount is equal to the inclusive of all excise duties.
    IN migo select the capture and post excise option, in the excise tab, activate the mrp indicator .
    change the base value in the migo and manually enter the excise duties in migo, capture it and then post
    create MIRO with reference to the PO and give the taxcode as V1(ED-8%CESS-2%HECESS-1%)instead of VO(ZERO TAX CODE)
    Regards,
    velu

  • Excise Duty is not captured in MIRO

    Dear,
    When we posting a vendor invoice against purchase order , It is not capturing excise duty ,
    In part 1 excise invoice date is 31.03.2014 with the GR posting date 15.04.2014 and In part 2 posting was done on 16.04.2014.
    we are facing this problem due to different excise year upated in table J_1IEXCDTL and J_1IGRXREF.
    Please give us solution.
    Br,
    Swapnil

    hi,
    have you checked J1ID all entry for that material is exist and also check PO invoice tab whether tax code exist for that material.
    Regards,
    mukesh

  • Condition Values different fro Billing and Excise Invoice in some cases

    Hi All,
    Excise Invoice for domestic sales is having different condition values.
    I am scenerio like this when Billing doc manually VF01, excise Invoice in generated automatically and condition values
    were corrrect.But when I create Billing Document using BAPI in program, Excise Invoice is not generating,then
    we are running BDC for T-code J1IIN and creating Excise Invoice.Excise Invoice generated in second case (by BDC)
    is having wrong condition values.
    Can anyone explain why it is happing.Is there any user exist to copy Billing Doc condition values to Excise Invoice?
    Thanks in Advance ,
    Rayudu

    Thanks for you response Lakshimipathy.
    The above mentioned configurations were all ready done.Excise Invoice is getting generated when we create Billing Doc online.
    Problem here is Excise invoice is not getting generated automatically when Billing Doc is created by our program,so we were running BDC code to created excise Invoice.
    Condition values ( Duties :AED,Ecess,SHEcess) were getting calculated wrongly in excise Invoice which is created by running BDC code in program. But the Excise invoice which was created automatically while saving Billing doc manually is having correct condition values.  But the billing document condition values remain the same & correct for both.
    Regards,
    Rayudu

  • ALV edit not capturing new value

    Hi
    In my alv i have made one field as editable..when i edit the field and click save button the control comes to below code. 
    CALL METHOD gro_grid->get_selected_rows
        IMPORTING
          et_index_rows = gwa_selected_rows.
    *Through the index capturing the values of selected rows
      LOOP AT gwa_selected_rows INTO gv_selected_rows.
        READ TABLE git_data INTO gwa_data INDEX gv_selected_rows-index.
    here git_data is the internal table given to alv grid...i nthe above read stmt..gwa_data gives the value in field as old one..its not capturing the new value..how to solve this ..pls help

    Hi,
    Use event data_changed.
    When 'SAVE' is pressed, call check_changed_data( ) which will trigger event data_changed.
    Inside handler method copy the modified cells to table.
    *PAI
    When 'SAVE'.
    g_o_grid->check_changed_data( ).  " It triggers event 'data_changed'.
    LOOP AT g_t_modcells INTO g_r_modcells.   " Loop at modified cells table
    READ TABLE git_data INTO gwa_data INDEX g_r_modcells-row_id .      " <---- Ur code
    ENDLOOP.
    clear: g_t_modcells[],g_t_modcell[].
    *Declare data for handler method.
    Data:  g_t_modcells type lvc_t_modi,
              g_t_modcell type lvc_t_modi.
    *Declare handler method for event 'data_changed'.
    METHODS: data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
    *Handler method implementation
      METHOD data_changed.
        IF er_data_changed->mt_good_cells[] IS NOT INITIAL.
          g_t_modcell[] = er_data_changed->mt_good_cells[].
          APPEND LINES OF g_t_modcell TO g_t_modcells.  " Modified cells are copied to table g_t_modcells[]
        ENDIF.
      ENDMETHOD.
    Thanks,

  • 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

Maybe you are looking for

  • TA22652 I purchased a new iPad and my daughter uses my iPad. On my account her email address appears. How can I get my account back?

    I purchased a new iPad and my old iPad went to my daughter. I have a problem though in that my iTunes account has been taken over by her email address. If I want to redeem a voucher on my account her email address appears. How do I correct this?

  • Ultra 10 won't start anymore

    Hello, I have an Ultra 10 box with an extra video card inside. Everything was working fine, and then I got curious and decided to open it up to see what's inside. Now it won't start anymore. I turn the computer on, the fans start spinning, but nothin

  • Error in Process Chain for DTP- Job not finished

    Hi Experts, We have an issue with one of our process chains. When we execute the chain manually, there is no problem. BUt if we schedule the chain, issues arise. the last part of the chain is DTP. But the job doesnt finished even if the DTP step si a

  • Exporting from iMovie back to Camcorder

    with iMovie 06 I used to be able to export a movie I made back into my DV camera. Is there an option to do this in iMovie '08? Since I don't have a Blu-Ray burner or player, I would like to send a movie back into my camera so that I can play it in Hi

  • INVOICE_UPDATE - MIRO ( RSEG-LFEHL)

    Hi All, I am using Badi INVOICE_UPDATE to change the value of "Vendor Error-lfehl". I am not able to do it with the INVOICE_UPDATE BADi because there are no export parameters in the BADi. So please any of have worked on the same scenario plz suggest