Delivery from special order stcok

Hi ,
I've created a sale order , the stock is transferred to sales order stock from unresticted use, while i create a delivery can i issue goods from sales order stock.
Please clarify.

Hi Devi,
         As per my understanding about your thread
--> when you create sales order the unrestricted stock got reserved for that sales order so it has been to as sales order stock.
-->When you create delivery for that sales order the system will convert that stock as delivery(It reserved for that delivery) stock if you do the PGI for that delivery the stock will not visable no more in the stock over view.
-->Finally When you do the PGI system will take the stock from the delivery stock only, it will happen in the background we no need to specify whether that PGI from Sales order stock or delivery stock.
--->Based on the storage location it will be happen.
I hope it will clear for you,
Regards,
Murali.

Similar Messages

  • Delivery from Sale Order for Inquiry stock

    Dear All,
    We have unique requirement from client mentioned below, any help would be greatly appreciated.
    This is a trading sale which is initiated from inquiry.
    1. Inquiry is created in SD, which in turn triggers Purchase Requisition.
    2. PR is converted to RFQ.
    3. Based on RFQ prices are negotiated with vendors, then Quotation is sent to Customer from VA21 which is created against inquiry.
    4. Now when the PO is created w.r.t RFQ, then GR is done , Stock will be lying against inquiry.
    5. But i want to do delivery from sales order for stock lying against inquiry.
    we are looking for a workaround solution.
    Note:
    1. Client has disagreed with Stock Movement from Inquiry to quotation using MB1B, as it becomes manual transaction.
    2. PR triggering has to be @ Inquiry, as sale order will not be created until quotation is approved.
    Looking forward for valuable inputs.
    Thanks in advance
    Best Regards,
    Chaithru

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • BAPI or FM to create outbound delivery from Sales order

    Hello All,
    My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
    For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
    The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
    I should not use two FM.
    Could you please tell me some FM which does both in one go?
    Thanks and Regards,
    Rahul Sinha

    Hi
    Hi,
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: / 'Delivery ', t_created-document_numb.
    Regards,
    Sreeram

  • Function Module / BAPI for Inbound Delivery from Purchase Order

    Hi,
    I need to create an inbound delivery from Purchase Order items and am looking out for some Function Module or BAPI for the same.
    The requirement is that i should be able to specify selected line items from PO for delivery.
    I tried the BDC method for VL31N , but the particular item selection is problem, since by default it shows all the items of PO and i want only selected items.
    Do reply.
    Thanks in advance.

    check these and their documentations.
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries
    Regards
    Prabhu

  • BAPI to create Delivery from Sales Order posting EIKP data

    Hi All,
    I'm searching for BAPIs to create a Delivery from Sales Order which I can update/insert data into EIKP table because I am receiving data that it must be saved into ZOLLA and ZOLLB fields (Customs Office: Office of Exit/Entry and Destination for Foreign Trade).
    I tried with BAPI_OUTB_DELIVERY_SAVEREPLICA, BAPI_OUTB_DELIVERY_CREATE_SLS and BAPI_DELIVERYPROCESSING_EXEC but I didn't find structures with these fields.
    Please, I need some help to resolve this issue.
    Thanks in advance.

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Problems for creating a delivery from a order with less items

    hye, I have created a delivery from a sales order and all is ok. So, If I put less quantity in severals items, the delivery is generated ok and the sales order is OPEN status.
    Now , I want to generate a delivery from sales order, but I don´t want to include in my delivery all sales order's items. For example, if I have in my sales order four items (Itm1,Itm2,Itm3,Itm4) with theirs quantity, by SDK I want to generate the Delivery with Itm2 and Itm3 only. I can't do that. I hate It,jajajajajaja.
    With the next FOR, I get do it with all Items but I don´t know to say it that when status = 0 "jump" this item.
             delivery.CardCode = Order.CardCode
             delivery.DocDueDate = Order.DocDueDate
             delivery.DocDate = Order.DocDate
             For i = 0 To Order.Lines.Count - 1
                 delivery.Lines.BaseType = 17
                 delivery.Lines.BaseEntry = Order.DocEntry
                 Status = 1
                  If Status <> 0 Then
                       delivery.Lines.BaseLine = place
                       If i <> Order.Lines.Count - 1 Then
                          delivery.Lines.Add
                          place = place + 1
                       End If
                  End If
              Next
         retval = delivery.Add
    Thanks and I hope to get a solution.

    What is "it" that you cannot do (+ hate)???
    What is "status"? LineStatus???
    What is your problem when you try to skip an item?
    PS: You should always use enums instead of hard-coded values e.g.: Use the BoAPARDocumentTypes Enumeration for delivery.Lines.BaseType

  • How to change a delivery from complete order to partial order

    Hi,
    We have create a delivery from a sale order that initially it was a complete order. During the picking of the TO we found a difference of stock of one unit. We asked to the client if they accept the partial order and they said that there was no problem.
    We change the sales order from complete to partial, but the delivery is not accepting the difference, is always warning that we haven't arrive to the quantity.
    I have read that there is no way to change the delivery so we have to delete it and create a new one. But we have a problem, the original one was of 56 pallets and all of them are done and label except the last one, if I delete de delivery I will have to move the TO again to the stock and dismount the 56 pallets, and repeat the picking, so, somebody knows a solution to avoid this and not move again everything just for one piece?
    Thanks

    Hi Allen
    Well the problem is that the order is finished but with a difference os 1 unit of the 259 that we have to pick.
    If I cancel the order I will have to move all the material to the bins that they proceed and repeat the picking with a new order to pick exactly the same amount of material that I have now.
    The problem is, how do I make a new delivery and a new order but without moving the material to the bins and repeat the picking again?
    Best Regards and thanks for your time
    Edited by: enriquerolo on Mar 5, 2012 7:32 AM

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

  • Create delivery from Purchase order

    Hi all,
    I want to know the TCode to create a delivery from a Purchase Order
    Harini

    HI HARINI KESANI,
                                 IN ORDER TO CREATE DELIVERY FROM PO CAN DO THRU THE T.CODE
    VL10B( BATCHES). ENTER THE PURCHASE DOCUMENT IN THE PURCHASE ORDERS TAB PAGE, CLICK ON EXECUTE
    YOU WILL ENTER INTO ANOTHER SCREEN , SELECT THE LINE ITEM AND CLICK ON EXECUTE BACKGROUND.
    YOU WILL GET THE DELIVERY NO., GO TO VL02N AND DO THE POST GOODS ISSUE.
      YOUR CAN ALSO CHECK THE DELIVERY NO. IN THE P.O , PURCHASSE ORDER HISTORY TAB PAGE, THERE U CAN SEE THE STATUS OF THE GOODS ALSO , WHETHER MATERIAL DELIVERED ,ISSUED AND GR.
    REGARDS,
    RAM

  • Profit center substitution in delivery from Purchase Order

    Hi all
    Hi have a stock transfer process between two company (1 sending company and the different target companies). I must change the profit center of sending company following the target company code (profit center A for target company A, B for B,etc.). The sales order substitution for PC doesn't work in this case because the delivery born from a PO not from a SO. I find I can make the change for the goods movement  with the exit EXIT_SAPLPCRW_002, but I don't found exit for the delivery document (important for the intercompany invoice profit center). Someone have ideas?
    thank
    Davide

    GGB1?

  • Changing PO date to Actual GI date in Delivery from SALES ORDER(VA01)

    THe Actual Requirement is...Whenever I create a SALES Order with PO date this PO date should automatically trigger in Actual GI date field in Delivery.
    I just want to share my solution before I get some help from you Guys.. I have actually used a userexit MV50AFZ1. This was working fine for me when they are creating the order manually.
    But the client's requirement is that.. it should work for automatic process.. this is nothing a FILE Is being send to SAP through MIDDLEWARE and IDOC get triggers with that... So the CLients wants when this process is happening he wants the PO date of the Sales order to be the ACTUAL GI DATE in Delivery.
    Can you please help me out with this Aumatic Process...

    Shivakumar,
    U would need to check the inbound FM associated with the particular IDOC...you would need to make similar changes as you did in MV50AF71 to fulfill your requirement.
    Regards
    Anurag

  • Workflow for Delivery from Sales Order Creation

    Hi All,
    I am new to SAP workflow.  There is a requirement to create a delivery through VL04 (in background) based on the Shipping Point of the approved Sales Order.  How can this be done?  I am assuming that I should be using BUS2032 for the Sales Order and BUS2015 for the Delivery. 
    The first step should be to send an email that gives the user two options (Approve and Reject) once a Sales Order is saved.  However, I am unsure of how to pass parameters to VL04 and submit the program.
    For example, if the order is approved the Shipping Point will be passed to VL04 and run in background to create the delivery.  How can you determine the Shipping Point from BUS2032?  I did not see any attribute for this within the BOR.  Also, how do you create the step to submit that Shipping Point to transaction VL04 in background? 
    Any help you can give would be greatly appreciated.  Thanks.
    John

    Hello,
    You could try using a BDC with VL04 but first preference would be to see if there are any BAPI functions (search for BAPI) that can do this.
    If BUS2032 doesn't have an attribute that you want (eg shipping point) then sub-delegate to ZBUS2032 and add the attribute, it's straightforward. You just have to know how to determine the value programmatically.
    regards
    Rick Bakker
    hanabi technology

  • BAPI or FM to create direct delivery from special stock

    I am looking for a BAPI or FM for creating Delivery automatically base on special stock.
    In specail stock we have goods with sales order.
    let me have your advice soon.
    Thanks.

    Hello ,
    Check the following FM.
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    Thanks,
    Krishnakumar

  • User exit while creating delivery from sales order

    Hi Guys ,
    Is there any user exit in sales order which triggers when we try to DELIVER(from the menu bar) .
    My requirement is to not include some line items(base on some condition) before they are included in the delivery .
    Thnx in advance .
    Anil

    Hi Naimesh ,
    Thnx for your reply.
    I'm not sure of the functionality in VOFM .Can u please tell me how can i acheive my current functionality as explained above in my question .
    I'll tell u my requirement .
    When creating delivery , I have to check for some condition and depending upon this condition , the line items must not be included in the delivery .
    I have acheived this by BADI  LE_SHLP_DELIVERY~SAVE_DOCUMENT_PREPARE.
    if suppose any line items gets deleted in the delivery(based upon my condition) , and then if I look at the status of the slaes order(VA03) , it shows partially confirmed at the header level and the item which is rejected(in delivery) shows OPEN .
    Can u tell me how to update the status of the sales order header and item level (if any item is deleted) during creation of delivery .
    Thnx .
    Anil

