BAPI for Packing HU in delivery

Hi Friends,
I am trying to built interface where in the BAPI should change the delivery VL02N and PACK with input HU data
Does anybody know how technically this can be achieved? Which BAPI and FM i can use ?
Thanks
Diwakar

Hi Keshav,
Thanks for your reply, but i would have HU already created in SAP system i will just pass on HU number to pack transaction
In that case do i need to use HU_Create?
Can i pass HU (Pallet id) for HU_Pack FM?
Thanks
Diwakar

Similar Messages

  • FM/BAPI for Packing in Inbound Delivery

    Hi,
    I can´t find a FM/BAPI for packing of handling units in the inbound delivery.
    Is there any information that you can help me with?
    BR,
    Christian

    Check if this works for u.
    BAPI_HU_PACK

  • BAPI for Packing proposal in Sale order

    Hi,
    I am currently using BAPI_HU_CREATE, BAPI_HU_PACK and WS_DELIVERY_UPDATE_2 to update packing in delivery.
    Is there any BAPI to do packing proposal in sale order ? BAPI_SALESORDER_CHANGE does not have any tables for packing
    Thanks

    Hi,
    I have already used the same BAPIs for packing and i am able to update packing in delivery using WS_DELIVERY_UPDATE.
    But in case of sale orders, i can use BAPI_HU_CREATE and BAPI_HU_PACK....to pack
    But what BAPI i should use to update the sale order ??? BAPI_SALESORDER_CHANGE does not have any tables to pass packing proposal data !!
    Thanks

  • What is the BAPI for creating an inbound delivery without reference.

    Hi Experts,
    What is the BAPI for creating an inbound delivery without reference.
    Points will be rewarded

    BAPI_DELIVERYPROCESSING_EXEC
    cheers
    Aveek

  • Help Rgd. BAPI for Creation of Inbound delivery Document

    Hi all,
    I need a Bapi to create inbound delivery document without using PO reference. I have seen the below BAPIs. i) BAPI_IBDLV_CREATE_FROM_OBDLV, 
    ii) BAPI_GOODSMVT_CREATE. I am not sure whether they are for creating inbound delivery document without using PO reference.
    It will be of great use if anyone can give me the BAPI for the purpose and the mandatory parameters or sample test data for the BAPI.
    Thanks in Advance,
    Rakesh.

    If you create the inbound delivery->check the purchase order in the tabstrip "Confirmations" on item level. There are three fields: "Confirmation control key", "Order acknowl." and "acknowl. required".
    Ckeck if there is a value in "confirmation control key".
    You should get the same error if you try to create VL31N in dialog mode, not only by using the bapi.
    Rgds,
    JP

  • BAPI for Creation of Inbound delivery Document

    Hi
    I have found a BAPI for Creating Inbound delivery Document, BBP_INB_DELIVERY_CREATE. I filled the below parameters and executed it.
    IS_INB_DELIVERY_HEADER     
        DELIV_DATE                     11.04.2007                           
    IT_INB_DELIVERY_DETAIL                                       
                MATERIAL                       1096               
                VEND_MAT                                          
                MATL_DESC                      SHARP CAMERA111    
                DELIV_QTY                               795,000   
                UNIT                           KG                 
                PO_NUMBER                      4500000011         
                PO_ITEM                        00010              
    I recieve a error 'This function is only possible for items with confirmation key'.
    I dont know whether the error is with the data. Is there any other fields to be filled.
    It will be of great help if anyone provide me with any input. ;>)
    Thanks in Advance
    Rakesh

    If you create the inbound delivery->check the purchase order in the tabstrip "Confirmations" on item level. There are three fields: "Confirmation control key", "Order acknowl." and "acknowl. required".
    Ckeck if there is a value in "confirmation control key".
    You should get the same error if you try to create VL31N in dialog mode, not only by using the bapi.
    Rgds,
    JP

  • Bapi for vl01no create outbound delivery without order reference

    Hi Guru's, i need help, I'm looking for BAPI VL01NO
    Any suggestions?
    Thanks for everything
    Edited by: GaBo_s Gabo on Sep 22, 2009 8:48 PM

    Hi,
    Following is the sample code for creation of outbound delivery Using BAPI 'BAPI_DELIVERYPROCESSING_EXEC'
    Which may be helpful.
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    WRITE: / 'Delivery ', t_created-document_numb, ' created'.
    Let me know if any issues.
    Thanks & Regards,
    Naveen

  • BAPI for creation Partial Outbound delivery

    Hi Guru
    Please suggest me any BAPI's for creating Partial Outbound Delivery
    I am working on BAPI_OUTB_DELIVERY_CREATE_SLS           but its creating full delivery
    Pls suggest me anythg..
    Best Regards
    Subham Arya

    Hi
    For finding the right BAPI, have a look at the following blog:
    /people/g.koopmann/blog/2010/03/07/using-bapis
    Best regards,
    Guido Koopmann

  • Bapi for Goods Receipt - Outbound Delivery

    Hello all,
    I am looking for a Bapi for <b>Goods Receipt for Outbound Delivery</b>.
    I have searched the forum but found BAPIs only for GR for Inbound Delivery, GR for purchase order etc. But not for GR for Outbound Delivery.
    Can someone guide?
    Thanks and Regards,
    Reena

    Hi Reena,
    use this code....
    *& Report  ZSAN_BAPI_GOODSMVT_CREATE                                   *
    REPORT  ZSAN_BAPI_GOODSMVT_CREATE .
    DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
          " Material Document Header Data
          GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
          " Assign code to transaction for BAPI goods movement
          MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
          " Number of Material Document
          GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
          " Create Material Document Item
          RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
          " Return table for messages
    *Fill values in header
    GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
    GOODSMVT_HEADER-DOC_DATE = '20030802'.
    *Fill GOODSMVT_CODE
    GOODSMVT_CODE-GM_CODE = '05' .
    *Fill Item Table
    GOODSMVT_ITEM-MATERIAL = '100-100'.
    GOODSMVT_ITEM-PLANT = '1000'.
    GOODSMVT_ITEM-STGE_LOC = '0001'.
    GOODSMVT_ITEM-MOVE_TYPE = '501'.
    GOODSMVT_ITEM-ENTRY_QNT = '50'.
    GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
    *GOODSMVT_ITEM-COSTCENTER = '1000'.
    APPEND GOODSMVT_ITEM.
    *Create Good's movement
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = GOODSMVT_HEADER
        GOODSMVT_CODE    = GOODSMVT_CODE
      IMPORTING
        MATERIALDOCUMENT = MATERIALDOCUMENT
      TABLES
        GOODSMVT_ITEM    = GOODSMVT_ITEM
        RETURN           = RETURN.
    *Commit BAPI
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    *Display Goods movement number
    FORMAT COLOR 6 INVERSE ON.
    READ TABLE RETURN WITH KEY TYPE = 'E'.
    IF SY-SUBRC = 0.
      WRITE: /,'ERROR! Goods movement not created'.
    ELSE.
      WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
               'posted for material',GOODSMVT_ITEM-MATERIAL.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    If useful reward me with points.
    Thanks
    Sanket.

  • BAPI for VL31N:Create Inbound Delivery

    Hi all,
    Please give the BAPI for VL 31N: Create Inbound delivery transaction
    thanks

    No bapi but you can use this function module GN_DELIVERY_CREATE
    Select the data required - see below
      select ebeln ebelp menge meins matnr werks lgort bstae loekz elikz
             lmein umrez umren insmk pstyp sobkz knttp kzfme kzvbr
             ematn mfrnr mfrpn emnfr cuobj uebto untto uebtk bwtar idnlf
             txz01 mfrgr gewei voleh ntgew brgew volum ean11 aktnr abeln
             abelp aurel matkl upvor uptyp uebpo wepos
              into corresponding fields of table xekpo_short
              from ekpo
               where ebeln = i_ebeln
                 and ebelp = i_ebelp.
      if sy-subrc ne 0.
        e_rc = 4.
      else.
        read table xekpo_short index 1.
        call function 'ME_EKKO_SINGLE_READ'
          exporting
            pi_ebeln         = xekpo_short-ebeln
          importing
            po_ekko          = ekko
          exceptions
            no_records_found = 1
            others           = 2.
        if sy-subrc ne 0.
          e_rc = 4.
        elseif ekko-bstyp ne 'F' and ekko-bstyp ne 'L'.
          e_rc = 4.
        endif.
      endif.
      clear xvbsk.
      xvbsk-mandt = sy-mandt.
      xvbsk-ernam = sy-uname.
      xvbsk-erdat = sy-datum.
      xvbsk-uzeit = sy-uzeit.
      xvbsk-smart = 'L'.
    *- Nummer VBSK vergeben -
      select single * from tvsa where smart = xvbsk-smart.
      if sy-subrc = 0.
        call function 'NUMBER_GET_NEXT'
          exporting
            nr_range_nr = tvsa-numki
            object      = 'RV_SAMMG'
          importing
            number      = xvbsk-sammg
          exceptions
            others      = 01.
        if sy-subrc ne 0.
          message e700(me) with tvsa-numki text-007.
        endif.
      else.
        message e700(me) with space text-007.
      endif.
      data: h_grkor like lips-grkor,         "Liefergruppe         "386409
           h_bsmng like ekpo-menge.         "Bestellmenge übergeordnete Pos.
      if not ekko-lifnr is initial.
        call function 'VENDOR_MASTER_DATA_SELECT_12'
          exporting
            pi_lifnr       = ekko-lifnr
            pi_ekorg       = ekko-ekorg
          importing
            pe_lfm1        = lfm1
          exceptions
            no_entry_found = 1
            others         = 2.
        xkomdlgn-vsbed = lfm1-vsbed.
      else.
        clear xkomdlgn-vsbed.
      endif.
      xkomdlgn-lifnr = ekko-lifnr.
      xkomdlgn-inco1 = ekko-inco1.                              "363954
      xkomdlgn-inco2 = ekko-inco2.                              "363954
      xkomdlgn-exnum = ekko-exnum.                              "363954
      xkomdlgn-bukrs_best = ekko-bukrs.                         "363954
      xkomdlgn-matnr = xekpo_short-matnr.
      xkomdlgn-werks = xekpo_short-werks.
      xkomdlgn-lgort = xekpo_short-lgort.
    xkomdlgn-charg = ?
      xkomdlgn-vrkme = xekpo_short-meins.
      xkomdlgn-meins = xekpo_short-lmein.
      xkomdlgn-umvkz = xekpo_short-umrez.
      xkomdlgn-umvkn = xekpo_short-umren.
      if xekpo_short-matnr eq space.                            "386409
        xkomdlgn-meins = xekpo_short-meins.
        xkomdlgn-umvkz = 1.
        xkomdlgn-umvkn = 1.
      endif.
      xkomdlgn-insmk = xekpo_short-insmk.
      xkomdlgn-kzfme = xekpo_short-kzfme.
      xkomdlgn-kzvbr = xekpo_short-kzvbr.           "note 384051
      xkomdlgn-lfimg = p_lfimg.
      xkomdlgn-lfdat = p_eindt.
      xkomdlgn-vgbel = xekpo_short-ebeln.
      xkomdlgn-vgpos = xekpo_short-ebelp.
      xkomdlgn-lfart = gf_dlv_type.
      xkomdlgn-vgtyp = 'V'.
      xkomdlgn-kzazu = 'X'.                "??? what's that for ????
      xkomdlgn-knttp = xekpo_short-knttp.
      xkomdlgn-sobkz = xekpo_short-sobkz.
      if xekpo_short-matnr is initial or xekpo_short-pstyp = '6'.
        xkomdlgn-posar = 'B'.
      endif.
      xkomdlgn-ematn = xekpo_short-ematn.
      xkomdlgn-mfrnr = xekpo_short-mfrnr.
      xkomdlgn-mfrpn = xekpo_short-mfrpn.
      xkomdlgn-emnfr = xekpo_short-emnfr.
      xkomdlgn-cuobj = xekpo_short-cuobj.
      xkomdlgn-uebto = xekpo_short-uebto.
      xkomdlgn-untto = xekpo_short-untto.
      xkomdlgn-uebtk = xekpo_short-uebtk.
      xkomdlgn-bwtar = xekpo_short-bwtar.
      xkomdlgn-kdmat = xekpo_short-idnlf.
      xkomdlgn-arktx = xekpo_short-txz01.
      xkomdlgn-mfrgr = xekpo_short-mfrgr.
      xkomdlgn-gewei = xekpo_short-gewei.
      xkomdlgn-voleh = xekpo_short-voleh.
      xkomdlgn-ntgew = xekpo_short-ntgew * xkomdlgn-lfimg.
      xkomdlgn-brgew = xekpo_short-brgew * xkomdlgn-lfimg.
      xkomdlgn-volum = xekpo_short-volum * xkomdlgn-lfimg.
      xkomdlgn-ean11 = xekpo_short-ean11.
      xkomdlgn-aktnr = xekpo_short-aktnr.
      xkomdlgn-abeln = xekpo_short-abeln.
      xkomdlgn-abelp = xekpo_short-abelp.
      xkomdlgn-aurel = xekpo_short-aurel.
      xkomdlgn-idnlf = xekpo_short-idnlf.
      xkomdlgn-matkl = xekpo_short-matkl.
    Leergut-Stückliste übernehmen
      clear xkomdlgn-grkor.
      clear xkomdlgn-kmpmg.
      clear xkomdlgn-uepos.
      if xekpo_short-upvor ca '3X'.
        h_grkor = h_grkor + 1.
        xkomdlgn-grkor = h_grkor.
        h_bsmng = xekpo_short-menge.
      endif.
      if not xekpo_short-uebpo is initial and
             xekpo_short-uptyp ca '3X'.
        xkomdlgn-uepos = xekpo_short-uebpo.
        xkomdlgn-grkor = h_grkor.
        if h_bsmng ne 0.
          xkomdlgn-kmpmg = xekpo_short-menge / h_bsmng.
        endif.
      endif.
    *- Konsignation - SOBKZ 'K' hart reinsetzen, da  von Pstyp abhäng......
      if xekpo_short-pstyp eq '2'.
        xkomdlgn-sobkz = 'K'.
      endif.
    Kontierungsfelder
      if xekpo_short-sobkz eq 'E' or xekpo_short-sobkz eq 'Q'.
        call function 'MMPUR_EKKN_READ_EBELN_EBELP'
          exporting
            pi_ebeln                   = xekpo_short-ebeln
            pi_ebelp                   = xekpo_short-ebelp
          PI_BYPASSING_BUFFER        =
          PI_REFRESH_BUFFER          =
          tables
            pto_ekkn_po                = xekkn
          exceptions
            no_records_requested       = 1
            others                     = 2.
        if sy-subrc eq 0.
          read table xekkn index 1.
          xkomdlgn-ps_psp_pnr = xekkn-ps_psp_pnr.
          xkomdlgn-vbelv      = xekkn-vbeln.
          xkomdlgn-posnv      = xekkn-vbelp.
        endif.
      endif.
      append xkomdlgn.

  • Need BAPI for uploading "Qty in Delivery Note" in MIGO

    Hi All,
    Please find the details of my requirement as below :
    Goto T-code MIGO and select goods receipt for a PO , here under material Item tab there is a field as "Qty in Delivery Note" under Quantity tab.
    I need to update this field using my BAPI. Is there is any FM , RFC for getting this output.
    Right now i am using BAPI  BAPI_GOODSMVT_CREATE, please let me know if any field of this BAPI can be used for thid purpose.
    Thanks,
    Mahesh.Gattu
    9900380302

    It is been done by implementing one implicit enhancement in FM: MAP2I_B2017_GM_ITEM_TO_IMSEG
    I have added the below functionality at the end of the function module.
    Just i have maped the ERFMG i.e ent_qnt(Received quanity) with LSMNG i.e qty.in del note
    All best for others.
    $$-Start: (1)----
    $$
    ENHANCEMENT 1  Z_EV_IMP_GOODSMOVEMENT.    "active version
    Populate the delivery note quantity and UoM
    IF IMSEG-ERFMG IS NOT INITIAL.
      MOVE IMSEG-ERFMG TO IMSEG-LSMNG.
      MOVE IMSEG-ERFME TO IMSEG-LSMEH.
    ENDIF.
    ENDENHANCEMENT.
    Thanks,
    Mahesh.Gattu
    Edited by: Maheshkumar gattu on Dec 3, 2010 4:35 PM

  • BAPI for Create out bound delivery

    Hi ABAP Gurus ,
    we are using following business process.
    Create Stock transport Order (Purchasing Document) - > Create Out Bound Delivery.
    Now for creating OBD from the Stock Transport Order , we have written a BDC for TCODE <b>VL10I</b>. It runs correctly in dialog work process. But fails in Background Job. Has anybody worked on this ? Any BAPIs , or alternative transactions available for this ?
    Please help.
    Thanx in advance ........
    Regards,
    Laxman Nayak.

    Thanx Mr Raja,
    VL10BATCH doesn't suit our needs . However in the process of trying VL10BATCH , I got one more TCODE VL10X. But this TCODE is again having the same problem as that of VL10i. ie it fails in background job.
          Can u pls extend some more help to me Mr Raja?
    Thanx in advance .
    Regards,
    Laxman Nayak.

  • BAPI for Existence check of Delivery Address

    Hello Everyone,
    Can anyone suggest me of a BAPI or Remote Enabled FM that does an Existence check for Delivery address "AD_ADDRNUM" while creating a Purchase Order? I would appreciate your help.
    Regards,
    Gopal.

    I couldnt find any BAPI or FM for you but you can write your own RFC. Tables: ADRC, ADRP , ADRT may help you. Check them with your address number

  • BAPI  for Outbound Delivery

    Hi All,
    Is there any BAPI for creation of Outbound Delivery? If yes, please specify the BAPI and source code if any...Thank you!
    Regards,
    Mackoy

    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.
    if px_infile-type = 'PO' .
    lt_request-document_type = 'B'.
    lt_request-document_numb = x_infile-ebeln.
    lt_request-document_item = x_infile-posnr.
    else.
    lt_request-document_type = 'A'.
    lt_request-document_numb = x_infile-vbeln.
    lt_request-document_item = x_infile-posnr.
    endif.
    lt_request-material = x_infile-matnr.
    lt_request-plant = x_infile-werks.
    lt_request-stge_loc = x_infile-lgort.
    lt_request-quantity_base__uom = x_infile-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.

  • BAPI for Getting details of outbound delivery or VL03N

    Hi,
    Can any one tell me whether there is a BAPI for display of outbound delivery.
    Can any one help me?
    thanks.

    Hi,
    Why do you need BAPI for displaying the delivery?
    Below 2 lines of code is enough.
    SET PARAMETER ID 'VL' FIELD 'delivery number'.
    CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
    Thanks,
    Vinod.

