How to create inbound delivery (for ASN)?

Hi,
I am looking for a Bapi or a FM to create an inbound delivery for Advance shipment notification (ASN). This function module for creating will be called in the user-exit in the invoice posting idoc program. The manual way to create this inbound delivery is by VL31N. Any help and there experience will be appreciated.
Thanks
Ramesh

Hi,
I am calling this FM after creating a PO with BAPI PO_CREATE1 and it works. I also get the delivery number.
Only create if there were no errors with the po
  read table return with key type = 'E' transporting no fields.
  check sy-subrc <> 0 and testrun <> 'X'.
  read table poschedule into ls_schedule index 1.
  ls_del_header-delivery   = lv_del_no.
  call function 'CONVERT_DATE_TO_INTERNAL'
    exporting
      date_external            = ls_schedule-delivery_date
    importing
      date_internal            = ls_del_header-deliv_date
    exceptions
      date_external_is_invalid = 1
      others                   = 2.
  if sy-subrc <> 0.
    clear ls_ret2.
    ls_ret2-message = 'Anlieferung Fehler bei Datumskonvertierung!'.
    append ls_ret2 to return.
  endif.
  ls_del_header-deliv_time = sy-uzeit.
For each position create single delivery
  loop at poitem into ls_po_item.
    clear: ls_del_item.
    ls_del_item-delivery   = lv_del_no.
    ls_del_item-deliv_item = ls_po_item-po_item.
    ls_del_item-deliv_qty = ls_po_item-quantity.
    ls_del_item-unit      = ls_po_item-po_unit.
    ls_del_item-po_number = poheader-po_number.
    ls_del_item-po_item   = ls_po_item-po_item.
    ls_del_item-po_number = LV_EXPPURCHASEORDER.
    insert ls_del_item into table lt_del_items.
  endloop.
  Create delivery
  call function 'BBP_INB_DELIVERY_CREATE'
    exporting
      is_inb_delivery_header = ls_del_header
    importing
      ef_delivery            = ls_likp-vbeln
    tables
      it_inb_delivery_detail = lt_del_items
      return                 = lt_return.
  loop at lt_return into ls_return.
Convert return table to bapiret2
    call function 'BALW_RETURN_TO_RET2'
      exporting
        return_in = ls_return
      importing
        return_ou = ls_ret2.
    append ls_ret2 to return.
  endloop.
  commit work and wait.