Maybe you are looking for

  • GetURL problem in Internet Explorer 7 RC1

    I'm doing the following in Internet Explorer 7 RC1: _root.getURL("foo.html", "_target"); However, it always loads in the current window, and not a new one. Has anyone else been experiencing this in the new IE release? I've checked my IE config settin

  • Unable to get into config mode in ASA5540

    hi, after issueing the command "aaa authorization command LOCAL" , iam unable to get into the config mode. is there any way to recover without doing password recovery?

  • I am not sure what happened, but I am unable to see or hear any videos/tv shows I have in Itunes, but my music plays fine?  Ideas?

    I am not sure at what point this became a problem, but when I go to play any of my movies or tv shows I have in Itunes, all I get is a black screen with no picture or sound.  Even if I end up looking stupid because it is something simple, I am up for

  • Mac Lion OSX

    I am using an i7 Macbook Pro & have recently upgraded to Mac's Lion OSX. My problem is 'Mission Control is not working properly on my Mac. Just earlier, the 6 'Spaces' that I have created was missing & I have to search the net for an answer. I have a

  • Are IVI drivers supported on RT?

     I have a PXI-4060 DMM on a remote system.  I have been trying to initialize the DMM but have had no success using the IVI drivers.  I have set up a Logical Name that is linked to the Driver Session for the 4060, but these are setup in MAX under the