Maybe you are looking for

  • No sound via mini display to HDMI connector

    Hi all, I have the i7 8G ram version of the X1 Carbon (UK version) and love it.  The only issue I have with it is in relation to the mini display port.  I use a lot of HDMI equipment so immediately bought the mini display to HDMI connector from Grifi

  • C++ form with awt controls do not respond

    I have created mfc project in visual studio c++ 6.0. Then I modified MainFrm.cpp. Here in CMainFrame::OnShowWindow I initialize jvm, create WEmbeddedFrame and put Button in it. Is runs ok, but 2 problems: 1. I can't click button. Just as there is som

  • Clarification on a FDA form.

    Hi All, we have a FDA forms that needs to fill out. In particular FDA 2253 PDF template. we are trying to Map Form Fields in a BI Publisher report. The FDA forms are Adobe 7.0 compatible while BI Publisher is only compatible with up to Version 5. Now

  • Best practice for printing

    After upgrade CR2008 -> CR2011 I have recognized problem with some reports (hang up of rendering Viewer control). Reason seems to page setting for printing ? What is best practice ? Use No printer option ? Regards miroslav

  • Best settings for converting videos

    I have been using Visual Hub to get my videos in the right format for my Apple TV. When I try to copy these to my iPhone, it says they aren't compatible. What settings should I use to get these videos viewable on my iPhone and when using the new sett