PICKING Using WS_DELIVERY_UPDATE

Hi ,
Iam doing Picking using the BAPI WS_DELIVERY_UPDATE.
Iam just passing the following fields .
vbkok_wa =  <  Delivery no in  structure>
synchron = 'X'
delivery  = 'Del #'
update_picking = 'X'
nicht_sperren  = 'X'
Tables
   vbpok_tab  = ....
     prot   = ....
My delivery is not being picked properly using this BAPI. Am i missing any necessary parameters.
Thanks in advance,
Ajai

I have similar issue, I'm looking to use this function to update serial numbers of line numbers and then PGI the outbound customer delivery. The deliveries are already picked/packed via an IDoc application. My code looks as follows but it's not updating the serial numbers, any advice?
      CALL FUNCTION 'WS_DELIVERY_UPDATE'
           EXPORTING
                vbkok_wa            = ls_vbkok_wa
                delivery            = ls_vbkok_wa-vbeln
                commit                    = 'X'
                it_sernr_update           = 'X'
           IMPORTING
                ef_error_any_0            = l_any_update
                ef_error_sernr_update     = l_sernr_update
                ef_error_in_goods_issue_0 = l_gi_update
                ef_error_in_final_check_0 = l_fc_update
           TABLES
                it_verpo_sernr            = it_serials
                prot                      = it_prott
           EXCEPTIONS
                error_message             = 1
                OTHERS                    = 2.

