Use WS_DELIVERY_UPDATE_2 for Inbound Delivery HU Update?

Hello all,
I have used WS_DELIVERY_UPDATE_2 to successfully update Handling units to Outbound delivery and also perform batch split.
Can the same FM be used to update Inbound delivery with Handling units. I will be uploading the HU's through excel file.
Please advice.
Thanks,
Subba

Hi,
Below is code for Inbound Delivery With HU, it worked for me.
  gs_head-DELIV_DATE = sy-datum.
gs_head-DELIV_TIME = sy-uzeit.
gs_item-DELIV_ITEM = p_item1.
gs_item-MATERIAL = p_matnr1.
gs_item-DELIV_QTY = p_quan.
gs_item-UNIT = 'EA'.
gs_item-PO_NUMBER = p_po.
gs_item-PO_ITEM = 10.
APPEND gs_item TO gt_item.
CLEAR:gs_item.
CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
  EXPORTING
    IS_INB_DELIVERY_HEADER = gs_head
  IMPORTING
    EF_DELIVERY            = gv_vbeln
  TABLES
    IT_INB_DELIVERY_DETAIL = gt_item
    RETURN                 = gt_ret1.
gs_refobj-OBJECT = 03.
gs_refobj-OBJKEY = gv_vbeln.
gs_humain-vhilm = p_matnr2.
GS_HUMAIN-HU_STATUS_INIT = 'A'.
gs_humain-STATUS = '0010'.
gs_itempr1-VELIN = 1.
gs_itempr1-QUANTITY = p_quan.
gs_itempr1-meins = 'EA'.
gs_itempr1-matnr = p_matnr1.
gs_itempr1-werks = p_plant.
CALL FUNCTION 'PROCESS_HU_INBOUND_DLVRY'
  EXPORTING
    I_HU_ID               = gv_huid (Blank)
    I_NEW_HU              = 'X'
    I_UPDATE_DB           = 'X'
    I_CREATE_HU           = 'X'
    I_REFERENCE_OBJECT    = gs_refobj
    I_HU_HEADER_MAIN      = gs_humain
    I_SAVE_STEP           = 'ITEM'
    I_PACK_ACTIVITY       = 'MAT'
    I_DELIVERY_TYPE       = '7'
    I_PACKING_ACTIVITY    = 'PACK'
    I_PACK_TYPE           = 'MAT'
    IS_ITEM_PROPOSAL      = gs_itempr1
  IMPORTING
    O_HU_REF_ID           = gs_erefid
    O_HU_HEADER           = gt_eheader
    O_HU_ITEMS            = gt_eitem
    O_HU_MESSAGES         = gt_emsg[]
  TABLES
    ET_CREATED_HUS        = gt_ehus[]
  EXCEPTIONS
    INPUT_MISSING         = 1
    NOT_POSSIBLE          = 2
    HEADER_ERROR          = 3
    ITEM_ERROR            = 4
    SERIAL_NR_ERROR       = 5
    FATAL_ERROR           = 6
    OPERATION_FAILED      = 7
    DELIVERY_UPDATE_ERROR = 8
    OTHERS                = 9.
