BAPI for inbound delivery creation

Hi,
I have to create and modify inbound deliveries from a code, so I'm wondering if exists any BAPI (or function module) to create or modify inbound delivery.
Thanks in advance

This is an example of BAPI_INB_DELIVERY_CHANGE. It is in the documentation of the function
I hope it helps you...
Example
If you want to change the quantity for a distributed quantity, then following entries are required for the transfer to the connected system:
In the header data of inbound delivery parameter (HEADER_DATA)
The delivery number (DELIV_NUMB)
In parameter item data of inbound delivery (ITEM_DATA)
The delivery number (DELIV_NUMB)
The delivery item (DELIV_ITEM)
The delivery quantity in sales unit (DLV_QTY)
The actual delivery quantity in base UoM (DLV_QTY_IMUNIT)
The sales unit (SALES_UNIT)
The ISO code for the sales unit (SALES_UNIT_ISO)
The base unit of measure (BASE_UOM)
The ISO code for the base unit of measure (BASE_UOM_ISO)
In the control of the inbound delivery at item level parameter (ITEM_CONTROL)
The delivery number (DELIV_NUMB)
The delivery item (DELIV_ITEM)
The Change Delivery Quantity indicator(CHG_DELQTY)

Similar Messages

  • 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

  • BAPI For Inbound Delivery using Purchase Order Number

    Hi All,
    Is there any BAPI for posting Inbound Delivery (VL31N) using Purchase Order as reference.
    thanks
    bobby

    Not sure what it has to do with enhancements and modifications, but there is no such BAPI:
    http://tech.groups.yahoo.com/group/ABAP/message/38307
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/bapi-for-inbound-delivery-creation-and-update-vl31n-1201265
    FYI all BAPIs may be viewed in BAPI transaction.

  • 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

  • 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 for inbound delivery using PO

    Hi experts,
    I want to create a bapi for inbound delivery using PO.
    which bapi or FM should i use and can you send me the code for that.
    Thanks,
    Rajiv

    Hi Rajiv,
    Please check this FM --> BAPI_DELIVERYPROCESSING_EXEC
    Please check these threads
    Bapi to create inbound delivery
    BAPI to create inbound delivery
    Hope this would help you.
    Good luck
    Narin

  • Finding BAPI for  inbound Delivery change(VL32N)

    HI,
    Plz help me For finding BAPI for  inbound Delivery change(VL32N).
    I have to pass delivery no as input parameter and should able to change shipment heder information
    like Special processing indicator.
    REGARDS,
    Sunil Sahoo.

    hi ,
    there are three  BAPI  your requirment
    1) BAPI_INB_DELIVERY_CONFIRM_DEC
    2) BAPI_INB_DELIVERY_SAVEREPLICA
    3) BAPI_INB_DELIVERY_CHANGE
    but for requirment
    The third BAPI
    BAPI_INB_DELIVERY_CHANGE
    will Sound promising. try this out
    regards
    Prashant

  • 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

  • BAPI for Inbound Delivery Batch Split

    Hello Friends,
      I need any BAPI/BADI to assign batch split items to inbound delivery.  In out scenario, we generate transfer posting in MIGO with split batches and during inbound delivery generation in background, system generates seperate line items instead batch split items.  Now we need any BAPI/BADI to assign the batch split items during inbound delivery creation/change.
    Appreciate your support
    Best Regards,
    Goutham

    Hi Goutham,
    Please trt to use the BADI LE_SHP_DELIVERY_PROC - methods FILL_DELIVERY_ITEM and CHANGE_DELIVERY_ITEM when VB_CREATE_BATCH is called.
    As per note 317531 it is not possible to create bacthes in an SAP standard system via VL31N. There's no update on table MCHA even if you enter a new batch in the inbound delivery.
    I hope this information helps you.
    Kind regards,
    Fábio Almeida
    MM Consultant

  • User exit to change partner for inbound delivery creation

    Hello,
    I have a requirement to change the partner number for
    the inbound delivery creation.
    I only see the USEREXIT_MOVE_FIELD_TO_LIKP but I am not sure if this is
    the right user exit for this requirement.
    Is there the user exit for modifying partner in the inbound delivery?
    Thanks in advance,

    HI
    There is a program with which you can find the available exits as per your requirement. You have to execute the same and give your transaction code. Hope this helps...
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    <b>Do reward if useful...</b>
    Regards
    Dinesh

  • Confirmation control key check for inbound delivery creation

    Hi,
    Currently, in the Client's company, the process of receiving goods from purchase orders looks like that (SAP-wise):
    - create a purchase order,
    - receive goods using MIGO and automatically create an inbound delivery,
    - pack the delivery and post goods receipt.
    Recently, some patches have been installed, including one described by note 1602047 (which basically enforces checking confirmation control keys if goods receipt assignment and goods receipt relevance are activated for inbound deliveries). Note says that it only affects two-step stock transfer and creation of automatic inbound deliveries using SPED output but it seems it also affects other basic processes like PO receipt in MIGO.
    Now, when using the old control key (that had MRP-Relevant and GR-Relevant fields checked), the system is unable to automatically create an inbound delivery after the goods receipt is posted with MIGO (with message VL148 - Not possible to create an inbound delivery). I learned that this is because the "GR Assignment" field must be checked in the confirmation control key so it's possible to automatically create aninbound delivery after receiving a purchase order in MIGO.
    After changing the confirmation control key to have the missing field checked it's not possible anymore to receive goods from PO in MIGO as the PO requires shipping notification in order to be processed in MIGO thus requiring of manual creation of an inbound delivery.
    Is there any way to skip this check so the process would remain the same (this model has been working fine for few years in the Client's system) and the inbound delievery would be created automatically after posting the receipt in MIGO?
    Thanks in advance,
    Piotr

    Hi,
    don't know if you found a solution, but we received the following message from SAP:
    The advent of the new version requires some attention to the users. It
    was necessary to avoid inconsistencies which in the past version the
    system was susceptible.
    Main Program SAPMM07M
    Source code of MM07MLVS
    sy-msgid VL sy-msgty E sy-msgno 148
    I have checked the process and through debugged I could confirm the
    following information SAP is providing to all similar incidents reportedfor us:
    Error message VL 148 is issued if in the confirmation control key used
    in the purchase order, the fields for MRP-relevance (T163G-KZDIS),
    GR relevance (T163G-WEREL) and GR assignment indicator (T163G-WEZUO)
    are not set.
    The correction of note 1602047 was necessary to avoid inconsistencies
    (table EKES) in the purchase order. Without having the GR assignment
    (T163G-WEZUO) set, there is no unique reference created between the
    purchase order history (table EKBE) and the inbound delivery
    confirmation (table EKES) at goods receipt which leads to a problem if
    several inbound deliveries exist for the same purchase order.
    If you set T163G-WEZUO to 'X', this assures that, for an inbound
    delivery, the confirmation record (EKES) belonging to this inbound
    delivery (EKES-VBELN) is also accurately updated at goods receipt.
    How to solve the issue?
    Use a confirmation control key with the GR assignment indicator set
    and then create the inbound delivery with VL31N. If you want to be able
    to create the inbound delivery with reference to a certain line item in
    the PO, use transaction VL34.
    If you still want to use transaction MIGO, there is the following
    workaround:
    - Create a purchase order without any confirmation control key
    - Create a goods receipt (GR) in transaction MIGO with reference to this PO and post the GR to a non-HU-managed storage location
    - Create a transfer posting with MIGO using movement type 311 to
    transfer the goods from the non-HU-managed storage location to the
    HU-managed storage location.
    As the transfer posting is an additional step for the user, the whole
    process could be automated using a partner storage location
    (T001l-PARLG) for the GR which then triggers (through a modification)
    the BAPI 'BAPI_GOODSMVT_CREATE' to create the transfer posting without
    user interaction.
    I hope to have satisfied you on the reason why it is now happening and
    also I believe you can explain to business that it is a new behavior
    necessary done from SAP side to avoid worse situations, we are aware of
    potential dissatisfaction it might cause. SAP Support is always
    available to clarify any issue.
    Sorry for not having a more positive answer.
    I hope it helps!
    Leentje

  • BAPI for Inbound delivery

    Hi,
    I am interested knowing, if there is any BAPI available for doing Inbound Delivery in SAP.
    I have a requirement to do partial inbound delivery which I cant do with VL31n or VL30. even if can do with these transactions,
    I will not be able to run them in background.
    Any help in this regard is highly appreciated.

    Hi all, was working with similar problem.
    I used GN_DELIVERY_CREATE and wrapped it up into method.
    May be will be useful.
    It creates inbound delivery by PO/STO
    Method signature :
    I_EBELN     Importing  Type     EBELN Purchasing Document Number
    I_COMMIT Importing Type     ANY Commit database changes
    I_LFDAT     Importing    Type LFDAT SY-DATUM
    E_VBELN     Exporting    Type VBELN_VL Delivery
    ET_LIPS       Exporting  Type /SAPSLL/LIPS_R3_T
    ET_RETURN Exporting  Type BAPIRET2_T
    E_RC       Changing   Type SYSUBRC
    E_MESSAGE Changing   Type ANY
    Method itself:
    method create_inb_dlvr_by_po.
    *-- Logic for current method was extracted from
    *-- source code of VL31N dialog transaction
      data l_sd_doc_category type vbtyp value 'V'.
      data l_ibtyp type t163d-ibtyp value '2'.
      data l_func(1) value '1'.
      constants c_error(1) value 'E'.
      field-symbols <wa_xkomdlgn> type komdlgn.
      data lt_lips      type table of lips.
      data wa_lips      type lips.
      data lt_errors    type table of wuebs.
      data wa_errors    type wuebs.
      data wa_return    type bapiret2.
      data lt_wueb      type table of wueb.
      data wa_wueb      type wueb.
      data vbsk_i       type vbsk.
      data l_no_commit  type char01.
      data lt_xkomdlgn  type table of komdlgn.
      data lt_xvbfs     type table of vbfs.
      data lt_xvbls     type table of vbls.
      data vbsk_e       type vbsk.
      data lt_splitprot type vlikp_t_splitprot.
      data wa_tvlk      type tvlk.
      data wa_likp      type likp.
      clear: e_rc, e_message.
    *-- Prepare data for delivery creation
      wa_wueb-ebeln = i_ebeln.
      append wa_wueb to lt_wueb.
    *-- Get delivery type
      call function 'ME_CONFIRMATION_DELIVERY_TYPE'
           exporting
                i_func              = l_func
           changing
                c_ibtyp             = l_ibtyp
                c_lfart             = wa_likp-lfart
           exceptions
                function_not_valid  = 01
                param_value_missing = 02
                no_item_found       = 03
                error_message       = 04.
      if not sy-subrc is initial.
        e_rc = sy-subrc.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into e_message.
        exit.
      endif.
    *-- Get default order type
      select single daart into wa_tvlk-daart
                          from tvlk
                          where lfart eq wa_likp-lfart.
      if not sy-subrc is initial.
        e_rc = sy-subrc.
        e_message = 'Delivery type not found'(001).
        exit.
      endif.
    *-- Fill communiaction table from PO data
      call function 'ME_CONFIRMATION_READ_AVIS'
           exporting
                ldate         = sy-datum
           tables
                t_kom         = lt_xkomdlgn
                t_wueb        = lt_wueb
                errors        = lt_errors
           exceptions
                error_message = 99.
      if et_return is supplied.
        clear wa_return.
        loop at lt_errors into wa_errors.
          wa_return-id         = wa_errors-msgid.
          wa_return-type       = wa_errors-msgty.
          wa_return-number     = wa_errors-msgno.
          wa_return-message_v1 = wa_errors-msgv1.
          wa_return-message_v2 = wa_errors-msgv2.
          wa_return-message_v3 = wa_errors-msgv3.
          wa_return-message_v4 = wa_errors-msgv4.
          append wa_return to et_return.
        endloop.
      endif.
      loop at lt_errors into wa_errors where msgty = c_error.
        message id wa_errors-msgid
           type wa_errors-msgty
           number wa_errors-msgno
           with wa_errors-msgv1 wa_errors-msgv2
                wa_errors-msgv3 wa_errors-msgv4
           into e_message.
        e_rc = 8.
        exit.
      endloop.
      check e_rc is initial.
    *-- Set delivery date
      wa_likp-lfdat = i_lfdat.
    *-- Prepare General Delivery Interface data
      loop at lt_xkomdlgn assigning <wa_xkomdlgn>.
        <wa_xkomdlgn>-lfart = wa_likp-lfart.
        <wa_xkomdlgn>-auart = wa_tvlk-daart.
        <wa_xkomdlgn>-vgtyp = l_sd_doc_category.
        <wa_xkomdlgn>-lfdat = wa_likp-lfdat.
        <wa_xkomdlgn>-lfuhr = wa_likp-lfuhr.
        <wa_xkomdlgn>-bolnr = wa_likp-bolnr.
        <wa_xkomdlgn>-verur = wa_likp-verur.
        <wa_xkomdlgn>-lifex = wa_likp-verur.
        <wa_xkomdlgn>-traty = wa_likp-traty.
        <wa_xkomdlgn>-traid = wa_likp-traid.
        <wa_xkomdlgn>-kzazu = charx.
      endloop.
      if i_commit is initial.
        l_no_commit = charx.
      else.
        clear l_no_commit.
      endif.
    *-- Create delivery
      call function 'GN_DELIVERY_CREATE'
           exporting
                vbsk_i        = vbsk_i
                no_commit     = charx
           importing
                vbsk_e        = vbsk_e
                et_splitprot  = lt_splitprot
           tables
                xkomdlgn      = lt_xkomdlgn
                xxlips        = lt_lips
                xvbfs         = lt_xvbfs
                xvbls         = lt_xvbls
           exceptions
                error_message = 99.
      if not sy-subrc is initial.
        e_rc = 8.
        message e398(00) with 'DELIVERY'(003) 'CREATION FAILED'(002)
          into e_message.
        exit.
      endif.
      if lt_lips[] is initial.
        e_rc = 8.
        message e398(00) with 'DELIVERY'(003) 'CREATION FAILED'(002)
          into e_message.
        exit.
      endif.
      loop at lt_lips into wa_lips.
        exit.
      endloop.
      et_lips = lt_lips.
      delete lt_lips where lfimg <> 0.
      if not sy-subrc is initial.
        e_rc = 8.
        message e398(00) with 'DELIVERY'(003) wa_lips-vbeln
                              'WITH 0 QTY. NOT SAVED!'(005)
          into e_message.
        rollback work.
        exit.
      endif.
      if l_no_commit is initial.
        commit work and wait.
        select single vbeln into e_vbeln from lips
               where  vbeln  = wa_lips-vbeln.
        if not sy-subrc is initial.
          e_rc = 8.
          message e398(00) with 'DELIVERY'(003) 'CREATION FAILED'(002)
             into e_message.
          exit.
        else.
          message s398(00) with 'DELIVERY'(003) wa_lips-vbeln
                                'CREATED'(004)
               into e_message.
        endif.
      else.
        rollback work.
        message s398(00) with 'DELIVERY'(003) wa_lips-vbeln
                              'CREATED'(004)
             into e_message.
      endif.
      e_vbeln = wa_lips-vbeln.
    endmethod.

  • BAPI for Inbound Delivery(IBD - VL31N)

    Hi all,
    I need to create an inbound delivery with reference to PO  using bapi which is retreived by an IDoc. I cannot use standard Process code to Create it because i need to do validations and convert UOM etc).  In that i need to use Container No E1EDL37-EXIDV2(Idoc field).
    May i know which bapi which suits for this requirement.
    Thanks & regards
    sreehari p

    Hi Rajiv,
    Please check this FM --> BAPI_DELIVERYPROCESSING_EXEC
    Please check these threads
    Bapi to create inbound delivery
    BAPI to create inbound delivery
    Hope this would help you.
    Good luck
    Narin

  • BAPI for AFS Delivery creation

    Hi all,
    Does anyone know which BAPI can be used for creating Delivery for AFS items with ref to Sales Order ?
    I tried BAPIs like BAPI_OUTB_DELIVERY_CREATE_SLS but there's no field to input schedule line number. So all content I input is not to SL-level but only to Sales order item level.
    Thanks!
    Edited by: George Sung on May 27, 2010 12:16 PM

    Dear Kumar/All
    Is it possible to create AFS PO using bapi_po_create1 with  delivery schedules
    if you done that , kindly let me know it will be of great help.
    thanks
    Prabhu Shanmugham

  • ASN from vendor and inbound delivery creation

    hi
    I have a scenario where vendor sends ASN via EDI to R/3.
    This inbound ASN should create an inbound delivery. 
    Can you please help me knowing the idoc type, message type etc which will serve my purpose.
    Also the FM / Badi for inbound delivery creation.
    thanks in advance,
    Jo

    Hi,
    Use DESADV Message type and basic type DESADV01
    Use function module IDOC_INPUT_DESADV
    Edited by: Chandra Shekhar Singh on Jul 5, 2011 12:39 PM

