Creation of Delivery with ref to Sales order

Hello,
   I am trying to create the Delivery with reference to Sales Order using BAPI  -  BAPI_OUTB_DELIVERY_CREATE_SLS.
At the of execution , i am getting the error No instance of object type OutboundDelivery has been created. External reference:.
I have entered the sales order details in table parameter SALES_ORDER_ITEMS of BAPI. (Number range for Deliveries are internal)
Can you please suggest me what could be the reason ?
Regards
Narayana

Hi,
Yes, copy controls are maintained for sales order type and delivery type in SPRO settings. The code as below.
loop at t_vbap into ts_vbap.
      t_order-REF_DOC         = ts_vbap-vbeln.
      t_order-REF_ITEM        = ts_vbap-posnr.
      t_order-DLV_QTY         = ts_vbap-KWMENG.
      t_order-SALES_UNIT      = ts_vbap-VRKME.
      t_order-SALES_UNIT_ISO  = ts_vbap-VRKME.
      t_order-DELIV_NUMB = '0084000156'.
      append   t_order.
endloop.
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
*DESTINATION logsys
   EXPORTING
     SHIP_POINT              = '0010'
     DUE_DATE                = DUE_DATE
    DEBUG_FLG               = 'X'
  importing
     delivery                = lf_vbeln
     num_deliveries          = lf_num
  tables
     sales_order_items  = t_order
     deliveries                = lt_deli
     created_items         = lt_itm
     return                     = lt_return
Can you suggest me.

