Sales Return to another plant

My client sells the materials from plant A, but all the sales return are to be received in plant B.
In plant B it is only kept at for storage and repair. After repair we send the material back to customer.
Is it possible to do this?
Regards
Edited by: RAVI PASWAN on Sep 23, 2009 10:45 PM

hi,
maintain shipping condition- 07 (sales return)  in VOV8 for return order type(RE)(shipping tab -- shipping condition)
maintain plant determination in OVL2
shipping condition /  loading group / plant
07           /           loading group(material master) /      plant B
this will solve your problem
regards
senya

Similar Messages

  • Excise (sales Return)

    Hi All,
    We have a Factory (with Excise)
    We make STO to different Plants (Non- Exsice) and sell the same form Plants.
    Now we have to take sales return at the plants (Non- excise)
    and make STO to factory (excise)
    What are the CIN configurations requires to take material back. do the repair (in PP) and send it back to the plants to sell again. (required excise clearence taken)
    Please Guide me what are the configurations required for taking the material back to the Factory (excise) and send it again (with excise).
    Please Help.
    With Regards
    Niti Narayan

    In general in manufacturing industry,  the repairable material is taken back under 4/5 Challan.
    And repair cycle willl look like as following:
    > (activity by MM) Reject Goods - (activity by PP/QM) Quality - Repair (at PLANT)
    after that, if material is repaired then
    > Delivery Challan w/o Sales Order (at Plant) use tcode. VL01NO use std dlev doc type LO.
    If helpful, kindy reward.
    Take care. JP.

  • Transfer of sales orders from one plant to another

    Dear all,
    My requirement is as follows:
    I have created some 500 sales orders (open) in one sales org+plant.
    Now due to plant shifting to other area, I want to transfer all the above open sales orders to another sales org+plant.
    One option is to create them manually. But that is time consuming and prone to errors.
    Second option is to upload thru LSMW. That too is very tedious.
    Third option is to extend/assign new plant to the old sales area and change the plant in the orders. But I want in the new sales org + new plant.
    Is there any other option by which I can transfer the above sales orders from one plant to another?
    Regards
    SAPshed

    Hi SAPshed,
    The problem is not the change of plant, which is standard functionality, but the change of sales organization.
    An awful lot of information depends on the Sales Organization: Company code (!!), customers, materials, prices, profit center, etc.
    SAP does not even admit creating a sales order in a Sales Organization A with reference to a sales order with a sales organization B.
    IMHO your best option is to try to maintain the current Sales Orders with the current Sales Organization and change the Sales Order in VA02 (your third option).
    If you are absolutely sure that all materials and customers are created for the new Sales Area in the same way and that prices (discounts) are the same, you might want to do a direct update to VBAK table to change the Sales Organization (nasty!), but be prepared for the consequences (no SAP support in case of problems, you are on your own).
    Therefore if you insist on a different Sales Organization, then option 2) will be your best best.
    Best Regards,
    Franck
    P.S. IMHO it is Best Practice to have a unique Sales Organization / Company Code.

  • Configure a sales orginazation as a customer for another plant..

    Hi ,
    How can we configure a sales orginazation as a customer for another plant?? This configuration is requiresd for intercompany  scenerio.
    PLZ give me the exact steps.
    Also I want to know how to configure a plant as a vendor to another plant in case of STO b/w different companies.
    Points assured for suitable answers.
    THNX n Regards,
    Subbz..

    Intercompany Scenario:
    Go to Sales & Distribution >Billing> Intercompany Billing
    Here there is an option to maintain internal customer number for a sales organization. Now the customer that you define here should be created in sales org on which the Intercompany Billing invoice is raised ( or the sales org for which the sales order is created )
    Cross Company Scenario:
    In Cross Comapany scenario, you shall have two plants in the PO created. One would be supplying Plant and the other would be receiving plant.
    You have create a Vendor Master Record for the Supplying Plant. For this, follow the below :
    XK01 is the tcode for creation of Vendor master data
    Remember in this XK01 screen, the company code details to be given shall be the other company code ( that is the company code to which the receiving plant is configured ).
    In the same screen, the Account Group has to be selected 0007.
    So go ahead and create the vendor through the above transaction. Be careful to maintain as and when the field details you come across during vendor creation;
    Supplying Plant ---> as Delivering Plant ( DP)
    Supplying Plant as Vendor and VB(companycode ) as DI --> Invoice Presented by.
    Hope the above helps.

  • How to map sales return process from customer to mfg plant without Depot??

    Dear All
    we have a Mfg plant (mfg1) & having  seven Depot.
    regular process of STO DEPOT process
    ME21N-Purchase order STO
    VL10B - Replenishment delivery
    VL02N - PGI
    VF01- Proforma invoice
    J1IIN - Excise invoice
    MIGO - Goods Receipt
    J1IG - Excise Capture
    VA01 - sale order
    VL01N - Out bond Delivery
    J1IJ - Excise invoice
    VF01 - commercial invoice.
    J1IDEPOTSTOCK - RG23D Report.
    In Case of rejection the Sales Return is directly delivered from customer to 
    manufacturing Plant,In this process depot is not directly  billed. The transaction is
    done between customer to manufacturing plant.our question is how to MAP above scenario in sap
    (currently all this activity is done in excel sheet ) please suggest any proper method....
    Regards
    Sachin

    Hi Laksmipati,
    Thanks for your reply, however one of my clients requirment is that the returns delivery will be made directly to the mfg plant and not to the depot plant. In this case the excise calculation is going HAYWAYAA......I understand that it will make sense if the returns is 1st made to the depot and then to the mgf plant. The system wont allow me to do a returns with refernece to the invoice since it has been made from the depot to the plant. Also this will create a problem while doing A PGR. I will be grateful if you could comment on the same.
    Thanks
    Sachin

  • Sales return -vat G/L account

    hai gurus,
    Iam here discusing about a sales return process. I have a scenario like the client sells 1000 nos of goods
    ,among that 10 comes as returns. i will refeer to billing document and create a sales return order now quality says among 10 nos of returns 8 can be reused again but 2 nos is fully damaged during transit.
    Now i do PGR and after that when credit memo comes i will do for 8 nos and 2 nos i will do another credit memo.during the 2nos i claim to insurance account .here the price,Bed,Schess,Ecess goes to insurance claim account and the client wants the vat which he took from his client also to be gng to the insurance claim account.
    As vat reverses back to the same vat g/l account.
    now can any suggest me is there any way to transfer the vat amunt to another insurance claim G/L account
    as per standard SAP it reverses the same vat G/L account.
    tax ink is been used and vat g/l account are triggered through tax code and if necessary through table entry t030k with respect to business place
    with regards

    We too have same req from the client & we did in below method.
    we have created new condition table in VKOA - with sales org - dist channel- item cateogry(eg:REN) -
    assign this table to resp access seq - make sure , it should be in first line , out of all the other tables. ( the reason is, if system finds one condition record with any resp table, it will stop searching for other condition records).
    maintian return GL account  against the above combinaiton created with this new table.
    its working fine for us, ( if you dont find , Item category field, in field catelog, add this field by selecting , New entries- )
    revert

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

  • CIN - Excise created in case of sales return

    Hi all,
    After reading lot of post about argument in object, I have undertand that, in case of sales return, to create excise invoice I have to do:
    T.Code J1IH and do the following:-
    Customer Credit
    Choose the 'Additional Excise' input the original excise invoice reference, document year, company code, plant and excise group and execute. There input manually what value you need to give credit and save.
    Cenvat Debit
    Choose 'Other Adjustments' and here also, maintain the datas whatever you input as above and save.
    Is correct, If I have a return referred to an invoice with BED, CESS and S&HCess, to use "Additional Excise" (RG23A) to insert BED and S&HCess and "Other Adjustments" (PLA) for CESS? this means 2 excise documents to rectify excise amounts in case of return.
    Thanks in advance for every contribution to clarify this dubt.
    Gianpaolo

    "Additional Excise" subscreen is for differential excise posting, ie, in case you made any mistakake in ED Calculation or excise invoice. In order to correct that, we use that.
    Rgds
    Sumanth.G
    Consultant/Systems Analyst - SAP SD/MM

  • Sales Return: credit memo Should generate automatically with goods reversal

    DEAR SD GURUS N EXPERTS,
    Currently we are using following system of Sales return.
    VA01: (Order Type: RE) --> VL01N (Return Delivery) --> VL09 (Goods Reversal) --> VA01 (Request 4 Credit Memo or remove billing bloc) --> VF01 (Credit Memo)
    But, now my client want a such configuration that entry of Credit memo should happen along with Goods Reversal (VL09) - Automatically. They don't want to carry out VF01 separately.
    Reason behind it: Customers has credit Limit, Suppose a customer has a Credit limit of 5,00,000 and we have delivered the Material of same amount. It means all the credit limit has been used. But now He has returned the material of 2,00,000. But it will not affect the credit limit until we pass Credit memo.
    Please suggest the required configuration and what we can do in such scenario. Thanks in Advance.
    DSC

    Again I can tell you that the process what you were following (reversing the goods receipt) is totally wrong and it will have a serious negative impact on inventory.  Either you should not create a return delivery or take the stocks into parent plant.  If you dont want to show in inventory, then scrap it which is a standard process.
    Coming to the requirement, there is no standard way to achieve this.  Check these threads where the same topic was discussed
    [Re: How to set up in SAP to have automatic billing after PGI |Re: How to set up in SAP to have automatic billing after PGI]
    [automatic billing|automatic billing]
    You have to apply the same logic for credit note also.
    thanks
    G. Lakshmipathi

  • Customer Sales Return in Depot

    Hii,
    There is a scenarion where in materials are sold from a Depot. The process we are following is that we are preparing the sales order, then the delivery document with respect to the sales order. After the delivery document is created we are updating the RG23D register through J1IJ, with reference to the delivery document. Then we are preparing the billing document with reference to the delivery document.
    Now during sales return we are preparing the sales return order with reference to the billing document, then the return delivery and finally the credit memo with reference to the return order.
    Now can you please let me know how we will update the RG23D register in case of sales return,
    Regards
    Ritam

    Returns from Customer to Depot
    1)  Create a Depot return sales order in VA01 with reference to original billing document
    2)  Create Delivery
    3) Create Transfer Posting using MB1B with Movement type 453 and dont forget to make a note of the material document number
    4)  Go to J1IG, click "Capture". There enter material document number and the respective series group.  Then click "details".  Now select the line and click "More documents".  Maintain the excise invoice number created at supplying plant. 
    Returns from Depot to supplying plant
    1)  Go to J1IG and click on red icon from the toolbar.  Enter material document number created during MIGO, year,series group of Depot and hit Enter button.  Now click on "Item" so that you will be taken to next screen where you can see line item for RG23D cancellation.  Save so that system prompts you asking whether you want to cancel the entry. Click YES.
    2)  Verify this by going to tables J_1IEXCHDR & J_1RG23D.  Check GRPO entry in both the tables where the status must have changed to "D"
    3)  The original excise invoice can be cancelled via J1IH and check whether DLFC entry has the status "R" and at this time entry CEIV is also created confirming excise invoice and CENVAT reversal.
    thanks
    G. Lakshmipathi

  • ABAB programm to copy material sales text from one sales org to another?

    Hi all,
    i'm searching for a ABAP programm to copy a material sales text from one sales org to another.
    Has anybody seen something like that before or has anybody an idea how to do this?
    Greetings & TIA
    strobbel

    @Narin
    I've tried to execute both code now over a new programm in the se38 and i get a error message from the first code (http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm).
    It's called:
    "BAPI_MARC1" cannot be converted to a character-type field.
    Could you help me to solve this?
    Sorry but i'm an absolutely newbie in things like ABAP and so on ...

  • 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

  • Extending Materials one plant to another plant

    Dear Friends
    while extending material through LSMW to another plant  we facing problem :
    Sales : Sales Org 1 showing more fields mandatory like  1,valid from;  2. X-distr Chain Status  3. Sales Unit of Mesasure etc.  LSMW programme was OK   i did more times through this programme to extended. i maintained the below fields only in LSMW.  BUT while i extending material through MM01 there is no problems showing.  please advice how to solve this.  i want to extend more than 10K material in to new plants.
    TABNAME     Table Name
    TCODE     Transaction Code
    MATNR     Material
    MBRSH     Industry sector
    MTART     Material Type
    WERKS     Plant
    LGORT     Storage Location
    VKORG     Sales Organization
    VTWEG     Distribution Channel
    MAKTX     Material Description (Short Text)
    SKTOF     Cash discount indicator
    MTPOS     Item category group from material master
    MTVFP     Checking Group for Availability Check
    LADGR     Loading Group
    PRCTR     Profit Center
    DISGR     MRP Group
    DISMM     MRP Type
    DISLS     Lot size (materials planning)
    PERKZ     Period Indicator
    BKLAS     Valuation Class
    PEINH     Price Unit
    VERPR     Moving Average Price/Periodic Unit Price
    EKALR     Material Is Costed with Quantity Structur
    HKMAT     Material-related origin
    LOSGR     Lot Size for Product Costing

    if you used this program successfully before, and now it is complaining about new mandatory fields, then I would say that someone has changed the field selection for your material masters.
    Try to extend one material (that making problems in LSMW) using the manual way with MM01. LSMW does not really do anything different, so I expect that you face the problems with MM01.
    Then you either need to ask to the person who changed the settings  to reset them or you need to extend your LSMW  so that it can run with the new settings.

  • Stock value related to sales return

    Hi experts,
    When sales return, the return goods captures the current stock value after PGI. What's the system logic for that? U know, the customer wants it to capture the stock value of the responding sales delivery date.
    For e.g., the goods (10 ton) is sold in June when the stock value is $10/ton. In July, 2 ton is returned while the stock value is $15/ton. According to the standrad system configuration, the return goods bases on $15/ton to calculate (accounting document in material document after PGI). But the customer want to base on $10/ton to calculate as to keep some financial reports balance.
    In case the difference of stock value occurs, is it the only way to adjust material cost via MR21 & the difference of stock by KEU5?

    Hi Colleagues,
    I am facing the same issue with my client.
    Here, the project was implemented 5 years back and till now the processes in system were working fine. But, raised a concern on MAP of material during issues and returns.
    Client is maintaining MAP for certain materials (includes some FG items also) in Material master data.
    During goods issue MAP is captured at say 100/- But, if the stock is being returned into plant after 6 months or so.....then during goods returns, MAP is captured at current prices ..say 95/-.
    Now the client want to return the stock at same price during original goods issue i.e at 100/- only. Even if goods return document captures the stock MAP at 100/- ...then where do difference (5/-) will be posted. As per logic difference will be posted to P/L account, but can we see this posting in accounting document of goods return material document?
    I think it is not possible in standard process in system. To take up this activity with system modification, can we utilize userexits in MM module? If so, can anybody please tell...which include can we consider to do this.
    Thanks & regards,
    Praveen.

  • Scheduled for delivery quantity shouldnt be transffered to another plant

    dear all,
    we have a case in which we need to prevent scheduled for delivery quantity from being transferred to another plant.
    the problem is that when creating a sales order and a delivery, and before the PGI,, the system allows moving the quantitity to another plant. and this causes a problem when trying to create a PGI ...
    any suggestions please

    in the checking rule ( if stk transfer, you can get it from OLME> purchase order > create stock transport order ) incude reservations, deliveriies and sales order.
    in assign del type and checking rule, you can find the checking rule used

Maybe you are looking for