IF SY-SUBRC EQ 0.
  CLEAR:gs_vekp.
  SELECT SINGLE * FROM vekp INTO gs_vekp WHERE VPOBJKEY = GV_VBELN.
  ls_vbkok_wa-vbeln_vl  = gv_vbeln.
  ls_vbkok_wa-vbeln = gv_vbeln.
  ls_vbkok_wa-VBTYP_VL = 7.
  ls_vbkok_wa-wabuc = 'X'.
  ls_vbkok_wa-spe_auto_gr = 'X'.
  ls_vbkok_wa-kzebu = 'X'.
  lt_verko-exidv = gs_vekp-exidv.
  lt_verko-exida = 'E'.
  lt_verko-magrv = 'YB01'.
  lt_verko-werks = p_plant.
  lt_verko-STATUS = '0010'.
  APPEND lt_verko.
  lt_verpo-venum = gs_vekp-venum.
  lt_verpo-exidv_ob = gs_vekp-exidv.
  lt_verpo-exidv = gs_vekp-exidv.
  lt_verpo-velin = '1'.
  lt_verpo-vbeln = gv_vbeln.
  lt_verpo-POSNR = p_item1 .
  lt_verpo-TMENG = p_quan.
  lt_verpo-VRKME = 'EA'.
  lt_verpo-MATNR = p_matnr1.
  lt_verpo-werks = p_plant.
  APPEND lt_verpo.
  lt_vbpok-vbeln_vl = gv_vbeln.
  lt_vbpok-posnr_vl = p_item1.
  lt_vbpok-vbeln = gv_vbeln.
  lt_vbpok-posnn = p_item1.
  lt_vbpok-pikmg = p_quan.
  lt_vbpok-matnr = p_matnr1.
  lt_vbpok-werks = p_plant.
  lt_vbpok-pstyv = 'ELP'.
  APPEND lt_vbpok.
  lt_repack-SOURCEHU = gs_vekp-exidv.
  lt_repack-DESTHU = gs_vekp-exidv.
  lt_repack-PACK_QTY = p_quan.
  lt_repack-BASE_UOM = 'EA'.
  lt_repack-MATERIAL = p_matnr1.
  lt_repack-PLANT = p_plant.
  lt_repack-DELIV_NUMB = gv_vbeln.
  lt_repack-DELIV_ITEM = p_item1.
  APPEND lt_repack.
  CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
      VBKOK_WA               = ls_vbkok_wa
      DELIVERY               = gv_vbeln
      update_picking         = 'X'
      no_messages_update_1   = 'X'
      synchron               = 'X'
      commit                 = ' '
      NICHT_SPERREN_1        = 'Y'
      if_database_update_1   = '1'
      if_error_messages_send = 'X'
    TABLES
      PROT                   = lt_prot
      VERKO_TAB              = lt_verko
      VERPO_TAB              = lt_verpo
      IT_REPACK = lt_repack.
  COMMIT WORK and WAIT.
Thanks,
Shankar Darbha