Similar Messages

  • Delivery creation with ref to sales order

    Hi,
        I found couple of BAPI's / FMs to create delivery but i could not able to pick the right one because i am not sure what are the important parameters i need to pass, could any one suggest me the correct bapi / FM with the required parameters for the below requirement.
    1) Needs to create delivery with ref to sales order.
    2) Batch field should be updated in the delivery while creating itself.
    I am just thinking about the FM - GN_DELIVERY_CREATE
    Thanks

    Use this BAPI
    BAPI_OUTB_DELIVERY_CREATE_SLS

  • BAPI for creation of Production Order with Ref to sales order

    Hi all,
    we are using BAPI_PRODORD_CREATE  for creating Production Order with ref to sales order.
    As per the Business Scenario, we are not creating any masters like BOM and Routing, instead
    we are creating Routing directly into the Production Order under operation overview screen.
    during creation of routing system is generating a default operation.
    the following is the error results after running the Bapi.
    "No routing selected"
    Best Regards.
    GTNRNR.

    Hi GTNRNR,
    with out creation of BOM you created routing and in routing for the operations which components did you allocated so that can be used to manufacture the final product. Can you be please specific?
    Regards,
    Madhu.G

  • Re: Purchase REquisition creation with ref to SAles Order

    Hi All,
    I need help on an issue.
    I have sales order creation and when saving Purchase REq is created at the back end. But for the sales order for item category n schedule line category combination does not allow creation of Pur Req. n pur req no. is not dislayed in Sales order.
    But I have Pur Rq created with ref to sales order.
    How is it possible.
    In Pur req  I checked the creation indiacotr, it is with ref to sales order.not manually.
    Can you please help it out..
    Regards,
    Smitha

    Hi,
    Purchase Requisition creation from Sales Order is dependent on the configuration of Schedule line category not Item category. Check configuration of Schedule line category in VOV6.
    Also to see the PR No in Sales Order, double click on the Sales line item and click on the "Purchase Requisition" button under "Schedule Lines" Tab.

  • Creation of Sales Delivery with reference to Sales Order

    Hi SAP Team,
    I tried making a Delivery with reference to Sales Order. Though in Item Category detemination of Delivery configuration, a separate
    Item Category has been configured, but still System picks up the one in Sales Order. Is there a way to get different Item Category at Delivery level.
    Also, for Subitems a different Item Category is proposed, but still it follows the same behaviour, which is at header level.
    Is there any way to change it.
    regards

    Hi,
    Maintain the required values in the T.Code "0184".
    Or follow the path:
    SPRO>Logistics Execution>Shipping>Deliveries>Define Item Category Determination in Deliveries.
    You have maintained the similar values for your delivery type same as sales order type that were maintained in "VOV4" T.Code.
    So that it getting the item category same as the sales order.
    Change the values here,so that new item categories will be appeared in delivery.
    Regards,
    Krishna.

  • Creation of Outbound delivery with respect to sales order

    Hi Gurus,
    I am an Abaper.
    I have a requirement to create outbound delivery with respect to sales order.
    Currently I have the purchase order details.  
    My coordinator has given me a logic.
    From the Purchase order, we have to get the Purchase requisition.
    From Purchase requisition, we have to get the sales order.
    From the sales order, we have to create the outbound delivery.
    Please explain me how to creaet the outbound delivery with respect to sales order.
    Also, how to get the PR from PO and SO from PR.
    Thanks in advance.
    Regards,
    Balaji. R

    Hi balaji,
    I will add the abap code since you are a ABAPER.
    1. To get the Pur. Req. from PO
    Note that PO_NO and PO_LINE_ITEM are variables.
           Select VEBLN VBELP  into (EBKN-VBELN,EBKN-VBELP)
           from EKPO inner join  EBKN on EKPOBANFN = EBKNBANFN
           where EKPOEBELN = PO_NO and EKPOEBELP = PO_LINE_ITEM
    2. And using VL01N you can create the relevant outbound delivery. Use above sales order for this. And record a BDC and write the code.
    Hope this will useful
    Thanks & BR
    sandun

  • Pricing in outbound delivery without ref to sales order

    Hello,
    I am creating a delivery without ref to sales order. I need to do pricing in the delivery for the material sold.
    1 ) I have never done the above. can someone tell  what are the config steps for  the same and what is the t code to create condition records (is it same as VK11 ).
    2 ) secondly I need to carry the pricing in the delivery to the proform invoice created with ref to delivery. How to do the same.
    regards
    Pamela

    Hi
    1 ) I have never done the above. can someone tell what are the config steps for the same and what is the t code to create
    condition records (is it same as VK11 ).
    Yes You need to maintain Condition Records Through VK11 only
    2 ) secondly I need to carry the pricing in the delivery to the proform invoice created with ref to delivery. How to do the same.
    But i am not why you required pricing procedure in delivery , but most the cases Delivery level we required Freight Charges
    At the time of Pro-forma Invoice system will pick the pricing procedure and you can check
    if you still want pricing procedure in Delivery level , assign Pricing procedure to Delivery Type
    Menu Path: SPRO> Logistics Execution>Shipping>Basic Shipping Functions>Pricing--->Define Pricing Procedures for Delivery
    Regards,
    Prasanna

  • Block in delivery without ref to sales order

    Hi,
    I want to make a delivery without ref to sales order. But I want to block it after saving it. How to do that ?
    Can I assign a block at schedule line category level. Will that block the delivery ? Will this be an item block if this is  possible !
    regards
    Sachin

    Hello Sachin,
    I want to make a delivery without ref to sales order. But I want to block it after saving it. How to do that ?
    Use TCode VL02NO
    Can I assign a block at schedule line category level. Will that block the delivery ? Will this be an item block if this is possible !
    Delivery block at  schedule line category level will not block deliver doc, whereas, it will not allow you to create delivery doc with reference to that sales order with delivery block.
    Now for your requirement, to block a delivery doc for further processing. Maintain or select appropriate Reason for Rejection in Delivery Doc Item.
    Regards
    JP

  • Problem creating process order with ref of sale order

    Dear all,
    Kindly give solution for this scenerio..............................
    I am creating Process Order with ref of sale order manually in cor1. In the COR1 screen copy from field i gave my ref sale order, so that particualr order and batch is assigned to that order only.
    My problem was suppose if sale order is created for 10 tonns, but my batch size and resource capacity is 2 tonns only. so first time i change my batch quantity 2 tonns instead of 10 tonns and created my order and confirmed.
    if i go to second time the same process i am doing creating process order with ref of same sale order but it comes again 10 tonns instead of 8 tonns. why it comes like this already i confirmed 2 tonns in this sale order?
    my requirement is if any process order is created with ref of any sale order and again if i am creating any process order with ref of same sale order left quantity only system should show.
    for this what i have to do kindly help to this
    regards,
    s.sakthivel

    Dear KK,
    Pls check whether ZKIN, ZKQT, ZKOR have all the properties similar to IN, QT, OR respectively. If they are different, please ensure that you know the reason why they are different. This check has to be done at tcode VOV8
    Some fields like sales document category, Transaction group, screen seq group, Doc pricing procedure need to be similar to the parent document unless you know why you have changed them.
    Once this check is done, check the copy controls in VTAA. Before that try creating these documents separately without reference. This shoudl work fine only after which you need to check copy control. If this is not working fine, then there is some problem with the document type settings in VOV8. Testing this is possible only if Reference mandatory field is left empty. Make sure that is properly configured.
    Once this is done, check copy controls in VTAA. You can just copy the copycontrol between IN and QT and QT and OR and create for ZKIN to ZKQT and ZKQT to ZKOR.
    Once this is done, check whether your item category settings are properly done , also the schedule line settings. The tcodes are VOV7, VOV6, VOV4, VOV5 etc.
    Now check whether your material master and customer master are consistent with the item category settings(Item category group).
    Now create the transaction. It shoudl work fine.
    Reward if this helps.

  • Create Outbound delivery with QCI from Sale order

    Dear experts!
    Now, I'm getting some issues about searching function to create outbound delivery with QCI from Sale order.
    Note: My sale order have two item (10, 20) and when i create outbound delivery I also want to create QCI for them.
    Help me, Please
    Best regards, Huy.

    What is QCI?

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

  • Return order with ref to Sales Order

    Dear Experts,
    my client requirement is RO must be done with Reference to Sales Order... it is possible by making settings in Documnet of RO... but critical requirement is while doing RO with ref to SO quantity must be in greyed out mode.. user must not be able to change the Quantity ..
    Kindly suggest....
    Abhi

    Dear Abhi
    Though it is not  recommended to have this control, you can try by maintaining "A" for the field "Completion Rule"  in VOV7 for return item category
    Also I dont know why you want this control bcoz always the quantity will not match with what has been originally ordered / supplied and you cannot change the quantity in sale order if you implement this control.
    thanks
    G. Lakshmipathi

  • Automatically creation of delivery group in the sales order

    Hi Can u please tell me how do i create automatically delivery group in the sales order.

    Hi,
    You can maintain the complete delivery indicator in your Customer Master(Ship to Party ) record shipping tab(Partial deliveries).
    As per SAP ,This indicator
    Indicates whether a sales order must be delivered completely in a single delivery or whether the order can be partially delivered and completed over a number of deliveries.
    There by it can form a Delivery group.
    Have a Nice Day.
    Regards,
    Ravi

  • Creation of IBase with reference to sales order for Configurable product.

    Hi Experts,
            Can any one tell me How to create Ibase with reference to sales order for Configurable Products. I know we can create this using IB63, but what i need to do in this Transaction code and what settings i need to do in SPRO.
    pls send ur replies to [email protected]
    Thank you..

    Hi
      You can create IBase using T-Code-IB53 and in there you can give Parent and child products.
    A)Define Installed Base Category and Installation Rules-CRM
    B)Define Object Families
    C)Define default settings for equipment replication
    D)Define Serial Number Profiles-ECC
    E)Txn BF31-ECC
    F)Set up attributes for individual objects
    G)Set up set types
    H)Set up category
    I)Set up views
    J)Allow reference product for IO
    I hope it helps
    If you require further help let me know.
    Cheers
    Raj

  • How to trace the pr's with ref to sales order incase ici is 2 in mrp view

    Hi, maintained 2 in ici field of mrp4 view of the roh material master. system generated pr's without any ref to sales orders. pls advise how to trace which pr's are for which sales order? pls advise.

    HI,
    It is not possible to do in SAP if you give Individial/collective requirement as 2, It is possible if you give 1 but your point is that there will be more PRs in the system. Iit is not possible through customizing.
    I would like to suggest you some options, which of course requires manual intervention.
    1. Suppose system genrates purchase requistion of quantity 100,(if you maintain ici 2)  then you need to split the pr quantity in to more line items and then specify the Account assignment as Sales order and specify the sales order number.
    OR
    1. You have to maintain the vaious sales order details in a Item text in PR.
    Note: Make sure MRP is behaving correctly.
    Regards,
    Sreenivasa
    Edited by: Sreenivasa Rao on May 5, 2010 9:47 AM

