BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

Hi Everybody,
       We are in ECC 5.0 version.
       I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
       Is any BAPI available for this ?
       Any input on this will be very much helpfull.
       Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
       Thanks in advance.
regards,
Nagarajan.J

Hi Nagarajan,
The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
The below is the sample code...
  data:lt_request      like bapideliciousrequest
                                occurs 0 with header line,
       lt_createditems like bapideliciouscreateditems
                                occurs 0 with header line,
       lt_return       like bapiret2
                                occurs 0 with header line.
    lt_request-document_type      = 'A'.
    lt_request-document_numb      = vbeln.
    lt_request-document_item      = posnr.
  lt_request-material           = matnr.
  lt_request-plant              = werks.
  lt_request-stge_loc           = lgort.
  lt_request-quantity_base__uom = base_uom_qty.
  lt_request-delivery_date      = sy-datum.
  append lt_request.
  call function 'BAPI_DELIVERYPROCESSING_EXEC'
  EXPORTING
    DELIVERY_EXTEND       =
    TECHN_CONTROL         =
    tables
      request               = lt_request
      createditems          = lt_createditems
      return                = lt_return.
  loop at lt_return where type = 'A'
                      or  type = 'E'.
    exit.
  endloop.
  if sy-subrc <> 0.
Use the BAPI for Commit
    call function 'BAPI_TRANSACTION_COMMIT'
         exporting
              wait = 'H'.
  endif.
Thanks
Ramakrishna