Similar Messages

  • HU Creation using WS_DELIVERY_UPDATE

    Hi All,
    I am using FM WS_DELIVERY_UPDATE to create HU and update the inbound delivery. This works good if my delivery has one line item.
    But when my delivery has more than one line item I want to create those many number of HUs for that delivery. But when i try this it still creates one HU even though I am passing multiple entries (depending on number of line items in delivery) in table VERKO_TAB
    For example: Delivery 80001234 has 2 line items. So I am appending two entries with same packaging material in VERKO_TAB.
    Since this delivery has 2 line items I am expecting 2 HUs created for this delivery.
    My question is can we create multiple HUs for this delivery? If so, what parameter I should pass to create multiple HUs.
    I do not want to loop through the line items of the delivery and call up this FM to create one HU at a time since it is not efficient. I want to call this FM only once per delivery and create those many HUs depending on the number of line items in delivery.
    Any idea in this regard would be greatly appreciated.
    Thanks,
    sandeep

    Hi Keshav
    The FM mentioned by you creates one HU at a time. Also it can be used to pack multiple items into the created HU.
    But my requirement is like this.
    If a delivery has 10 delivery line items, we should create 10 HUs for that delivery. I am not concerned about the packing at this moment as it can be achived easily using WS_DELIVERY_UPDATE.
    Any ides?
    Thanks,
    Sandeep

  • Cost became doble in profitability reoport when picking using batch split

    Hi friends,
    When we do picking use batch split, cost(material external price) shows double in profitability report. everything else looks normal.
    What did we miss?
    Thanks in advance,
    Linda

    Did you check the copy control settings in VTFL? At item level, check the box cumulate cost and test again.
    Regards,

  • Reg : PGI delivery using ws_delivery_update

    Hi All,
    I want to PGI delivery using function module ws_delivery_update .
    What are the mandatory fields to be supplied and in what way to PGI delivery successfully using the above FM
    Or is there any other function module specifically suited to PGI delivery
    urgent help needed.
    if any sample code is there , most welcome.
    Thanks in advance.
    Regards
    Jawahar

    Jawahar,
    it is very easy to go with this code i think rather than going with fm.
    DATA:    I_VBELN LIKE LIKP-VBELN,            
             I_VBKOK LIKE VBKOK,            
             I_PROTT LIKE PROTT OCCURS 0 WITH HEADER LINE.   
    L_VBKOK-VBELN_VL = L_VBELN.   <- Delivery number  
    L_VBKOK-WABUC    = 'X'.       <- Automatic PGI           * Perform Pick and PGICALL FUNCTION 'WS_DELIVERY_UPDATE'
               EXPORTING
                VBKOK_WA           = I_VBKOK                 
               SYNCHRON                 = 'X'                
               NO_MESSAGES_UPDATE       = ' '                
               UPDATE_PICKING           = 'X'                
               COMMIT             = ' '                    
             DELIVERY      = I_VBELN                         
             NICHT_SPERREN    = 'X'    
       IF_ERROR_MESSAGES_SEND_0 = 'X'         TABLES            
      PROT     = I_PROTT     
    EXCEPTIONS    
            ERROR_MESSAGE      = 1               
            OTHERS    = 2. 
    IF SY-SUBRC <> 0.
    Or I_PROTT has type E errors in it 
      ROLLBACK WORK.
    ELSE. 
      COMMIT WORK AND WAIT.
    ENDIF.
    othere wise
    For PGI you can use SD_DELIVERY_UPDATE_PICKING_1
    Regards,
    Naveen

  • PGI for returns using WS_DELIVERY_UPDATE

    Hi Friends,
    I'm using the FM WS_DELIVERY_UPDATE  to do PGI for outbound deliveries. It is not doing the PGI for returns delivery. Can someone help me on how to use this FM for returns delivery PGI or is there any other FM to do this. I do not want to use BDC.
    Appreciate your <removed by moderator> response.
    Thanks,
    Dikshitha G
    Edited by: Thomas Zloch on Jul 7, 2011 12:49 PM

    Use FM WS_LM_GOODS_MOVEMENT, pass the parameter IF_BITYPE = 'N'. Pass the table parameter CT_WORKTAB of type LIPOV. You can get the data from LIKP. The picking has to be complete on delivery. Use FM WS_DELIVERY_UPDATE to complete picking.

  • Packing using WS_DELIVERY_UPDATE Error

    Hi Experts,
    I've been browsing the forums, and, despite the many examples available I can't put this FM(WS_DELIVERY_UPDATE) to work.
    I want to do Packing of outbound Delivery using VL02N.I am using below Code ,But it's not Working.
    it's not giving any  error (Sy-subrc 0 & i_prot is empty )but it's not create any HU or Updating Delivery Document no.I also tried some BAPI for Create HU but still not woring.
    ->BAPI_HU_CREATE
    ->BAPI_HU_PACK
    DATA:
    wa_vbkok TYPE vbkok,
    wa_hus TYPE TABLE OF vekpvb,
    wa_pack TYPE REPACK_HU_WM OCCURS 0 WITH HEADER LINE,
    i_prot LIKE STANDARD TABLE OF prott WITH HEADER LINE.
    data : VERKO type VERKO occurs 0 with header line.
    wa_vbkok-vbeln = pvbeln.
    wa_vbkok-vbeln_vl = pvbeln.
    **wa_pack-desthu = exidv.
    wa_pack-quantity = pqty.
    wa_pack-meins = pmeins.
    wa_pack-matnr = pmatnr.
    **wa_pack-charg = pcharg.
    wa_pack-werks = pwerks.
    wa_pack-lgort = plgort.
    wa_pack-vbeln_vl = pvbeln.
    wa_pack-posnr_vl = pposnr.
    wa_pack-object = '01'.
    wa_pack-objkey = pvbeln.
    APPEND wa_pack.
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
    EXPORTING
    VBKOK_WA = wa_vbkok
    SYNCHRON = 'X'
    COMMIT = 'X'
    DELIVERY = wa_vbkok-vbeln
    TABLES
    prot = i_prot
    VERKO_TAB = VERKO
    IT_PACKING = wa_pack
    ET_CREATED_HUS = wa_hus
    EXCEPTIONS
    ERROR_MESSAGE = 1
    OTHERS = 2.
    COMMIT WORK AND WAIT.
    Thanks,
    Nehal.

    The BAPIs for HU create/change work when HU management is switched on in your system. I had a similar requirement where packing was required without HU management. I got it working using Fm -BAPI_OUTB_DELIVERY_CONFIRM_DEC. Below is relevant code.
      ls_headerdata-deliv_numb = lv_delivery.
      ls_control-deliv_numb = lv_delivery.
        ls_bapidlvhdunhdr-hdl_unit_exid    = <fs_hdunhdr>-hdl_unit_exid.
        ls_bapidlvhdunhdr-hdl_unit_exid_ty = 'F'.                        "External identifier
        ls_bapidlvhdunhdr-plant            = <fs_hdunhdr>-plant.
        ls_bapidlvhdunhdr-ship_mat         = <fs_hdunhdr>-ship_mat.
        ls_bapidlvhdunhdr-sh_mat_typ       = <fs_hdunhdr>-sh_mat_typ.
        append ls_bapidlvhdunhdr to lt_hdunhdr.
        ls_bapidlvhdunitm-hdl_unit_exid_into  = <fs_hdunitm>-hdl_unit_exid_into.
        ls_bapidlvhdunitm-batch               = <fs_hdunitm>-batch.
        ls_bapidlvhdunitm-pack_qty            = <fs_hdunitm>-pack_qty_base.
        ls_bapidlvhdunitm-deliv_item          = <fs_hdunitm>-deliv_item.
        ls_bapidlvhdunitm-deliv_numb          = iv_delivery.
        append ls_bapidlvhdunitm to lt_hdunitm.
        call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
          exporting
            header_data          = ls_headerdata
            header_control       = ls_control
            delivery             = lv_delivery
          tables
            item_data            = lt_bapiobdlvitemcon
            item_control         = lt_bapiobdlvitemctrlcon
            item_data_spl        = lt_bapiobdlvitemdataspl
            handling_unit_header = lt_hdunhdr
            handling_unit_item   = lt_hdunitm
            return               = lt_return.
    I hope it helps.

  • How to add the current user to a people picker using javascript coding in document library

    Hi Everyone,
    This is my scenario,
    I have a document library,for this if any user uploads a document,there we have three content types(Ex:content1,content2,content3)
    if the uploaded user is from content 1(here we have four columns name,assigned to ,status,published to) after uploading the document the document has to be updated.so when the document is updated by the user then automatically the published filed people
    picker has to be filled up with the current user name this is done by using java script object model programming.
    i am stuck with this can anyone help me..............
    thanks in advance
    Ramu

    Hi,
    I understand that you want to set a people picker field value automatically to current user. You can use these ECMA scripts on your EditForm.aspx page. Edit the page in SharePoint designer and add the code before a </asp:Content> tag.
     <script type="text/javascript">
    var context = null;
     var web = null;
     var currentUser = null;
    ExecuteOrDelayUntilScriptLoaded(GetUserLoginName, "sp.js");
    function GetUserLoginName() {
    context = new SP.ClientContext.get_current();
     web = context.get_web();
     this._currentUser = web.get_currentUser();
     context.load(this._currentUser);
     context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),
    Function.createDelegate(this, this.onFailureMethod));
     function onSuccessMethod(sender, args) {
     var today = new Date();
     alert('Name:' + this._currentUser.get_title() + '\n Login:' + this._currentUser.get_loginName()); document.getElementById('ctl00_m_g_9b4b3950_80d8_4e6e_b2fa_241b727d83d4_ctl00_ctl02_ctl00_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv').innerHTML=this._currentUser.get_title();//you
    need to change the ID here to you people picker field ID. You can get the id for this field with the help of IE developer tool.
     function onFaiureMethod(sender, args) {
     alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     </script>
    For more information, please refer to this site:
    Get current user’s LoginName Ecmascript Sharepoint 2010:
    http://www.learningsharepoint.com/2011/05/18/get-current-users-loginname-ecmascript-sharepoint-2010/
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Problem in using WS_DELIVERY_UPDATE(updating the deliveries)

    Hi Gurus,
    Iam facing problem  i updating the deliveries using the fm WS_DELIVERY_UPDATE..This is the code..
    MOVE : lwa_mchb-matnr   TO lwa_vbpok-matnr,
                       lwa_mchb-charg   TO lwa_vbpok-charg,
                       lwa_mchb-lgort   TO lwa_vbpok-lgort,
                       lwa_mchb-clabs   TO lwa_vbpok-lfimg,
                       lv_gross_weight  TO lwa_vbpok-brgew,
                       lwa_mchb-clabs   TO lwa_vbpok-ntgew.
                       lwa_vbpok-SPE_INB_ITM_UPD = 'X'.
                APPEND lwa_vbpok TO lit_vbpok.    
              CLEAR : lwa_idetail,
                      lwa_vbpok,
                      lv_gross_weight.
            ENDLOOP.
    Fill the header data
            lwa_vbkok-vbeln_vl  = gwa_header-vbeln.
            lwa_vbkok-wadat_ist = sy-datum.
            lwa_vbkok-bolnr     = gwa_header-bolnr.
            lwa_vbkok-traid     = gwa_header-traid.
            lwa_vbkok-spe_inb_dlv = 'X'.
    Call the function module to update the delivery
            CALL FUNCTION 'WS_DELIVERY_UPDATE'
              EXPORTING
                vbkok_wa                 = lwa_vbkok
                synchron                 = lc_x
                no_messages_update       = space
                update_picking           = lc_x
                commit                   = lc_x
                delivery                 = gwa_header-vbeln
                nicht_sperren            = lc_x
                if_database_update       = '1'
                if_error_messages_send_0 = lc_x
              TABLES
                vbpok_tab          = lit_vbpok
                prot               = lit_prot.
                commit work.
    I have to update the following item fields
    1>BATCH
    2>LGORT
    3>NTGEW
    4>LFIMG
    5>BRGEW...
    also two header fields..The header fields are updated successfully,but the item fields are not updated..Please tell me where iam wrong...what else needs to be passed..
    Your help us highly appreciated..
    Regards,
    Raj

    Hi,
    Thanks for the repl
    i also passed..
    vbeln_vl,
    posnr_vl,
    vbeln,
    posnn
    Still not working...any other info to pass to FM
    Regards,
    Raj

  • Custom Color Picker using Radio buttons??

    I'm trying to create a custom color picker as Apex color picker has tooo many colors.  I thought a radio button would work if I could program the text to also display the color, but the following sql shows the formatted text in the result.
    SELECT  '<font color="'||color_id||'"><b>'||color_name||'</b></font>' d, color_name r FROM colors
    <font color="#F0F8FF"><b>AliceBlue</b></font>
    <font color="#FAEBD7"><b>AntiqueWhite</b></font>
    <font color="#00FFFF"><b>Aqua</b></font>
    <font color="#7FFFD4"><b>Aquamarine</b></font>
    I know I can make text different colors in a report using this technique.
    Any ideas?
    Thanks,
    Drew
    Application Express 4.2.3.00.08

    ABD - DBA wrote:
    I'm trying to create a custom color picker as Apex color picker has tooo many colors.  I thought a radio button would work if I could program the text to also display the color, but the following sql shows the formatted text in the result.
    SELECT  '<font color="'||value2||'"><b>'||value||'</b></font>' d, value r FROM lov where type='COLOR'
    <font color="#F0F8FF"><b>AliceBlue</b></font>
    <font color="#FAEBD7"><b>AntiqueWhite</b></font>
    <font color="#00FFFF"><b>Aqua</b></font>
    <font color="#7FFFD4"><b>Aquamarine</b></font>
    I know I can make text different colors in a report using this technique.
    The font element has been deprecated for many years, is now obsolete, and must not be used by authors.
    To control the presentation of text, use a suitable semantic text element with CSS. If no suitable semantic text element exists, use span:
    <span style="color: #00FFFF; font-weight: bold;">Aqua</span>

  • Double consumption of Material while doing Picking using COIK T. code.

    Hi,
    I have a component for process order which is WM managed and is withdrawn from storage type 100. The component qty is  1504 PC and the stock in storage type 100 is 199 PC. While doing COIK the system issues double the qty ( 398) of the component from storage type 100  against the process order resulting in -199 PC ( Negative) stock in storage type.
    What could be the reason for this?
    Regards,
    Parasad

    Hi,
    Check whether the BOM & Receipe is maintain correctly in the PP & check from APO also the master data for the consumption of BOM & Activity,Whether the Qty is double or not.
    Regards,
    Raj

  • Update picking quantity in delivery (Batch split items) using function modu

    Hi All,
    I need to update a picking quantity with zero value in delivery for batch split items (Item numbers start with 900001. etc).I'm trying to use WS_DELIVERY_UPDATE
    and SD_DELIVERY_UPDATE_PICKING. I'm passing parameter VBKOK-KOMUE , and all other details, but it is not updating.
    I'm able to update delivery quantity of same item with zero value but not picking quantity.
    Could you please let me know how to achive this.
    Regards
    Vikram

    I think the number 900001is mean batch split line item.
    example:
    In Deivery Note:
    Item 10
         Batch 900001
         Batch 900002
    Item 20
         Batch 900003
         Batch 900004
    That right,

  • Picking of Delivery using BAPI_OUTB_DELIVERY_CHANGE

    Hi Friends,
    I want to perform picking of a outbound delivery and would like to use BAPI_OUTB_DELIVERY_CHANGE. Do you know how to implement this? I have already tried the following:
    - Read the BAPI documentation
    - Correctly filling up the header structures with delivery number
    - Filling up item_data table with del #, item #,material, batch, qty, uom (sales), numerator & denominator factors (=1) etc...
    - also putting X in the chng_del_qty in item_control.
    But still it does not do the picking. If you have implemented it, can you pls share your experience?
    Thanks,
    Hitesh

    Hi,
    I used WS_DELIVERY_UPDATE for picking the outbound delivery...have a look at the sample code:
    WA_VBKOK-VBELN_VL = <del_nbr>.
    WA_VBKOK-VBELN = VBFA-VBELV.
    LOOP AT TAB_VBPOK.
             TAB_VBPOK-VBELN_VL = WA_VBKOK-VBELN_VL.
    Get delivery line item data.
            TAB_VBPOK-VBELN = SY-DATUM.
            TAB_VBPOK-POSNN = SY-UZEIT.
            TAB_VBPOK-VBTYP_N = VBFA-VBTYP_N.
            SELECT * INTO TABLE TVBFA FROM VBFA
                                WHERE VBELV = WA_VBKOK-VBELN_VL.
            SORT TVBFA DESCENDING.
            CLEAR TVBFA.
            READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                      POSNV = TAB_VBPOK-POSNR_VL
                                      VBTYP_N = 'Q'
                                      TAQUI = ' '.
            IF SY-SUBRC EQ 0.
              V_PIKMG = TAB_VBPOK-PIKMG + TVBFA-RFMNG.      " Picking quantity
              CLEAR TVBFA.
              READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                    POSNV = TAB_VBPOK-POSNR_VL
                                    VBTYP_N = 'Q'
                                    TAQUI = 'X'.
              IF SY-SUBRC EQ 0.
                V_PIKMG = V_PIKMG + TVBFA-RFMNG.          " Total Picking quantity
    *****Error Message: Picked quantity is larger than the quantity to be delivered.
                IF LIPS-LFIMG LT V_PIKMG.
                  PERFORM GET_RETURN  USING 'E' 'VL' '019' SPACE SPACE SPACE SPACE
                            RETURN.
                  V_EXIT = 'Y'.
                  EXIT.             " EXIT THE RFC.
                ENDIF.
              ENDIF.
            ENDIF.
            TAB_VBPOK-KZNTG = 'X'.                           " Confirmation of net weight
            TAB_VBPOK-KZBRG = 'X'.                           " Confirmation of gross weight
            TAB_VBPOK-KZVOL = 'X'.                            " Confirmation of volume
            MODIFY TAB_VBPOK.
          ENDLOOP.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
            EXPORTING
              VBKOK_WA               = WA_VBKOK
              SYNCHRON               = 'X'
              DELIVERY               = WA_VBKOK-VBELN_VL
              NICHT_SPERREN_1        = 'X'
              IF_ERROR_MESSAGES_SEND = 'X'
              IT_PARTNER_UPDATE      = IS_PARTNER
            TABLES
              PROT                   = I_PROTT.
          IF NOT I_PROTT IS INITIAL.
            RETURN-TYPE = 'E'.
            RETURN-MESSAGE = 'Goods Issue Failed!'.
            EXIT.                                  "EXIT THE RFC
          ELSE.
            COMMIT WORK AND WAIT.
          ENDIF.
    Try to use this FM ...Thanks

  • I need a FM to update batch no. & picking qty. of delivery  also to do PGI.

    I need a FM to update batch no.& picking qty of delivery items as well as to do PGI (Post goods issue) for the same delivery.I am using 'WS_DELIVERY_UPDATE' but it doesn't update the batch no. and gives error saying no bactches are deifned for delivery no XXXXX and item XXXX.Can any one suggest the suitable function module to do this? It will be better if you can give details about input parameters with example.
    Thanks & Regards,
    Nimish Dongare.

    Hi,
    I used the following code for both picking & PGI...I think it shud also work for updating the batch details.
    Picking:
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    get line data
    LOOP AT TAB_VBPOK.
    TAB_VBPOK-VBELN_VL = WA_VBKOK-VBELN_VL.
    tab_vbpok-posnr_vl = <line number> '900001'
    tab_vbpok-matnr= <material nbr>
    tab_vbpok-charg= <batch nbr>
    tab_vbpok-pikmg =<pick qty>
    tab_vbpok-meins= <uom>
       TAB_VBPOK-VBELN = SY-DATUM.
          TAB_VBPOK-POSNN = SY-UZEIT.
          TAB_VBPOK-VBTYP_N = VBFA-VBTYP_N.
          SELECT * INTO TABLE TVBFA FROM VBFA
                              WHERE VBELV = WA_VBKOK-VBELN_VL.
          SORT TVBFA DESCENDING.
          CLEAR TVBFA.
          READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                    POSNV = TAB_VBPOK-POSNR_VL
                                    VBTYP_N = 'Q'
                                    TAQUI = ' '.
          IF SY-SUBRC EQ 0.
            V_PIKMG = TAB_VBPOK-PIKMG + TVBFA-RFMNG.        " Picking quantity
            CLEAR TVBFA.
            READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                  POSNV = TAB_VBPOK-POSNR_VL
                                  VBTYP_N = 'Q'
                                  TAQUI = 'X'.
            IF SY-SUBRC EQ 0.
              V_PIKMG = V_PIKMG + TVBFA-RFMNG.               " Total Picking quantity
    *****Error Message: Picked quantity is larger than the quantity to be delivered.
              IF LIPS-LFIMG LT V_PIKMG.
                PERFORM GET_RETURN  USING 'E' 'VL' '019' SPACE SPACE SPACE SPACE
                          RETURN.
                V_EXIT = 'Y'.
                EXIT.             " EXIT THE RFC.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY TAB_VBPOK.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            VBKOK_WA             = WA_VBKOK
            SYNCHRON             = 'X'
            DELIVERY             = WA_VBKOK-VBELN_VL
            UPDATE_PICKING       = 'X'
            COMMIT               = 'X'
            IF_DATABASE_UPDATE_1 = '1'
         TABLES
            VBPOK_TAB            = TAB_VBPOK
            PROT                 = I_PROTT.
        IF NOT I_PROTT IS INITIAL.
          RETURN-TYPE = 'E'.
          RETURN-MESSAGE = 'Picking Failed!'.
          EXIT.                                  "EXIT THE RFC
        ELSE.
          COMMIT WORK AND WAIT.
        ENDIF.
    PGI
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
        EXPORTING
          VBKOK_WA               = WA_VBKOK
          SYNCHRON               = 'X'
          DELIVERY               = WA_VBKOK-VBELN_VL
          NICHT_SPERREN_1        = 'X'
          IF_ERROR_MESSAGES_SEND = 'X'
         TABLES
          PROT                   = I_PROTT.
      IF NOT I_PROTT IS INITIAL.
        RETURN-TYPE = 'E'.
        RETURN-MESSAGE = 'Goods Issue Failed!'.
        EXIT.                                  "EXIT THE RFC
      ELSE.
        COMMIT WORK AND WAIT.
    endif.
    thanks

  • Not picking batch details

    Hello
    I am using  ws_delivery_update for doing picking and PGI for outbound delivries, the function does the picking , it updates the pick quantity but not the batch number.
    here is the following code I have written.
    If any body can tell what would be the problem
    data: wa_vbkok like vbkok.
    data: lt_vbpok like vbpok occurs 0 with header line.
    data : L_PROTT LIKE PROTT OCCURS 0 WITH HEADER LINE.
    wa_vbkok-VBELN_VL =  '0081399858'.
       wa_vbkok-vbeln = '0081399838'.
        wa_vbkok-komue = 'X'.
        wa_VBKOK-WABUC = 'X'.
    lt_vbpok-vbeln_vl = '0081399858'.
    lt_vbpok-posnr_vl = 10.
    lt_vbpok-vbeln = '0081399858'.
    lt_vbpok-posnn = 10.
    lt_vbpok-matnr = '000000000000005592'.
    lt_vbpok-charg = 'xyz'.
    lt_vbpok-lianp = 'X'.
    lt_vbpok-lfimg = '28'.
    lt_vbpok-PIKMG = '28'.
    append lt_vbpok.
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
      EXPORTING
        VBKOK_WA                           = wa_vbkok
        SYNCHRON                           = 'X'
        NO_MESSAGES_UPDATE                 = ' '
        COMMIT                             = ' '
        DELIVERY                           = '0081399858'
        UPDATE_PICKING                     = 'X'
        NICHT_SPERREN                      = 'X'
      IF_CONFIRM_CENTRAL                 = ' '
      IF_WMPP                            = ' '
      IF_GET_DELIVERY_BUFFERED           = ' '
      IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
      IF_DATABASE_UPDATE                 = '1'
      IF_NO_INIT                         = ' '
      IF_NO_READ                         = ' '
      IF_ERROR_MESSAGES_SEND_0           = 'X'
      IF_NO_BUFFER_REFRESH               = ' '
      IT_PARTNER_UPDATE                  =
      IT_SERNR_UPDATE                    =
      IF_NO_REMOTE_CHG                   = ' '
      IF_NO_MES_UPD_PACK                 = ' '
      IF_LATE_DELIVERY_UPD               = ' '
    IMPORTING
      EF_ERROR_ANY_0                     =
      EF_ERROR_IN_ITEM_DELETION_0        =
      EF_ERROR_IN_POD_UPDATE_0           =
      EF_ERROR_IN_INTERFACE_0            =
      EF_ERROR_IN_GOODS_ISSUE_0          =
      EF_ERROR_IN_FINAL_CHECK_0          =
      EF_ERROR_PARTNER_UPDATE            =
      EF_ERROR_SERNR_UPDATE              =
    TABLES
       VBPOK_TAB                          = lt_vbpok
       PROT                               = L_PROTT
      VERKO_TAB                          =
      VERPO_TAB                          =
      VBSUPCON_TAB                       =
      IT_VERPO_SERNR                     =
      IT_PACKING                         =
      IT_PACKING_SERNR                   =
      IT_REPACK                          =
      IT_HANDLING_UNITS                  =
      IT_OBJECTS                         =
      ET_CREATED_HUS                     =
      TVPOD_TAB                          =

    Hi,
    May I know how did you update the batch number in picking ??
    I am facing the same issue.
    Thanks in advance.
    Best Regards,
    Nidhya

  • WS_DELIVERY_UPDATE suppress information messages

    I'm currently using WS_DELIVERY_UPDATE to pick and pgi my delivery.  However, when doing so it pops up an information message of V1166 "Oldest of open items is overdue".  This is a program that is going to be doing mass picking/pgi so it's not ideal to have this message pop-up.  If the program runs in the background the message doesn't hinder any activity however, if a user wants to process 100 deliveries in the foreground (I know not ideal) I can't have this message popup every time or even 10 times it would be very annoying to the user. Any thoughts on how to suppress this? I've put the parameter NO_MESSAGES_UPDATE= 'X' andif_error_messages_send_0 = SPACE.
    ef_error_in_goods_issue_0

    Hello Moshe
    Have you found any solution?
    I am facing the same problem.
    Regards
    dstj

Maybe you are looking for

  • Lightroom edit in photoshop

    Hello, I have lightroom 3 and photoshop cs4 and cs5 I have a problem, I can open a nikon raw file in lightroom, make adjustments etc, but when I try the "edit in photoshop" option with the right click menu, it just sits there. Multiple or a single fi

  • Default selection on programmatically created UIPickerView

    I'm learning Obj-C for iOS 4 apps. This's what I've done so far... Created a TextField. At 'textFieldShouldBeginEditing' event, I'm creating a dynamic PickerView with my entries, and returning NO to skip the default keyboard. I've also made my UIView

  • Remove unwanted objects with content-aware healing

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f-1a883eeb12e2803aa4d -7fdd.html

  • Problem opening .rep-files

    Hi all, I am new here and my english is not very good but I hope you'll understand my question. Recently I started using BO, I have to open it via Citrix. When BO is started I can (off course) open a .rep-file. But since last week it isn't possible a

  • Portal30_sso.wwsso_app_admin.ls_login: PROCEDURE DOESN'T EXIST

    I'm getting this error when I click on the Login link on the portal page. I checked in the database and the procedure is there but there seems to be a problem in compiling it. As the procedures were installed as part of the installation process I was