Deriving Material Document No from Outbound Delivery Document No

Hi,
We have a requirement where based on the out bound delivery document number and the delivery line item number, we have to derive the correspponding material document number. Please suggest on how to go about this.
Thanks and Regards,
John

Hi!
Try this:
select single matnr from lips into l_matnr
  where vbeln eq OUTBOUND_DELIVERY_NUMBER
      and posnr eq OUTBOUND_DELIVERY_ITEM
Edited by: Petr.Plenkov on Jun 3, 2010 1:14 PM

Similar Messages

  • Copy text from outbound delivery to billing document

    Hi Gurus,
    Is there a way to copy a text from outbound delivery to billing document?
    I found text determination. It is only possible to maintain text from Sales to Billing.
    Thanks.
    Stéphane.

    Hi,
    Goto the T.Code "VOFA".
    Select your billing type.Details.
    Goto "Output/partners/texts" tab.
    Maintain the "Textdeterm. procedure" as the procedure same as your delivery.
    Anotehr way is goto the T.Code "VOTXN".
    Here click on "Delivery Header".
    Check the check box for "Reference".
    Regards,
    Krishna.

  • Outbound delivery document from Sales order

    Hi ,
    While creating the outbound delivery document from Sales order, all the line items of the Sales order are populated in the Delivery document. The line items where stock is not available, the line is still populated in the delivery document with zero quantity.
    Pls suggest the way in config, so that at the time creation of the delivery document system to populate only the lines with the available stock.
    Thnx

    Hello Soumya
    I could not able to find any std transaction or config via you could restrict it. However you also no till 'Picking' not completed user is not able to make postings... so i couldnt see any issue in this.
    Still you need to restrict this, you to configure User Exit via you can restrich the lin items to come in delivery for no stock item.
    Amol

  • Outbound delivery document flow is not updated after LT0G

    Hello Gurus,
    after executing LT0G Returd to stock from delivery, a document flow of outbound delivery is not updated. Still an OvrllPickStatus remains = C Fully picked and OverallWMStatus = C WM trsf ord confirmd. This though the goods result to be returned correctly from 916 into stock.. What can be the reason for this malfunctioning?
    Jari

    Many thank for your feedback. The transaction LT0G is executed succefully and a destination storage bin results a correct quantity. Anyway I checked SM13 and a log is empty.
    The notes you mentioned seemed very promising, but unfortunately they are not relevant as a release in where I am working is SAP ECC 6.0 SAPKH60013.
    I am still trying to find some possible other notes but without a success so far.
    Jari

  • STO Partner Copy Control to Outbound Delivery Document (NL)

    Hi -
    Partner Schema CR for 0003 UB Type has been maintained in configuration, which allows CR (Freight Forwarder) partner function to be manually added to UB Document Types (Partner Determination Process u2013 0003 Stock Transfr PurOrd).
    However, even with this configuration the CR partner does not copy to the Outbound Delivery Document.
    After some analysis, I found the following:
    In program SAPLMEPO (MM06EF0P_PARTNERS) FORM PARTNERS in line 97 u201Ccheck EKKO-BSAKZ equal to spaceu201D; if purchase orders have EKKO-BSAKZ = 'T' then never determine partners. I have checked the EKKO table for field BSAKZ and all STOu2019s have a T in that field. If the code is looking for <blank> in order to apply the partner it looks like the program will not attempt to retrieve the Partner Functions with BSAKZ = T.
    All other partners are getting copied to the outbound Delivery, such as PI (Invoicing Party), DP (Delivering Plant), SH (Ship-To)etc.
    Is there a way to have Freight Forwarder partner copy control to Outbound Delivery document at time of Delivery create from either Vendor Master or Customer Master for STO (UB Purchase Order type) / Delivery type NL?
    Thank you,
    Karen

    remark: for me the check is in line 113 (SAPKH60407).
    Please read OSS note 842829:
    2. The system does not transfer the partner data from the STO to the replenishment delivery. This particularly applies to the forwarding agent. The replenishment delivery uses only the customer of the receiving plant (EKPO-WERKS) as a partner. In the replenishment delivery, this customer (EKPV-KUNNR) is the direct goods recipient. The customer is not the sold-to party or a general debtor, for whom the system would determine a (different) goods recipient using the customer master in the replenishment delivery. If the PO header contains a vendor, you can use a modification to transfer the vendor as a partner to the replenishment delivery, if required. However, this is not the standard system behavior. There is no known modification for transferring the forwarding agent.

  • Good receipt with reference to outbound delivery document

    Hello Gurus,
    Could someone please help with the following scenario?
    Article 1234 has base unit of measure pc, altenative measure box, 1 box = 12 PC
    In the purchase order (stock transfer order from one site to another site) 4 box of article 1234 is ordered. Outbound delivery created with reference to the above purchase order (stock transfer order) has quantity of 4 boxes (this is copied from PO). And then an transfer order is created with reference to the above outbound delivery and quantity requested is 4 boxes (copied from outbound delivery), but in the transfer order confirmation the confirmed quantity is 14 pcs (this is now confirmed with base unit of measure). And now if we check the outbound delivery doc, the confirm quantity is 14 pcs (1,167 box )
    But when creating good receipt with reference to the outbound delivery document, the quantity confirmed is now 14.004 pcs (this is calculated with unit of measure conversion table, i guess). But actually good receipt quantity should be 14 pcs instead of 14,004 Pcs!
    What can we do in order to have 14 pc in good receipt?
    Thanks in advance for your great help.
    Br, Ailleen

    Hi,
    Thanks a lot for both of your answers. But if is there a way to receive 14 pcs instead of 14.004 pc although the system did the right calculation according to the conversion rules!
    But in this case the supplying plant has issued 14 pcs but receiving plant has received 14,004 pcs and now there is discrepancy! Is there some enhancement or user exit could fix the situation or do I have to change the coding in order to solve this problem!
    Thanks again for you helpful advice!
    Br, Ailleen

  • How to update packing list inform to an outbound delivery document

    Hi all Experts,
    I meet with an tough requirements, Is there any solution fuction can use to generate packing to a outbound delivery document?
    PLease kindly advice, thanks!
    Regards,
    wei-guo

    Hi,
    I did a little test and, within the method CHANGE_DELIVERY_ITEM, itu2019s possible to fill the picking quantity (structure CS_LIPSD) but unfortunately during the save the added information is lost.
    This is because the BAdI method is fired too soon and the routine PICKMENGE_BEARBEITEN (SAPFV50P) is not called at all.
    The problem is quite complex; even after changing the picking quantities, the picking status still remains open!
    The picked quantity is generally filled:
    u2022     by printing the picking list
    u2022     Warehouse Management by creating a transfer order
    u2022     or by manual entry
    Otherwise, it is assumed that picking has not yet been initiated and the result is that picked quantity is ignored.
    In my opinion itu2019s very difficult to solve your problem using only the BAdI implementation.
    I suggest you to propose an alternative solution such as the automatic processing of Picking Output EK00; easy to activate and absolutely standard!!!!!!
    Regards,
    Andrea

  • One Outbound delivery document per multiple sales orders

    hi,
    We are trying to acheive to create one outbound delivery document for multiple sales order with some custom logic in user exit (which exit to use).
    Is it possible? If so can you please give some inputs?
    thanks
    Manohar

    Chk out the following link for the relebant userexit.
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    Regards,
    AK

  • Print HU label from Outbound delivery using output determination

    Hi,
      We have a business requirement to print HU labels from outbound delivery. The steps followed are
    1) User executes VL02N
    2) User clicks on packing
    3) Material is entered to pack. HU is automatically generated.
    4) After saving the delivery, output message is triggered.
    Output determination is as follows
    1) An Z output type is created.
    2) Form entry and smartform name is assigned to this output type
    Issue:
    The issue is when the output message is triggered and the code in the form entry is executed, the handling unit (from nast) is not yet committed in the database. Since it is not updated in the database table, we cannot get any handling unit data to be printed.
    Any inputs on how to print HU labels using output determination from outbound delivery is appreciated.
    Thanks,
    Sandeep

    Hi Surya,
         Thanks for the reply. But, my question was how to print labels from VL02N when i pack a material on this delivery.
    Regards,
    Sandeep

  • Creation of inbound delivery from outbound delivery

    Hi All,
    Can anybody help me, if I want to create inbound delivery from outbound delivery.
    I found this function module "SHP_IBDLV_CREATE_FROM_OBDLV". But I want handling uniits to be entered by the user.
    Thanks

    Thanks for the feedback. This question is resolved

  • Delete assignment of HU from outbound delivery (VL02N) not working

    Hi All
    I have searched many threads to find the solution to be above problem but none of them was working for me, so posting the query again.
    I hava a dummy pick HU that I create for some purpose, finally i want to delete the assignment of the HU in the outbound delivery.(not to delete the HU completely). For me, the assignment of the HU vanishes from outbound delivery with 3 FM's. 'HU_GET_HUS' , 'V51P_DELETE_RELATIONSHIP' and 'HU_POST'.
    The problem is, when i PGI the delivery, the HU appears again in VL03N. I am not able to understand this strange behavior.
    I have tried all FM's like bapi_hu_delete etc, but they delete teh HU completely which is not my req. I heard abt this FM BAPI_HU_DELETE_FROM_DEL, but am workng in Ecc 5.0 and the FM doesnt exist.
    Pls help
    Thanks

    Hemanth,
    I recall that we used to update the HU status as well when we dissociated HU from delivery,  though can't remember the reason now.
    Pls check the VEKP-STATUS for HU after you have done with these 3 FM calls, I believe you have to update the status to 'BLANK' with the help of some FM, try it first if it works for you by direct updating it in table in Dev.
    BR,
    Diwakar

  • STO Outbound delivery document not generated

    Hi all
    I am creating outbound delivery VL10B with reference to PO(STO), when I exicute (F8) after giving PO no. and Source and supplying Plant, the list is emptey. N docs. is getting created.
    what should I do to solve this problum?
    Help will be appericiated
    Pradeep

    Dear Pradip
    While creating STO itself in ME21N we will be mentioning the supplying plant and receiving plant and receiving storage location
    So why do you search for this in VL10B?
    In your purchase order if the shipping Tab is coming delivery will automatically created in VL10B provided your PO is saved without any error
    Please check your shipping data settings
    Hope this information will be useful to you
    Sales area 0003, 04, 21 plant is 1002
    Sales area 0004, 05, 21 plant is ABCD
    If you transport material from 1002 to ABCD plant then 1002 is supplying plant and ABCD is receiving plant
    Now this ABCD plant should be made as a customer in XD01 mainly with shipping conditions in that data in sales area 0003, 04, 21 and this internal no has to be noted
    In STO the receiving plant is being made as a customer in the supplying plants sales area and the internal customer no has to be assigned
    in-img-mm-purchasing-purchase order-set up STO--define shipping data for plants
    Now in that img activity that i mentioned above against plant 1002 you have to give sales area as 0003, 04, 21
    Against plant ABCD you have mention sales area as 0004, 05, 21 and also this internal customer no in that internal customer tab
    Then only STO can happen between these two assuming that all delivery types and other things are configured pakka
    Assign delivery type and checking rule
    assign document type one step procedure and under delivery tolerance
    Regards
    Raja

  • Outbound Delivery Document Flow (One-Step procedure) Goods Receipt

    I am trying to extract the Goods Receipt status of Outbound Deliveries which are posted using One-Step procedure.  I can do this one delivery at a time using VL03N.
    Some sites (plants) are configured with One-Step procedure and others are configured as Two-Step procedure.
    Document flow of an Outbound Delivery is extracted from table VBFA.
    For the two-step delivery process (Movement type 641) the Goods Receipt is recorded in table VBFA (Subs.doc.categ. / VBTYP_N = 'i').  Therefore, I can easily extract the goods receipts for these deliveries. 
    However, for the one-step procedure (Movement type 647) the Goods Receipt does not appear to be recorded in table VBFA.  Does anyone know which table the Goods Receipt is stored for one-step procedure?
    Using transaction VL03N we can view the document flow.  It appears that for One-Step procedure the Goods Receipt is held at item level.  By highlighting a delivery line in VL03N and viewing the document flow we can see the goods receipt for One-Step deliveries (therefore, the data must be held somewhere).
    I understand that by using One-step procedure the goods receipt is posted automatically, so we can assume that there should never be outstanding Goods Receipts for One-Step sites.  However, I have been tasked with the job of reconciling all deliveries for the past 12 months.  I need to prove that a goods receipt has been posted for every single delivery.
    Any advice is much appreciated.

    Thankyou for the advice.   I will proceed with your recommendation.
    However, the query is inefficient since the link between LIKP and MKPF does not use the primary key (Article Doc. / MBLNR).  We have almost 7 million records in MKPF table. 
    Is there any intermediate tables I can include between LIKP and MKPF so that only primary keys are used for the joins?

  • Outbound delivery document cancelation

    Hi,
    we have delivery documents for GIs at 3PL plants. After the delivery is created - IDOCs are sent to the 3PLs. After they do the GI, they send the GI-IDOCs to us. But although the GI has been made and 3PL s have sent the GI doc via IDOC - the delivery document is not getting updated. What could be the remedy?  We are unable to reverse the delivery by VL09 - as the GI has been by IDOC - system is not allowing us to reverse the delivery doc also.

    Hi,
    1. Try to find out & resolve the error in your inbound idoc from the plants after GI has been done, using the transaction WE02 & WPER where you will get the Idoc details. After correcting the errors you can re-process the Idocs so that your stock & FI postings will be correct.
    2. If this is not possible, you have to Pass a FI JV against the Material & COGS account inorder to reflect the values in your books.
    Now inorder to tally your stock you have to post a physical inv document.
    Sometimes you may find the 2nd solution as not acceptable to business.
    I hope these are the possible solutions to solve your issue.
    Thanks & Regards,

  • Hi , I am not able to create billing document from the delivery document .

    Hi,
    I am facing one problem i am trying to create billing document from delivery document but it is giving error " Payer" and Sold to party not found ".
    in my Delivery Document field partner tab is showing only ship to party it should show payer and sold to party also .
    Although it is maintained in customer AG.
    can any one help in this ????
    thanks !!!!!!!!!!

    Hi Payal,
    1.u check whether u have maintained[entering actual number] payer and bill to party in sales order[ which is copied from customer master].
    2.and check partner determination procedure for delivery document.
    more important is u wouldnot have maintained partner determination procedure for delivery header.[spro->sales and distribution->basic function->partner determination->partner determination for delivery]
    Regards
    Sharad