Similar Messages

  • How to create inbound delivery for items with no confirmation control key.

    hi Please help me with this..
    are there any user exits to create an inbound delivery for scheduling agreement items with no confirmation control key.
    my req is
    i have 12 items (me33 transaction) of them three have confirmation control key populated and out of those three 2 will be deleted so only one item is left for inbound delivery creation, but i need to have all this possible for all items with or without confirmation control key.
    thank you

    hi
    for inbound delivery there is BAdi called LE_SHP_DELIVERY_PROC... in there is method called ITEM_DELETION... in this u can flag the item to delete or not..
    this will be triggered for inbound as well as oubound delivery..
    you can check confirmation status for the PO in the table EKES... in this table there is filed called EBTYP.. using this field u can check the PO item confirmation status..
    I hope above information is helpuful for u

  • Creating inbound delivery for the purchase order line items

    Hi Experts,
    Please let me know how can I create inbound delivery for the purchase order line items?  Say, I have a purchase order with 5 line items in it.  I wanted to create an inbound delivery for only 2 line items at this point of time.  Which SAP Standard transaction I have to use and what all  data I need to populate?  I would appreciate any help on this and will reward the right answer.  Please let me know.
    Thank you in advance.
    with regards,
    Muthu Ganapathy.

    Hi,
    While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
    Hope this answers your query.
    Regards
    Irfan.

  • Create inbound delivery for same material with multiple batches

    Hi Experts,
    An ASN( advanced shipping notification) contains multiple batch numbers for same material or line item.An IDOC has different segments with batch numbers but in SAP while creating Inbound delivery(VL31N) only batch number ( segment) get posted automatically in SAP other batches are need to post manuaaly.
    I am using IDoc type : Delivery03 ,Message type: DESADV
    How to resolve this problem?
    Thanks,
    Anil

    Hi Anil,
    Welcome to SCN for your first post. Did you check with your functional people about this.
    Regards,
    Madhu.

  • How to create Inbound Delivery using SHPMNT03 Idoc details...

    Hi,
         I need to create <b><b>Inbound delivery</b> using idoc SHPMNT03</b> details. I am getting all the data required to create Inbound delivery is from this idoc. for that I need to create a custom function module.
    I tried with FM  IDOC_INPUT_DESADV1. But it is for only if you use DELVRY03.
    I haven't (yet) found a way to create automatically an inbound delivery when you post the goods issue from the outbound delivery.
    Does anyone experienced the use of inbound deliveries with STO and what are your recommendation?
    Thanks a lot,
    Ranjith.

    Hi there,
    Please have a look at the following link.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/dc/6b828943d711d1893e0000e8323c4f/frameset.htm
    Hope this helps,
    Kind Regards,
    Matthew

  • Create inbound delivery for movement type 542 in version 4.7

    I have been given a requirement for a third party managed warehouse to receive notification of pending return of unused subcontract materials via movement type 542.  A trigger in the SAP system, whatever it may be, would be transmitted to the warehouse via interface.  The logical choice to me is an inbound delivery, but this is a 4.7 system, and the storage location in SAP is not warehouse managed or handling unit managed.  Creating the outbound delivery to send the material to a subcontract vendor is easy via ME2O, but I have been unable to find a way to create the delivery for return of unused material via movement type 542.  I know that the inbound/outbound delivery process is now standard for all movements in ECC6, but I am having difficulty with this in 4.7.  Please let me know if anyone else has suggestions on this, or if there is a better alternative.  Maybe I'm just thinking about it too hard and overlooking something obvious.

    Hi All,
    Issue is resolved as it is my fault as I have not tested properly.
    Thanks,
    Babu.

  • How  to create one delivery for two sales orders?

    Hi Experts,
    I need to create one delivery for two sales orders. But it fails.
    The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
    Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
    I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
    It not happened because of incorterms.? different dates
    Kindly help regarding this.
    Thanks
    Raghu

    Hi
    To understand splitting behavior, see SAP Note 546668 - FAQ: Delivery split when creating deliveries. And yes, incoterms happens.
    I think that with the help of question 6 you can try to force the merging of SO. Then, see SAP Note 166397 - Delivery split according to customer field ZUKRL, and handling the field ZUKRL in a VOFM in the copy rule I think that you can try to do it.
    Finally See  Note 4505 - Duprec when adding delivery (VL04, VL01, VL10*) to avoid problems while you are merging.
    Regards
    Eduardo

  • How to create one delivery for multiple sales order

    Hi!! Friends,
    Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
    Regards
    AKASH
    Message was edited by:
            AKASH TAMBI

    Hi.,
                  You can combine different orders in to one delivery ,But for the customer Order combination should be checked in  the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • Inbound delivery for ASN Delivery

    Hi,
      I have created an outbound ASN IDOC for intercompany transfer. But this ASN is not creating the Inbound delivery IDOC. I have configured the partner profile for both outbound and Inbound. Please let me know what I am missing.
    Thanks
    Ram

    Hi Ram,
    WIll you be more clear?  on which systems you are trying to create/send Inbound & outbound? 
    Can you tell me what is ASN? and what is the configuration that you did in partner profiles?

  • Can't create Inbound Delivery for PO with Packing type material  -- HU

    Hi friends,
    I create a new packing material, and maintain packing material type. And then create a PO but I can't create an inbound delivery by VL31N.
    The error message:
    No item category exists (Table T184L EL VERP V )
    Message no. VL320
    Diagnosis
    There is no item category available in item category determination in the delivery (table T184L) for the following entries: EL VERP V
    I tried to add new item by SM30 with T184L, but still more errors. So it doesn't mean there are erros with delievery type determination.
    Any help?
    Thanks,
    Bruce
    Edited by: Bruce Hu on Jan 10, 2008 7:53 AM

    Hi Anil,
    Welcome to SCN for your first post. Did you check with your functional people about this.
    Regards,
    Madhu.

  • How to create a delivery for Sales Order

    Hi,
    I am in process of creating a delivery(T-Code: VL01N). for the Sales Order. in one of the Fields it is Asking for ORDER. i am not sure what details to pass here. as i already created a sales order any body tell me where can i get this ORDER details Thanks in Advance.
    Thanks
    Kiran.B

    Hi
    From the sales order screen itself you can create the delivery from the menu
    Sales order -> deliver/y
    or from VL01N , enter shipping point and Order number, create and save
    Reward points if useful
    Regards
    Anji

  • Step for creating inbound delivery in case of customer return.

    Hi,
    When I start vl31N I can create with reference to vendor or PO an inbound delivery.
    How to create inbound delivery with reference to a customer return?
    What to do?
    Thank you in advance,
    Eric van Zundert.

    Hi,
    You can try to create a copy control for return sales order to inbound delivery document. Depending on business requirements like combining vendor PO and returns sales orders, you can try to use VL31N.
    If it is only returns sales orders that needs to be processed, then SAP standard document types and its associated copy control would help.
    Regards
    P.S: Does your scenario relate to import process? I am in the same boat.
    Edited by: Shiva Ram on Jan 22, 2008 2:17 PM

  • Inbound Delivery For Scheduling Agreement Lines using LSMW

    Hi,
    We need to create inbound deliveries for scheduling agreements. Our scheduling Agreements are too big with 200 lines. But the vendor used to send only few discrete lines in his ASN. Is it possible to create inbound deliveries for the Scheduling agreement using LSMW? Is there any standard BAPI or IDOC available to handle this in LSMW? Has anyone done this before?
    Our requirement is as follows.
    1. Create Inbound Delivery for few lines of the Scheduling Agreement
    2. The delivery quantity of the inbound delivery will be a partial quantity of the Scheduling Agreement
    3. Materials are batch managed and the batch number for each inbound delivery item need to be captured.
    4. Vendor's ASN Number and its item number need to be captured at inbound delivery header and item level respectively.
    Note: Delivery Schedule of the Scheduling Agreement is not used in the above scenario.
    If you have any input, it will be really appreciated.
    Regards,
    SP0526

    Hi,
    You can give your scheduling agreement number in the field Purchase Order.
    If you want select from the list, you can click on PO tree (just under create inbound delivery). There selet document category as "L". You will get the scheduling agreement list.
    Regards,
    Prabu

  • Error while creating inbound delivery

    Hi All,
    I get an error while creating inbound delivery from ASN
    "Error during conversion of unit of measure: UoM is missing -> ST BOR131
    Please help solve this issue.
    Thanks in advance
    Regards,
    Thiru

    hi,
    please maintain the uom  for tour material.
    or
    reffer this link
    Alternate Unit of Measure Conversion Rule Error
    /thread/2000551 [original link is broken]
    Thanking you.

  • How to create one inbound delivery for multiple purchase order?

    Hi Experts,
    Please let me know how can I create one inbound delivery for multiple purchasing documents(PO or SA)? 
    Is there a configuration needed for this?  If yes, please let me know the configuration to make this happen.
    Appreciate your help on this.  Right answers will be rewarded.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi,
    my situation is:
    - a WM managed warehouse, society A;
    - a HU managed warehouse (without WM), society B;
    - a purchasing process of HU from society A towards society B.
    Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
    This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
    "V51VP - item was not found - process cancelled".
    Can you help me to transfer these HU?

Maybe you are looking for

  • How can i disable ipv6 in OL7?

    Hi everybody, how can i disable ipv6 on my OL7 box? In /etc/sysctl.d i have test it with the file: ipv6.conf: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.<interface>.disable_ipv6 = 1 But this doesnt work. Does anybody know how can i disable IPv6

  • Help - not able to add icons in flash cs5.5 ipa

    I have created a ipad app using flash cs5.5 which works great until I try to add the different icon fils sized (29x29, 48x48, etc) to the icon tab.  When I add all of the icons I receive teh below error message. Note that I was able to successfully c

  • Desktop Manager - Reconcile Messages Grayed out....

    Hi...I'm not able to configure my messages in the Synchronize tab because it is grayed out...any ideas what to do?  We've uninstalled and reinstalled the software, upgraded to 4.3 and its still grayed out...why? how can i fix this?  My previous black

  • Digital out to analog speak

    I have just bought a new Audigy 2 ZS, but I have a question regarding the possible use of the digital out of the card for my Logitech 560 speakers, with some kind og adabter/converter, as I find it to be quite a hassle to crawl under my desk everytim

  • Firefox home page automatically opens in French rather than English. How do I correct?

    Home page automatically appears in French language. I would prefer that it appear in English. How can I ensure this?