Similar Messages

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

  • How can delayed delivery update be configured for Inbound delivery ?

    Hi All,
    How can delayed delivery update be configured for Inbound delivery ?
    There is setting for Outbound delivery delayed delivery update but how the same functionality be used for Inbound delivery?
    Regards
    Jimmi

    Hello Jimmi,
    Unfortunately I must confirm that the Delayed delivery update is only available for outbound deliveries. Please see below note for further details
    664316 Tips for the delayed delivery update for TO
    I hope this information helps!
    Martin

  • 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

  • SAP System inconsistency for Inbound delivery / MIGO and a "sap note"

    Hello Friends ,
    After following SAP instruction on how to remove the inconsistency between posting GR through MIGO (Inv. mang.) and the reflection of the goods movement status in the inbound delivery document - done that using sap note 570991
    the problem is that the system start behaving in a weird way throwing unjustified Error messages for any suggested goods receipt using MIGO with reference to inbound
    for example after creating an inbound delivery document and trying to post it via migo , an error will pop up
    - Inbound delivery storage location cannot be changed to here Message no. VLA316
    the thing is i didn't even maintain any storage location entry up to that point and yet i cannot post any stock !!
    also another error  like
    - Inbound delivery batch cannot be changed to *** here
    which doesn't make any sense because there is not batches in the inbound document !!
    i think this behavior is coming from the "Document Flow Update for Stock Postings" inbound  indicator  at the shipping parameter at client level customization
    i need help on  how to overcome this annoying SAP Bug/Problem specially i am in a post go live critical situation

    Hi,
       The messages you mentioned were introduced to avoid inconsistency between inbound delivery and IM, through the note:  1050944 - GR for inbound delivery using inventory mgmt as of ECC 6.00
       If the messages are issued incorrectly, then you may check for SAP notes (I couldnt find anything relevant) or raise an OSS ticket to SAP.
    Regards,
    AKPT

  • How to skip the Inbound Delivery while updating LA confirmations via EDI

    Hi Experts,
    I have a requirement wherein I dont want to create Inbound Delivery automatically when updating the LA (or a copied Conf Cat of LA) confirmation via EDI.  When we are using the message type DESADV, LA confirmations are being updated, but simultaneously, the Inbound delivery also being created.  My client desires that Inbound Delivery should not happen and only LA confirmation should be updated via EDI.
    Is there anyway, by which we can skip the Inbound Delivery while updating the LA confirmations in the PO?
    Thanks in advance
    Regards
    Radha Krishna

    Hi Prabhaharan,
    Thanks for your quick response.
    My requirement is to have both AB and LA confirmations.  I have included these two in a new the conf control   So, your suggestion will not work.
    Is there any other way out to fulfill my requirement?
    Thanks & Regards
    Radha Krishna

  • Status for inbound delivery

    Hi,
    Our vendor gives the confirmation for PO by using an inbound delivery (VL31N).
    But it takes very long to reach the material delivered by him to our site.
    So want  to know the status of the material (up to which destination it has reached).
    Is it possible to define the status of the inbound delivery and update it so that we can know up to which destination goods have reached?
    Regards,

    Our vendor gives the confirmation for PO by using an inbound delivery (VL31N).
    But it takes very long to reach the material delivered by him to our site.
    Plz check the question...If supplier sends Inbound delivery..it will be reaching our system immidiatly or After the batch job completion in our system...One he do the Delivery ot Shipment from his location..Then  only the Truck will start from their plant....after that it will take sometime ot Couple of days to reach our location..once truck comes to our location..then with Referrencte to SID(Supplier identification number)..User will enter SID Number and find the respective Inbound delivery...then G.R
    SO..IF THE TRUCK(Transit) IS ON THE WAY TO OUR PLANT,..We cannot track whare is the truck...if yes....then ..the transportation people must have some specific device to send the information to Their plant ot Our plant......
    But as per my experience..i never seen this functionality..(i was there in client location for 2 years and that was a Global Automotive leader)

  • New Condition TAble for Inbound Delivery

    Hello
    i want to maintain a new Condition table for the Inbound delivery picking with the combination of _Delivery type/Plant
    so that the Inbound created for the particular plant alone uses the particular output type.
    Where in IMG can i configure the new Condition table for this combination for the Inbound delivery ?

    Hi,
    Go to SPRO > Logistics Execution > Shipping > Basic Shipping Functions > Output Control > Output Determination > Maintain Output Determination for Inbound Deliveries > Here perform following;
    - Define Condition Table for Inbound Delivery
    - Define Output Types for Inbound Delivery
    - Define Access Sequence for Inbound Delivery
    - Maintain Output Determination Procedure
    - Assign Output Determination Procedures

  • Issue at the time of creation of transfer order for inbound delivery

    Hello,
    I am facing one issue at the time of creation of transfer order for inbound delivery.
    If I create inbound delivery for purchase order with account assignment as 'M' (Ind. cust. w/o KD-CO), inbound delivery is not updated. Also document flow for inbounde delivery s not updated. I can create N number of transfer orders for on inbound delivery. Need help to resolve issue.
    If I create inbound delivery for purchase order with account assignment other than 'M' (Ind. cust. w/o KD-CO), inbound delivery and document flow is updated.
    Thanks and Regards,
    Nikhil

    Hi
    In OMS2 t-code
    for your material type and  plant ,you have to mark value based and qunaity based updation mark
    Regards
    kailas Ugale

  • Goods Receipt for Inbound Delivery before Transfer Order

    Hello Experts,
    Below is the normal process in case of GR via inbound delivery.
    PO -> Inbound Delivery -> TO -> Confirm TO -> Post Goods Receipt in Delivery.
    My client wants as per the normal Purchase Order cycle as below.
    PO -> Inbound Delivery -> Post goods receipt in Delivery -> TO - > Confirm TO.
    I have found some config for this as per below path.
    Logistics - General -> Handling Unit Management -> Basics -> Delivery -> Define Sequence of Transfer Order - Goods Receipt.
    I have done these settings but still it is not working.
    I have couple of questions here.
    1. Are there some more settings required?
    2. Why SAP has designed this process in such a way for inbound delivery.
    Thanks in advance for your help.
    Navin

    Hi,
    I am working with non HU managed storage location. Can I still use this settings & process for inbound delivery?
    I am stuck with one more question. SAP is not allowing me to create Inbound delivery for QM active materials.
    The message it is saying is ....
    Material CH-1440 1000 cannot be used in inbound delivery because QM is active
    Message no. L9528
    Diagnosis
    QM is active for material CH-1440 in plant 1000. As a result, the material cannot be used in an inbound delivery item because the item is relevant for picking and because WM is active for the item.
    This process is not supported in the current release.
    Procedure
    Execute the putaway using a goods receipt posting with subsequent
    putaway in the Warehouse Management system.
    Can you please help me with this one also?

  • Creation of Transfer Order for Inbound Delivery

    Hi,
    I am using L_TO_CREATE_DN for creation of a TO for Inbound Delivery.
    I am getting this message."""Item 180000166 000010 does not exist or is not relevant for picking"""
    The delivery is having Ware House number so i think it is relevent for picking... It is having an item 10 also. I dont know why this message is coming.
    Can anyone please let me know how to get rid of this error and create a TO for the inbound delivery.
    Regards
    Rakesh

    Hi Rakesh,
        Pad the delivery number with a 0 in front and check.
    like, instead of 180000166, pass 0180000166.
    Regards,
    Ravi

  • 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

  • During PGI for inbound delivery it is giving an error message in ECC6.0

    I am getting an error message  during processing a serialized production order through one custom transaction. In that program FM BAPI_GOODSMVT_CREATE is used to create inbound delivery . After the inbound delivery is created it is giving  error messages
    'System status ESTO is Active (EQUXXXXXX)'
    'Check the status of the Serial Number XXXXXXX'
    'Serial Number cannot be used here'
    'Termination of goods issue posting of delivery item XXXXX'
    and it does not create the PGI for the delivery.
    I have done the same steps in 4.7 system but did not get any error and posting of goods issue has also done successfully but in ECC6.0 system I am getting this error from BAPI_GOODSMVT_CREATE.
    If anyone have faced this issue in ECC6.0 then please help.....

    ESTO means "in the warehouse".  Looks like you may be trying to receive a serial no. you already have received?

  • Transfer Order for Inbound delivery with multiple line items...

    Hi All,
    <The flow of my report pgm is >
    PO creation using Transaction - me21n
    My report pick the PO created as per date given in selection screen-
    Creates outbound Deliveries using BAPI_OUTB_DELIVERY_CREATE_STO
    Create Transfer order FM L_TO_CREATE_DN
    Confirm Transfer order FM L_TO_CONFIRM
    GI is done - Inbound delivery is created
    Create Transfer order FM L_TO_CREATE_DN for Inbound delivery
    Confirm Transfer order FM L_TO_CONFIRM
    Goods receipt.
    If PO is having one item - the entire flow is working perfectly.
    if my PO is having multiple items,
    While creating TO for inbound deliveeies - i am facing the error.
    Before calling FM,
    I am assigining these values like
    wa_delit-nlpla  = wa_ltap_vb-vlpla.    "Source Storage Bin To Destination Bin
          wa_delit-nltyp  = wa_ltap_vb-vltyp.    "Source Storage Type To Destination Storage type
          wa_delit-anfme  = wa_ltap_vb-nsolm.    "Actual destination quantity
          wa_delit-letyp  = wa_ltap_vb-letyp.    "Storage Unit Type
          wa_delit-altme  = wa_ltap_vb-meins.    "Unit of measure
          LOOP AT i_lips INTO wa_lips WHERE vbeln = WA_VBFA-IN_DELIV.
            wa_delit-posnr =  wa_lips-posnr.
            APPEND wa_delit TO it_delit.
             ENDLOOP.
    As i am appending i am getting 2 line items in the tabke it_delit.
    Function module :
    CALL FUNCTION 'L_TO_CREATE_DN'
      EXPORTING
       i_lgnum                         = l_lgnum
       i_vbeln                         = wa_vbfa-in_deliv
       i_commit_work                   = 'X'
       i_bname                         = sy-uname
       it_delit                        = it_delit
    IMPORTING
       e_tanum                         = gv_tonum_1
    TABLES
       t_ltap_vb                       = i_ltap_vb_1
      EXCEPTIONS
       foreign_lock                     = 1
       dn_completed                     = 2
       partial_delivery_forbidden       = 3
       xfeld_wrong                      = 4
       ldest_wrong                      = 5
       drukz_wrong                      = 6
       dn_wrong                         = 7
       squit_forbidden                  = 8
       no_to_created                    = 9
       teilk_wrong                      = 10
       update_without_commit            = 11
       no_authority                     = 12
       no_picking_allowed               = 13
       dn_hu_not_choosable              = 14
       input_error                      = 15
       error_message = 16
       OTHERS = 32.
    Here i am getting as input error, i need to create only one TO for multplie items
    If i pass this i a loop - then it will create 2 Transfer order which is WRONG ...so please help me to over come this error.
    Thanks
    Senthil
    Edited by: Senthil Kumar on Dec 7, 2009 3:29 PM

    Hi,
    Please check FM L_TO_CREATE_MULTIPLE.
    Regards,
    Ferry Lianto

  • Mandatory fields for inbound delivery idocs

    hi all
    i want to generate inbound idocs for inbound delivery ASN
    i am using message type DESADV and idoc type /AFS/DELVRY03
    in order to generate inbound idoc what are mandatory values i have to pass to the idocs
    thanks
    Anil

    HI,
    I created inbound idoc for ASN Inbound delivery in test mode we19
    i got idoc with status 62, when i am trying to process the idoc in bd87, its allowing me
    is there any other way to process the idocs , so that status will be 53
    thanks

Maybe you are looking for

  • Long Text Editor displaying & incorrectly.

    Hi Experts,                 Currently I am facing an issue that the & sign is not being displayed correctly in the Long text editor. It is shown as '<(>&<)>' in some places and '&' in others. I understand that the <(> symbol is used as protection for

  • Group by rollup and order by question

    hi all, normally, using order by would sort data based on the column. however, i am using a group by roll up with an order by and my select case contains some case grouping... see my code below. SELECT   CASE GROUPING(org) + GROUPING(sbu)     WHEN 2

  • Multy-Level flash chart in WD4A

    I have been using flash charts in my Web Dynpro components for a while now and I thought it's time to try and take it to the next level and create an interactive chart. I got a request from my user for a graph with 2 levels - a weekly level that show

  • Time Delay Connector and Chart Question

    Hello, I have two problems with the VC 7.1 First, how can I design a time delay or a refresh function? In VC 7.0 you have the time delay connector to implement this function. Second, in VC 7.0 I can click on a chart and start a action to show me the

  • How to avoid water damage when installing invisible shield

    Just wondering what you have to do to avoid water damage when installing Zagg invisible shield? What precautions should I take so that I do not damage the iPhone when installing Zagg Invisible shield? Thanks and I look forward to your replies. ...B