Maybe you are looking for

  • Is There A Way To Make The "Check Out CNN On Twitter" Pop-Up Stop?

    I had an old DVR that I had to get rid of and before that I got this annoying pop-up to stop appearing but it's been weeks with my new DVR and no matter what I do it keeps popping up on the screen. Sure, you just hit 'exit' on the remote and it goes

  • Setting file name for a downloaded file

    I've set up a file download using code I've gleaned from jsf forums. However, the file name is not being set correctly. When the user downloads File.doc, it shows up as downloadPage.jsf. Am I setting the header correctly? public class VendorInfoBean

  • Online form in Guided Procedures

    hi, Is it possible to have online forms in Guided Procedure scenario? If so, how data handling can be done from one online form to another online form? Regards, Vijayalakshmi B

  • Error in Reversing SC Challan after 180 daysBalance in transaction currency

    Dear Friends, I am getting the following error while reversing the Sub Contract Challan through J1IF13 after 180 days limit crossed. "Balance in transaction currency" Message no. F5702 Kindly tell me how to get rid of this error. Regards, ASK

  • How overrite HD system 7.5

    I've kept a PPC with system 7.5.1 around for reference to prior financial records. Now chose to wipe it clean, along with 3 external HDs. Erased internal disc, then erased three external discs. Maybe that is enough, but I recall that if financial and