Sales return before invoice generation

Hi Experts,
can we take material return before invoice generation
sales order -
>delivery----
>sales return -
> actual invoice
      10 nos                    10 nos                  2 nos                              8 nos
for example sales order 10 quantity, delivery 10 quantity but 2 quantity damaged returned 2 quantity by customer good recived 2 quantity then at the end we generate invoice of 8 quantity. this is done to avoid creating credit memo a number of time.
looking for your reply
Regards,
subhro.

this is done to avoid creating credit memo a number of time
When there is a standard procedure to create a credit memo for returns, I dont know why you want to deviate this which is not at all recommended.
If creating credit memo is a regular process for your client (ideally it should not be the case), you can consider giving a BDC for the same.  Instead avoiding creation of credit memo is not adviceable.
thanks
G. Lakshmipathi

Similar Messages

  • Sales return - Excise invoice from depot

    Dear all,
    We are having a sales return scenario in depot which we are executing in following way.
    1) Return sales order 2) Delivery against sales order 3) PGR 4) Credit memo 5) Capture of excise invoice in J1IG against the material document posted in PGR with reference to original excise invoice.
    But when we are again creating an outgoing excises invoice from depot i.e. re-selling the same material to other customer system does not show the excise invoice in list of inward invoice.
    Request to please let us know if we have missed out on a step/ configuration to ensure that the customer return excise invoice is visible to re-sell the material from depot.
    thanks & regards,
    mahesh

    Dear  Lakshmipathi,
    Thanks for the reply, did go through the thread that you have suggested before i posted this one.
    Just wanted to know that we update the register with material document number posted for transfer of material from one storage location to another which is customer return to finished storage location and not with the PGR material document number?
    5 Create Transfer posting in MB1B with movement type 453, storage location 0005 and save
    6 Note down the material document reference
    7 Go to J1IG to reverse excise issue posting
    thanks and regards,
    mahesh.

  • Sales return against invoices with batches.

    01.11.2010
    Hi friends,
    We are using BOM for materials. During delivery batches are determined and in the invoice i have the main material with zero quantity and zero value,  followed by the lines with the batches determined and the components.
    In case of returns i want to copy each of the batch line followed by the corresponding BOM quantity.  For eg. if the delivery quantity was 50 and 3 batches were determined of 10,15,25 then in the sales return i want the line with the batch quantity 10 and the components, followed by the batch line with quantity 15 with their components and finally the quantity 25 followed by the components for 25 nos. How can this be achieved.   Please suggest.
    Regards,
    Uday

    Hi
    You have to create your own data transfer routine for this. This routine is to be used in the copy control from invoice to order.
    Regards,
    Torben

  • Sales Return Process-Invoice(Credit Memo) with ref. to delivery

    Dear All,
    I am doing sales return process.
    Sales Order-RE
    Delivery-LR
    Invoice-RE,
    with ref. to sales order it is allowing me to create invoice.
    But,with ref. to delivery it is not allowing.
    It is giving "The document is not relevant for billing".
    I have changed item category  REN for delivery (A) related billing.
    Also changed req. copy control setting.
    Can anybody guide on this issue.
    Best Regards
    Sainath

    Hello,
    Normally return credit memo will be generated with reference to the retrun order, and that is the standard SAP process. Do you have any specific requirements to have the credit memo with reference to a retrun delivery?
    The Item category REN Billing Relevence will be B as per SAP standard, if you wish to have a delivery related credit RE, the make this to A .
    Maintain the Delivery to Billing Copying control in VTFL for LR --> RE, add the item categroy REN.
    Maintain the copying requirements for header as 3 Header Del Rel and for item as 4 Deliv-Related item .
    Once these setting are done, then check whether the RE billing type is triggering from LR?
    Prase

  • Excise duty credit in custmore sales return

    Hi Experts
    When we receive the sale return from customer we follow the below process.
    Create sales order with order type sales return
    Create return delivery. It create stock for return material.
    VF01 Accounting entry pass in customer account.
    J1IH for cenvat credit.
    My question is that can we take this cenvat with reference to VF01 document  or any other document. I don't want to do J1IH. I I get cenvat by J1IH it show excise invoice due list.
    Regards
    Parkash

    Hi Parkash,
    Please go through the below links there are lot of threads on sales returns excise capturing.
    Go through the forum rules of engagement.
    Excise duties not flowing while creating return excise invoice
    SALES RETURN J1IH
    Excise Returns
    Sales return excise invoice
    Regards,
    S.Himavanth.

  • Sales returns with free goods

    Hi All,
    We are trying create sales returns with Invoice. But system is not copying the free goods item. I have checked relevant item category determination and Copy controls, everything is looking fine for me.
    Please let know if any other settings are required.
    I am getting below meeage.
    Item category for item 000021 cannot be determined
    Item 000021 is not copied from the refer
    document.
    Thanks.

    Hi radha
    Say you have created a creditmemo with G2 document type and you are getting a item category of G2N , so check the item category TANN is available or not with G2 doctype and item category G2N  in VOV4 .Check in copy control wheather the item category is available or not in VTLA  . I suppose it is not there that is the reason you were getting error.
    Maintain item category data at copy control VTLA then your problem will be solved
    Regards
    Srinath

  • Excise duties not flowing while creating return excise invoice

    Hi friends ,
    During sales return excise invoice creation ,excise duties are not determined automatically in J1IH. Is there any settings instead of entering the value manually in J1IH? I have searched the forum but only manual entries related results are posted.Is there any automatic determination?
    Thanks in advance
    Bhuvanashree

    Dear Friend,
    As per the SAP new package ETT RLFC has been introduced for Excise sales return. New tab   "Return sales Excise" available in J1IH for post Return excise invoice automatically. .
    We added ETT RLFC in table J_1ITRAN and did configuration for account determination for excise, this is helped us to post excise invoice for Sales return.
    Please refer SAP Note: 1907900 - Error 8I-402 for return sales transaction(RLFC)- J1IH
    In addition even after all the configuration of RLFC you are not able to post the Excise for return sales then this is due to confirmation of service in original delivery.
    This is a typical case when you are using Batch managed material.
    If this scenario arise implement SAP OSS note No: 1971904 which will resolve the issue.
    Regards,
    Ashish Kothari

  • Sales Returns with batch split.

    12.10.10
    Hi friends,
    I have created a sales return against invoice with multiple batches for a BOM item.  During returns the returns have created individual lines for each of the batch and the components are also available as per sales bom. The components are dependent on the main item and since the main items are in multiple lines when changes are done the components are not adjusted accordingly. Please advise how to solve this problem.
    Regards,
    Udaynath.

    12.10.2010
    Reazuddin thanks for the reply. Yes this is a complex scenario.
    Its the main matierial which is physically moved out from stock.
    The billing and pricing is done at the component level, the main material as well as the components are available in the billing document.
    The problem is with the returns against invoice. When the return order is maed it has the  main material say with line 10 without batches and quantity.
    The batches are copied with the quantity as line number 11,12 ...
    So when the quantity is changed in the lines containing batches,  the changes are not carried out in the components as the components are referring to line 10.
    The issue is when there are multiple batches. Can you please advise on the scenario.
    Regards,
    Udaynath.

  • MIX sale return problem(query not giving required result)

    i have written following query which is running sucessfully.the concept behind this query is to get a exact quantity of sold items after subtracting the sale return from the sale.now the problem is that when user take sale return against invoice then this query providing ok result but when user take sale return against MIX items not knowing exactly the invoice then query is not showing result means not subtracting MIX sale from sale.please help me to get required result from this query.
    i m using oracle 9i with developer 6i
    select s.price,s.item_code,S.DESCR,
    sum(decode(d.MONno,01,NVL(S.QTY,0),0)) JAN,
    sum(decode(d.MONno,02,NVL(S.QTY,0),0)) FEB,
    sum(decode(d.MONno,03,NVL(S.QTY,0),0)) MAR,
    sum(decode(d.MONno,04,NVL(S.QTY,0),0)) APR,
    sum(decode(d.MONno,05,NVL(S.QTY,0),0)) MAY,
    sum(decode(d.MONno,06,NVL(S.QTY,0),0)) JUN,
    sum(decode(d.MONno,07,NVL(S.QTY,0),0)) JULY,
    sum(decode(d.MONno,08,NVL(S.QTY,0),0)) AUG,
    sum(decode(d.MONno,09,NVL(S.QTY,0),0)) SEP,
    sum(decode(d.MONno,10,NVL(S.QTY,0),0)) OCT,
    sum(decode(d.MONno,11,NVL(S.QTY,0),0)) NOV,
    sum(decode(d.MONno,12,NVL(S.QTY,0),0)) DEC,
    sum(S.qty) TU
    FROM
    (select nvl(sales_detail.qty,0)+NVL(sales_detail.bonus,0) as qty,
    sales_detail.item_code AS ITEM_CODE,stock_reg.price price,
    stock_reg.descr AS descr,
    s_date as sale_date FROM
    SALES_DETAIL,SALES_HEADER,STOCK_REG
    WHERE SALES_DETAIL.S_ID = SALES_HEADER.S_ID AND
    SALES_DETAIL.STOCKCODE = STOCK_REG.STOCKCODE AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID
    UNION ALL
    SELECT -1*QTY,ITEM_CODE,PRICE,DESCR,SALE_DATE FROM
    (select nvl(sales_detailR.qty,0)+NVL(sales_detailR.bonus,0) as qty,
    sales_detailR.item_code AS ITEM_CODE,stock_reg.price as price,
    stock_reg.descr AS descr,
    RETURN_date as sale_date FROM
    SALES_DETAILR,SALES_HEADERR,STOCK_REG
    WHERE SALES_DETAILR.SR_ID = SALES_HEADERR.SR_ID AND
    SALES_DETAILR.STOCKCODE = STOCK_REG.STOCKCODE AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID
    UNION ALL
    select  -1nvl(sales_detailR.qty,0)+NVL(sales_detailR.bonus,0) as qty,*
    sales_detailR.item_code AS ITEM_CODE,stock_reg.price as price,
    stock_reg.descr AS descr,
    RETURN_date as sale_date  FROM
    SALES_DETAILR,SALES_HEADERR,STOCK_REG
    WHERE SALES_DETAILR.SR_ID = SALES_HEADERR.SR_ID AND
    SALES_DETAILR.STOCKCODE = STOCK_REG.STOCKCODE AND
    SALES_HEADERR.S_ID = 'MIX' AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID)) S,
    (select level as MONno
    from dual
    connect by level <= 12) d
    where d.MONno = to_char(s.sALE_date, 'MM') AND trunc(S.SALE_DATE,'MONTH') BETWEEN TO_DATE(:FDATE,'MMYY') AND TO_DATE(:TDATE,'MMYY')
    GROUP BY S.ITEM_CODE,S.DESCR,S.PRICE
    ORDER BY S.DESCR ASC

    Gaurav,
    Can you print all the binding variables and update the ouput here.
    And I didn't get this date format 'dd-mon-rrrr', normally it will be like 'dd-mon-yyyy' right?
    Thanks,
    With regards,m
    Kali.
    OSSI.

  • 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

  • Sales Return for Closed Invoices

    Dear All,
    I have Created a Sales Order and corresponding DC and Invoice.Since the payment is done the status of the invoice is closed.Now i get a product back and i want to do a Sales Return.How does SAP help me in doing Sales Return for Closed Invoices/ DC.
    Thanks,
    Merle

    Hi Merle,
    This depends upon your business process and how you want to handle such cases.
    In case where you dont want to cancel the incoming payment, just create a standalone AR credit note and in the reference or remarks field, you can mentioned the invoice number to be used in reporting.
    Else, you can always cancel the payment and proceed as mentioned by Imran.
    Thanks,
    Joseph

  • FI documents during sales return & invoice cancellation

    Dear All,
    We are using two document types RA for sales return & RC for cancellation of Invoice. These documents are getting posted in Domestic Sales account.  We need to track them seperately and posted to two seperate GL A/cs. Do we need to have seperate document types for them apart from normal sales document ? What will be the account assignment to be done to have these postings done to new gl accounts ?
    Regards,
    Sadashivan

    Hi Kesh,
    The document type is common for sales as well as sales return.  Further, we are creating a new GL account for Sales Return now.  At present Sales and Sales return are commonly posted in domestic sale account. I wish to clarify that as the sales are captured through account assignment VKOA - ERL, the sales return has to be assigned through OBYC - VAX.  Is it correct ?  Like wise for cancellation of invoice is there any account assignment so that whenever the invoice is cancelled automatically posted to new gl account - "sales invoices cancelled "? That is instead of debiting sales we will be debiting sales invoice cancelled a/c credit customer a/c.
    Regards,
    Sadashivan

  • Orginal invoice no in a sales return

    Dear Gurus,
    I'm developing a report where I have to show the original invoice no in a sales return. My input value would be PO field in the order.
    Pl help
    Tks

    Hi friend,
    You cant get the Original invoice number from the PO, instead you can get the ORIGINAL INVOICE NUMBER  from the retrn sales order or Billing document for returns
    Goto VBRK for the return Billing document and get the field SFAKN  which is the ORIGINAL INVOICE NUMBER.
    Hope it will resolve you issue.
    regards,
    santosh

  • Sales Return of Excisable Items

    Hi All,
    How do we post sales return for an excisable item, where Delivery, Outgoing Excise Invoice, A/R Invoice, all three have been created?
    When we post a Sales Return, it shows a message to create an Incoming Excise Invoice. But does not allow to create a Incoming Excise Invoice, says that IEI can not be created on the base of this document.
    The credit memo also could not be created as it ask for creating an IEI first.
    Regards
    Rahul Jain

    Hi Rahul,
    If you posted AR invoice return should be only done
    thru AR credit memo and you need to mention
    outgoing excise invoice reference no.in Excise Ref. # of
    Accounting TAB of A/R credit memo before adding credit memo.
    Incoming excise invoice will be created automatically.
    Hope above answer will solve your problem.
    Jeyakanthan

  • Sales Return procedure

    Hi,
    1. Pl guide us for standard procedure for 'Sales Return' from customer with refereence to billing doc. Pl specify the relevant 'T' codes.
    2. Pl also guide us if any task needs to done thru SPRO/Transfer request to PRD.

    Hi,
    I) T.code for Sales Return VA01
       But it has to be created with reference to Invoice. to do this
       Menu Bar -
    > Sales Document--->Create with reference then you are poped up with window select the Billing tab and enter the invoice click on copy button.
    For every return order  order reason has to be used to track for what reason it has been returned.
    II) Cary on delivery process with post good receipt
    III) Before you go head with billing need to remove billing block in return order and save it, this set for control since money is going out of company.
    III) perform billing i.e, Credit memo.
    SPRO need to copy the original order type T.code VOV8 to customed one.
    Assign it to sales area where you use.
    Return order is ready to use now.
    Vth Regards
    vK

Maybe you are looking for

  • My laptop motherboard burnt and I can't find international assistance.

    I bought two HP Pavilion tx1030la Notebook PC in Chile. I lived and worked there. Then I moved back to Brazil. 1 and 1/2 year later one of them had its motherboard toasted. The second one, less used, already lost the wireless and the screen goes blan

  • How to store a link to  an object in a form field

    Hi All, I desparately need to find a way to store a link to a portlet in a form filed such that click on the link will bring up the relevent component. Any help highly appreciated.

  • HP1102W can't print with wireless

    Greetings, I wanted to report a problem i have with my printer (HP1102W). 1. When I first bought the printer. It worked fine and both laptops that I had in my home could easily send files and print, 2.  after a while, one of the laptops began to have

  • Language settings in Time Capsule

    Hello, I'm currently stationed in China and I'm thinking to get a Time Capsule from the Apple Store here. I'd like to know if it is possible to change time capsule's language to English? I'm assuming that the default language will be Chinese. Is ther

  • Initial feedback

    Hi, This is a great resource and I like how forms can be completed on mobile devices, including iPhone. A few points: The colour picker is quite dark and is not particularly easy to select appropriate colours. I think the circle instead of square swa