Similar Messages

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • Error During Delivery creation with reference to Sales order

    Hi all,
    I am confused while creating delivery order with reference to sales order as this error *" Number of copying routine for table VBKD is missing in Table TVCPL"* is coming again and again.
    I have perhaps made all possible things in VTLA ( Copy sales doc to delivery doc) but still i m finding it difficult to remove it
    Please guide me in it.

    Hi,
    You will need to make assignment from So item to Delivery item please check if copy control is maintained at item level. Also make sure that Copy controls are maintianed for the billing document from the SO & Delivery both as this would be the next step.

  • IDoc or BAPI for inbound delivery creation with reference to PO.

    Hi
    I have requirement to create a inbound delivery, I  will get a ASN from external system with PO, Vendor Material number & batch. I want to know is there any BAPI or IDoc that can be used to create inbound delivery in R/3. I used BBP_INB_DELIVERY_CREATE to create inbound delivery and I was successful but problem is that inbound delivery was not updated with Vendor Material number & Batch.  Can some one suggest me any other BAPI or IDoc ?
    Thanks in advance
    Nagendra P Boggarapu
    Edited by: Nagendra P Boggarapu on May 6, 2010 4:06 PM

    Use Delvry0* IDOC.
    Reddy

  • Delivery note with reference to sales order - 0 quantity items

    Hi all,
    our system allows items with quantity 0 to be created in delivery notes with reference to sales orders.
    This happens when some items in a sales order are out of stock while others are availiable. The unavailable items are included in the delivery note, but have quantity 0.
    The requirement is to eliminate this behavior and to create delivery notes with availiable items only.
    I would be grateful for any advice how to realise this.
    Best regards, Andreas

    Make the necessary configuration i.e. Check quantity 0 field value should be maintained as B in the respective delivery item category using transaction 0VLP.
    Regards,
    GSL.

  • BAPI to create notification service with reference to sales order

    Hi,
    My need is to create a service notification TC IW51 with reference to sales order (credit memo request).
    is there a bapi to do this or i must do a bdc?
    please help.
    A+
    Ihsen ABROUG

    I have custom screen fields on notification service!
    i think a bdc is better.

  • Automise CS61 BOM creation with reference to Sales order

    Hi Experts.
    Need your help in fixing one scenario:
    We have scenarion data coming from third party containing BOM data with respect to Sales order.
    We are using XI/PI,
    1: Do we have any idoc for CS61 master creation. (Not likely to move in bdc ....etc)
    2: How to Create multilevel in that....
    Please guide .. Help is appreciable.
    Regards
    Deepak Sodhi

    Hi,
    You will need to make assignment from So item to Delivery item please check if copy control is maintained at item level. Also make sure that Copy controls are maintianed for the billing document from the SO & Delivery both as this would be the next step.

  • 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

  • Invoice creation with reference to Sales Order no in IDoc

    Hi Guys,
    Is it possible to create a Invoice with reference to the  sales order no in IDOC
    Regards
    Sathis.

    Hi,
    Use FM rv_invoice_create.
    BR,
    Lokeswari.

  • BAPI for creating scheduling agreement with reference to Contract agreement

    Hi All ,
    Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
    Thanks for your help.
    Vadivukkarasi

    Hi,
       Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
    check these
    BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
    BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
    Regards

  • Using BAPI for outbound delivery processing "BAPI_DELIVERYPROCESSING_EXEC"

    Hi all,
    I am using this bapi "BAPI_DELIVERYPROCESSING_EXEC" for Outound delivery processing. But How can I use this BAPI for Batch Split functionality. Because Here we have to enter batch also while processing outbound delivery with reference to Sales Order. Please reply anyone on high priority
    Regards,
    Venkat
    Ph: 9990417848

    Hi,
    When u r using BAPI then include in it this batch Split fnality like do the recording in SHDB and transfer recording and in this recording record the batch split.
    Also what u can do is create a BDC and include the std bapi with this batch split in it.
    Regards
    Krishna

  • Control over qty in outbound delivery created with reference to P.O

    Dear Gurus,
    I am trying to create a outbound delivery document with reference to the purchase order. But, the system is allowing more
    quantity in delivery document than in purchase order. How to control it.
    Regards,
    Krishna

    Hi,
    You can control this through item category fetched in delivery. Please check whether you have set error message or note about situation for overdelivery under following customization path;
    SPRO>>Logistics Execution>>Shipping>>Deliveries>>Define Item Categories for Deliveries
    Here for your relevant item category, check under quantity table the entry maintain under 'Check Overdelivery'
    You can set it as A- So that user get the note of the situation or B- so that it gives error message.
    Regards,
    Udaya.

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

  • Creation of production order with reference to sales order

    dear all guru's,
                       i m having a requirement of creating production order with ref to sales order but without changing my old strategy of make to stock.
    regards
    ujwal

    Hi,
    For the purpose of creation of production order with reference to sales order while maintaing MTS strategy you need to maintain Make to stock strategy 40 in strategy group in MRP-3 View of Material Master.
    This is the only Make-to-Stock Strategy which enables you create Production Order against both Sales order as well as Demand / PIR.
    So if your strategy group is already 40 then you need not change it.
    However if you are using any other Make-to - Stock strategy like 10, 11 etc. then it is not possible to create Production Order against Sales Order since they dont consider Sales Order in planning.So you need to change them and set strategy group as 40.
    Hope this helps.
    Revert if you have any doubt.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Sep 27, 2008 8:50 AM

Maybe you are looking for

  • Safari hangs and Lion Crashes

    Hi, I was borwsing the web in my MacBook Pro using Safari 5.1. I was composing a email on Gmail when the colorful spinwheel appeared. I let the spinwheel to run for about 45 seconds before attempting a Force Quit. Since Safari did not get out of its

  • Importing Issues:  I'm New At This

    So I'm new at this and not entirely savvy with the Mac. I am trying to bring in old home movies that I got put onto DVDs. I am having no luck importing them at all and I'm looking for assistance. I have tried dragging the dvd icon into the imovie spa

  • Tween class in loaded mcs

    I can't seem to find anything that says you can't use the tween class in movie clips that will be loaded into other movie clips that also use the tween class. Can anyone shed some light on this subject for me? My tweens are not working in my loaded s

  • Measurement and Automation Explorer (MAX) configuration export and import fails, files missing

    <I don't see a board for MAX so I posted it here.  I hope you don't mind.> I am trying to migrate to a new computer and have successfully moved the LV code but it relies on the configuration setup in MAX to operate.  There are many configuration item

  • EHP4 Support Packages installation question

    I am running EHP4 SP03 and want to upgrade to Stack 04. Do I still use EHPI? The documentation states to use this tool but I thought EHPI was used for upgrade of EHP4.... What is the difference then and what happens during a repository swtich which s