Return Delivery from a Material Document

Hi Experts,
I have a scenario in my current project, where we perform a 261 movement (Consumption for a order) before the Order was completed.
Once the order is completed and we know the real quantity consumed, we perform a Return Delivery from the previous Material Document, for the quantity not used. In this way we return to stock the quantity which was not used.
The problem is that this action must be done automatically by a development, and we are looking for a BAPI that can perform this action. I have found the function BAPI_GOODSMVT_CREATE, but cannot be used (or at least I do not know how to use it) to create the movement I need.
Can this BAPI be used? Is there any other BAPI that can help me? Any other idea?
Any help will be highly aprecciated!
Thank you very much in advance,
Best Regards,
LUCAS

Hi Polly/Dirk
Thank yoy very much for your answer...they were very helpful.
I was triying the BAPI, but I still have a little issue. I am calling te function with the parameters specified, but whenerver I insert the Reservation and the Reservation item, the function posts a 261 movement (despite I inserted 262 in the parameters). If I do not insert the Reservation data, it post the movement correctly, but it does not make any reference to th reservation. Is it correct to post it without reservation number? Am I missing something?
Thank you very much in advance,
LUCAS

Similar Messages

  • Return delivery without PO & Material Document

    Hi All,
             Is it possible to create return Return delivery without PO & Material Document.
    Regards
    PKY

    hiii
    without PO and GR reference what u want to create . which transaction u want to do ??
    Because , if u want to remove the goods from ur sytem u have to reversal of material document or return delivey.
    Using that dopcument u can able to creat excise invoice to vendor ( if its excisable scenrio).
    SO can u explain me.
    What u wanted to do exactly...

  • Return Delivery when the material document has been archived

    Hi There,
    We have a situation in which we need to return some consignment material to a vendor because we don't need it anymore. We have 74 units in unrestricted stock. The thing is that the PO's material documents have been archived. This causes we can't do the return delivery using MIGO transaction.  
    Could someone tell me what options do I have?
    Thanks for your help.
    Luis

    Hi,
    You can create a return purchase order to do that, just flag the checkbox "Return" in the PO item line.
    Good luck
    Tao

  • How to make a "return delivery" from a goods mvnt  linked to a reservation

    Hi, I want to realize a "return delivery" from a goods mvnt that is linked to a reservation number.
    I'm using FM BAPI_GOODSMVT_CREATE.
    I'm able to create a goods mvnt, but this doesn't updates the quantity in the reservation document.
    For example:
    There are 10 units of a material reserved in a reservation document.
    I create a goods mov. linked to the reservation number by populating the field RESERV_NO and RES_ITEM in the GOODSMVT_ITEM parameter. In this document I fullfilled the TARGET_QTY field with 10. This the positive movement.
    After that, reservation document says that there are no units pending to serve. (10 reserved - 10 served = 0 pending).
    Now, I want to return 2 units of this material. I fullfilled the fields REF_DOC_YR, REF_DOC and REF_DOC_IT with keys (doc/item/year) of the first goods movement, and MOVE_TYPE with the reversal movement number. But this doesn't updates the quantity in the reservation document.
    I tried fullfiling RESERV_NO and RES_ITEM, but this generates a positive movement, not the reversal!
    Is there any other process that updates quantity in the reservation document?
    Could anybody help me?

    1) Create a button on the chapter menu with the text MAIN MENU (or whatever you want it to say).
    2) Select the chapter menu in either the graphical or outline view of your DVD.
    3) Click on the Connections tab.
    4) Select the MAIN MENU button in the source column.
    5) Select the main menu in the Targets column.
    6) Click the Connect button above the Targets column.
    After doing the above steps you should see the main menu in the Target column to the right of "MAIN MENU:Jump when activated" in the source column. Your MAIN MENU button will now take you back to the main menu.
    Message was edited by: John Link

  • Return Delivery from Project

    Hi  All,
    How to generate return delivery from CNS0?
    The scenario goes like this.
    1. Materials are attached to the network activities( both plant stock and Project stock materials exist)
    2. Delivery request is created from CNS0
    3. Goods are picked and PGI is done.
    Now, there is a goods return process which has to happen because of some reasons.
    Can i trigger this from CNS0 if YES then how?
    Waiting for your expert advice
    Regards
    Prasad

    Hi,
    you cannot perform the returns processing with CNS0. You have to use the "standard" sales returns processing.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    Kind regards
    Jan

  • Return delivery with Exciseable material

    Hello Guru's
    My client has created PO with quantity 100 kg and made 1st GR with quantity 40kg and captured part 1 only and done transfer posting form quality to unrestrict through 321 for received 40kg quantity.
    And secondly Made another GR for remaining 60 kg quantity and captured part 1 for the 60 kg  qty
    In quality checking they found 15 kg got damaged and they issued to scrap through 553
    And for remaining 45 pieces transfer positing done from quality to unrestricted through 321.
    So now clients want to return the scrapped quantity to vendor and also reverse the excise with damaged 15 kg of quantities which they captured part1 only for the damaged quantity i.e., 15 kg
    please suggest the process which needs to be followed.
    Regards
    Sri

    Hi,
    Can be done by Two ways:-
    1. Do the 122 (Return Delivery) and Capture the excise amount at MIGO. and  Create the excise by J1IS and Post the excise invoice by J1IV and Update the registers by J2I5
    2.  The most suitable solution is
    Make a return PO with Return checked and go to
    J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD, Doc Number - Material document No of 161 mvmt, Doc Year, Series Group, Excise Group and Vendor
    system will pick the accessible value.
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    J1IV - Post and Print Outgoing Excise Invoice.
    Regards,
    Pardeep malik

  • Unable to create Vendor return delivery from blocked stock

    Hello,
    Would like to know how to enable delivery picking from blocked stock.
    Some back ground : I am using Delivery type RL (Vendor returns). Required config is done in IMG.
    In our process we move defective material to blocked stock. Next create a Return PO to pick material from blocked stock.
    Next use VL10b to create delivery document against this PO.  We are able to create delivery & PGI from blocked stock.
    All above steps are executing seamlessly without any issue In our QA system.
    However in PROduction system delivery document does not find any qty in blocked stock inspite of being in the blocked stock.
    Please let me know where I could find the setting to enable delivery shipping/ PGI from blocked stock.
    Look forward to some good responses.
    Thanks,
    Ram

    Prerequisites
    When you enter a return delivery, you should reference the purchase order or the material document, so that the system can:
    Suggest data to simplify data input (for example, the storage location)
    Check that the returned quantity does not exceed the delivered quantity
    Reduce the quantity delivered to date
    Reverse other updates that occurred (for example, for a goods receipt into consumption) when the goods receipt was entered
    Before you enter a return delivery with reference to a purchase order, you have to determine whether the goods were posted to stock or to consumption, or whether they were posted into goods receipt blocked stock. If you posted the goods to a particular stock type at goods receipt (for example, quality inspection stock), you have to return them from the same stock type.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/a5/63351643a211d189410000e829fbbd/frameset.htm

  • Output type for Proforma Invoice for return delivery from delivery type RLN

    Client require Output type Proforma Invoice for return delivery to vendor. As such return item category is not relevant for pricing so from delivery to proforma invoice can not have with p-ricing. I got quantity correct but pricing is coming Zero.
    Client have ZPAC as packing list output type from delivery which shows quantity and pricing. So decided to use the same logic to pull pricing for proforma invoice from delivery.
    Here delivery has standard output ZPAC as packing list with access sequence Z002 as Delivery Type.
    I want to pop up output type for all return delivery so using access sequence with delivery type/vendor.
    Vendor filed does not exist in delivery output type so brought that firld LIFNR.
    It is assigned to procedure and maintained ZPRO output type for Proforma invoice. Asigned VV21 on front end.
    Problem Still automatic output type ZPRO is not poping up. What type of access sequence will help me to pop up or what in configuration am I miising?
    Appreciate help for solution at earliest.

    Hi Padamsree,
    I know Pricing & output very well.  I need profomra invoice to be printed with quantity & value for return goods to the vendor. Pricing is associated with Item category RLLN for delivery type RLL which is return type delivery.
    I need to have pricing in my Proforma invoice which is copied from delivery to billing document VTFL. Just check well how it is working in the system & if you know please answer so that it should be workable on the system. As theoretical answer may not be helpful. Appreciate for your time.
    Thanks

  • Create Delivery from Sales Order Document

    Hello all,
    I have a business requirement to create deliveries from sales orders in the most effcient way possible.  Our current program uses BDC and calls transaction VL01N, however this has been found to dramatically increase the run-time of this program.  I have been searching for a BAPI to essentially do the same thing. 
      I came across one BAPI, BAPI_DELIVERYPROCESSING_EXEC, but have been getting inconsistent results.  It will create deliveries for some line items and not others with little rhyme or reason.  The return table is not being populated unless it is a high level error, such as the quantity passed being 0.
    To the BAPI, I am passing: Sales Doc Number, Line Item, Quantity, and Document Category.  This is done through an internal table.  I also pass internal tables to receive the return messages and the created documents. 
    Has anyone seen the same thing with this BAPI? Is there a better BAPI to use for such a purpose?
    many thanks for any help,
    brian

    Hi!
    For delivery creation you can use FM SHP_VL10_DELIVERY_CREATE:
        DATA:
          if_ledat TYPE lfdat_a,
          if_nur_vorgabe_pos TYPE xfeld,
          it_key_to_enque_t TYPE shp_vl10_package_t,
          it_key_to_enque LIKE LINE OF it_key_to_enque_t,
          it_komdlgn_t TYPE shp_komdlgn_t,
          cx_sd_order TYPE shp_vl10_sd_order,
          ct_vbsk_all_t TYPE shp_vbsk_t,
          ct_vbls_t TYPE shp_vbls_t,
          ct_key_late TYPE shp_vl10_package_t,
          ct_vorgabe_daten_t TYPE shp_vorgabe_daten_t,
          ct_vorgabe_daten LIKE LINE OF ct_vorgabe_daten_t,
          wa_dlvsrc LIKE LINE OF m_it_dlvsrc,
          msg TYPE string.
        LOOP AT m_it_dlvsrc
          INTO wa_dlvsrc.
          CLEAR it_key_to_enque.
          it_key_to_enque-panum = '1'.
          it_key_to_enque-vbobj = 'A'.
          it_key_to_enque-vbtyp = 'C'.
          it_key_to_enque-vbeln = wa_dlvsrc-vbeln.
          it_key_to_enque-posnr = wa_dlvsrc-posnr.
          it_key_to_enque-id = '1'.
          it_key_to_enque-tabix = '1'.
          it_key_to_enque-vstel = wa_dlvsrc-vstel.
          APPEND it_key_to_enque TO it_key_to_enque_t.
          CLEAR ct_vorgabe_daten.
          ct_vorgabe_daten-vgbel = it_key_to_enque-vbeln.
          ct_vorgabe_daten-vgpos = it_key_to_enque-posnr.
          ct_vorgabe_daten-lfimg = wa_dlvsrc-lfimg.
          ct_vorgabe_daten-akmng = 'B'.
          ct_vorgabe_daten-postab_tabix = it_key_to_enque-tabix.
          ct_vorgabe_daten-panum = it_key_to_enque-panum.
          ct_vorgabe_daten-id = it_key_to_enque-id.
          APPEND ct_vorgabe_daten TO ct_vorgabe_daten_t.
        ENDLOOP.
        if_ledat = sy-datum.
        if_nur_vorgabe_pos = 'X'.
        CALL FUNCTION 'SHP_VL10_DELIVERY_CREATE'
             EXPORTING
                  if_ledat           = if_ledat
                  if_nur_vorgabe_pos = if_nur_vorgabe_pos
                  it_key_to_enque    = it_key_to_enque_t
                  it_komdlgn         = it_komdlgn_t
             CHANGING
                  cx_sd_order        = cx_sd_order
                  ct_vbsk_all        = ct_vbsk_all_t
                  ct_vbls            = ct_vbls_t
                  ct_key_late        = ct_key_late
                  ct_vorgabe_daten   = ct_vorgabe_daten_t.
        COMMIT WORK AND WAIT.
    All created deliveries numbers:
    SELECT vbeln
          INTO TABLE m_it_vbeln
          FROM vbss
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    All errors during processing:
          SELECT msgid msgno msgv1 msgv2 msgv3 msgv4
            INTO TABLE it_msg
            FROM vbfs
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    Regards,
    Maxim.

  • Copying the VPRS from PGI material document to Billing

    Hi ,
    We have a requirement to copy the cost price VPRS from PGI - Accounting document to the Billing
    I explored some configuration in copy controls by putting the Price source as E which will copy the cost price from the PGI to the Billing
    But i found that it will do only when the Material price control in the Material master is V and not for S ( not sure there may be other settings also)
    The scenario is , Order will be created ( lets say) in May and the dellivery is done in June
    Mean while at the end of May the cost price will change only for the sales order in MR21 as Special sales order ( only for the order) and PGI is done in subsequent month
    In the next month the price will effect the PGI and when i do the billing, the cost price is fetching from the Sales document and not from the PGI
    Hope i am clear in explaining the requirement
    Please let me know if there is any standard configuration available
    regards,
    santosh

    Hi,
    Hi in copy control delivery to billing at item level
    Maintain PRICING TYPE - N (Transfer pricing components unchanged, NEW COST)
    kapil

  • Delivery note VS material document

    Hi,
    is there any difference between both of them ?
    rgds

    Hi SAP LEARNER,
    I'm learning SAP too.
    In inventory management, if you execute a booking the system creates a material document.
    For instance if you receive goods against a PO a material document will be generated that contains several things: posting date. transaction code, material number, movement type, etc.
    If you book against a production order (confirmation) you also get a material document that contains the 'result' of your PrdOrd (FG, SFG; the material you've produced) and it contains the withdrawal of the components that you consumed during production.
    You can check material documents via MB03. I recommend you to try MB51 and you'll understand what naterial document is. (MB51 displays the ID of material document > clicking on it you enter the doc and you can examine it).
    When you create a delivery (VL01N) for e.g. a sales order it is possible to print a delivery note. You can send the delivery note via email or physically to your customer (in this case). Independently from SAP you can use delivery note in logistics processes.
    The above mentioned 'delivery doc' is an object in SAP, and you print some informatin from it onto a delivery note.
    It is similar to PO. Purchase order is an object in SAP but you can print out a 'PO'.
    (E.g. in case of MS Excel you can use 'page preview'. Your excel file is much more than this 'page preview' since it may contain formulas, macros, etc. Delivery doc is your 'excel file' and delivery note is your 'page preview'. )
    When you create a delivery document and execute post goods issue, the status of your delivery document will be changed. Due to the 'post goods issue' your stock will be decreased via movement type 601 (e.g.). A material document will be created about this action. Additionally, if you want you can print a delivery note and send it to your partner.
    BR
    Csaba

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • Delivery Note # in Material document

    Hi Friends,
    Like to understand following. can some one help.
    During Goods issue posting via VL02n, how delivery note field is filled in resulting material document.
    Normally It should be delivery number, but I have cases where some text is appearing there which I couldnt relate to any preceeding documents.

    May be those are internal movements.Goto MIGO display document there you can see processed user and Transaction.By seeing transaction and item details movement you can come to know what kind of process they did.

  • Return Delivery from Customer

    We are receving the delivery from customer and we are using return sales order and inbound delivery.
    Which movement type we should use to get the part back from customer.
    457:-to stock in quality inspection stock
    or
    655:-Quality inspection stock
    and what movement type I should use to move part from there to block or scarp ?
    Thanks

    Hi,
    Depending on how Customizing for Sales is configured (the movement type is configured in the step Define Schedule Line Category), the delivery is posted to the following stock:
    Blocked stock returns (non-valuated, not unrestricted-use) (movement type 651)
    Unrestricted-use stock (movement type 653)
    Quality inspection stock (movement type 655)
    Blocked stock (movement type 657)
    So if you want to take it into blcked stock then use movement type 657.
    please go through following link as well. it will help you.
    http://help.sap.com/saphelp_470/helpdata/en/a5/63360a43a211d189410000e829fbbd/frameset.htm
    Hope it will help u.
    Deepak

  • Changing delivery note on material document

    Hello!
    We have booked some material documents with a wrong delivery note. Is it possible to change the document number without
    canceling the material documents?
    Thanks
    Markus

    Please check this answered link:
    change the delivery note number
    Change Delivery Note
    Edited by: Afshad Irani on Jun 17, 2010 5:11 PM

Maybe you are looking for

  • Pl/sql script needed - Urgent

    Hi All, I have one problem. I have to populate a table having rows more than 500000000 $ through PL/SQL. For getting the idea...I have created one dummy table " T1 " with column " X " having 9 rows and values in source are - row 1 = 10 row 5 = 20 row

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all! I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this: <span class="B01-K-ITAL">random text</span> To something like this: <em>random text</em>

  • Reinstalling OS X PLEASE HELP

    My powerbook recently messed up and wouldnt let me log on anymore. When i would turn my computer on, i would have a small folder with the finder face on it and it would blink to a question mark and then back to the finder face. So i figured that i wo

  • Actions at item level

    Hello. We are implementing the opportunity management scenario in CRM 5.0. We are using the action profile for the sales assistant. We would also like to triger the actions from the item level. I have found so far that no action profile can be assign

  • Error when increasing tempdb size UCCE 7.5

    I am receiving the following error when attempting to increase the size of the Tempdb on our Historical Data Server. Expanding database tempdb Creating database device tempdbD112121455 for TempDb SQL Msg: (102 0r 0x66) Incorrect syntax near 'NAME'. E