Maybe you are looking for

  • Having trouble installing Windows 7 on external optical disk drive

    My internal optical drive doesnt work so i ran out and bought and LG external Optical drive. I Reinstalled mac os 10.6 and created a 45gb partition in bootcamp. When i try to install windows, at the gray screen it flashes a folder symbol and a circle

  • How to include the transport request

    Hi Experts, i am asked to create a copy of cube  and asked to  .Include the Transport request in request DEVK9795967 Please explain how to do it, Thanks in Advance Nitya

  • Multiple iTunes issue

    I downloaded music off iTunes on my home computer. Then I went to my mother's and accessed the iTunes at her house to get a few songs I still had there. But when I went to get the music at my mom's, the ipod lost/deleted all the music I had on it fro

  • Since instaaling iOS7 PC cannot find and import photos

    Since installing ios7, when I connect my iPhone 4 to my PC, the import pictures and videos function never stops searching for photos. it cannot find my photos or videos. I've uninstalled and reinstalled itunes, but that should not matter. Conncected

  • Error importing 9i forms in TranslationHub

    I am using TranslationHub v 9.0.4.0 and trying to import some existing 9i forms (9.0.4.0.19). I am getting the following error: ...This filter supports 6i Forms only... Can't TranslationHub be used for version 9i forms? Is there some way to reset the