Maybe you are looking for

  • Appstore New Terms & Conditions Bug

    Hello everyone! I'm trying to get my Appstore to work on my iPhone - when I attempt to update an app, I get the 'before you can proceed you must read & accept the new T&C' window. After I tap OK it proceeds to the landing page, loads up and displays

  • How to know when ListView finished rendering elements?

    I have a ListView with many items inside. After I assign the ListView an ItemsSource, I need to know when all items finished rendering on my page. I can just nothing with my eyes it takes like 2 seconds to render all elements, and I need to subscribe

  • File Storing path in DMS

    Dear Team ,   i have created one Content Rep. and its corresponding storage category. The allocated path for FI Docs is "D:\SAP\ContRep\<Content Rep.>" , so as per link all docs related to FI should store in mentioned path and it is storing in the sa

  • Using ADM for create custom drawed items

    Hi, I've started a new color selector plugin for CS3. The Win version works well. But the Mac version doesn't call the draw procs (set by Item Suite's SetDrawProc). I've create all items on the dialog box by ADM Dialog Suite (CreateItem). All the tra

  • File scenario avoiding SOAP

    Hi,      I want to configure File to HTTP Scenario. I Want to Read a file and send it over via HTTP. I also wants to avoid SOAP and instead post the file as a simple CGI request. And I should get the same source file name in Target also. Valuable Inp