Updating LIKP-ANZPK when goods receiving one line item of Inbound Delivery

I am Goods Receipting a single inbound delivery line item via function module WS_DELIVERY_UPDATE. Once the line item, and associated Handling Unit, are received, I would like LIKP-ANZPK (number of packages) to be updated with a new total of HU's that are on the inbound delivery. Does anyone know how to achieve this? Is there some flag I'm missing in WS_DELIVERY_UPDATE? Here's my call to this function:
  Format Delivery Number
    CLEAR: gs_vbkok.
    gs_vbkok-vbeln_vl  = gs_e1edl20-vbeln.
    gs_vbkok-wabuc     = gc_true. "GR
    gs_vbkok-wadat_ist = sy-datum.
    gs_vbkok-kzebu     = gc_true. "Posting as Partial Goods Receipt
  Format Picking Confirmation table
    CLEAR: gs_vbpok, gt_vbpok[].
    gs_vbpok-vbeln_vl  = gs_e1edl20-vbeln.
    gs_vbpok-posnr_vl  = gs_lips-posnr.
    gs_vbpok-vbeln     = gs_e1edl20-vbeln.
    gs_vbpok-posnn     = gs_lips-posnr.
    gs_vbpok-ebumg_bme  = gs_l44_sum-vemng.
    APPEND gs_vbpok TO gt_vbpok.
  GR the Individual Inbound Delivery Line Item. ZDL_BADI_HU_SAVE will
  change the HU Status table HUSSTAT and the HU Header table VEKP to
  allow us to delete the HU.
    CLEAR: gs_prot, gt_prot[].
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
      EXPORTING
        vbkok_wa                 = gs_vbkok
        commit                   = gc_true
        delivery                 = gs_e1edl20-vbeln
        update_picking           = gc_true               "update the pck qty
        if_database_update       = '1' "check & save
        if_error_messages_send_0 = gc_true
      TABLES
        vbpok_tab                = gt_vbpok
        prot                     = gt_prot.

Good Morning
The solution is to fill KZAPK and KZNTG fields.
Example:
CLEAR ls_vbkok.
     ls_vbkok-vbeln_vl  = <ls_created>-document_numb.
     ls_vbkok-vbtyp_vl  = <ls_created>-document_category_sd.
     ls_vbkok-anzpk     = id_volum.
     ls_vbkok-kzapk  = 'X'.
     ls_vbkok-kzntg  = 'X'.
     ls_vbkok-wabuc  = 'X'.
     CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
       EXPORTING
         vbkok_wa       = ls_vbkok
         update_picking = 'X'
         synchron       = 'X'
         commit         = 'X'
         delivery       = <ls_created>-document_numb
       IMPORTING
         ef_error_any   = ld_error.
https://scn.sap.com/thread/1297166

Similar Messages

  • Subcontracting: Picking Relevancy of service Line Item in Inbound Delivery

    Hi experts
    I have a challenge. There is a Subcontracting PO having 2 line items, 1st one is Trading product which is the physical finished product & 2nd line item is service line item( service material type). So Can we create a Inbound Delivery wrt PO having Service Line item to do receipt?
    I tried creating Inbound but failed, error is : material ( service line item) is not extended to Warehouse. But my requirement is: it shouldnu2019t be extended to WM views so that it only appears in Inbound delivery as line item & it should not be relevant for Picking.
    Any idea how can we do this?
    Rgds
    Ram

    Hi
    No delivery is possible for item catageory D or material type ( DIEN)
    Edited by: Sanjay  Shah on Sep 20, 2010 3:50 PM

  • Multiple Account Assignment at the time of Good Receipt for one line item

    Sap Members.     
      We have some contracts with cost center distributions that the exact amount is not known.  These Blanket Orders require a receiving confirmation.then only we can conclude the cost center, If we create one line item with total amount of contract to one cost center, is there a way can we distribute this cost to the different cost centers at the moment receiving the goods
    Any help will be highly appreciated.
    Thanks
    Nick

    Please Check SAP Notes - Oss Notes
    With multiple acct. assignment, enter GR non-val. or cancel GR
    Message no. 06417
    Diagnosis
    In the case of PO items assigned to more than one account, instead of valuation being carried out at the time of goods receipt, the relevant materials are not valuated until the invoice data is entered into the system.
    Procedure
    •     Set the indicator for non-valuated goods receipts
    or
    •     Cancel the GR indicator.
    OSS-Notes.                              -
    Version: 5        -
    Validity: valid since 12.04.2007
    Note 204252 - Valuated goods receipt for multiple account assignment
    Summary
    Symptom
    You cannot use the valuated goods receipt function in combination with multiple account assignment.
    Other terms
    EKPO-WEUNB, screen 0113, ME21, purchase order, 06417, 06 417
    Reason and Prerequisites
    We have not implemented this function since users who post goods receipts would have to determine the distribution to individual account assignment items during  partial deliveries. Generally, users cannot or should not determine this.
    An automatic distribution also causes problems and is also not implemented due to technical reasons

  • Possibility of reversing Goods issue and delivery of one line item

    Hi experts,
    Is there a possibility of reversing Goods issue for only one line item and also the delviery for that line item so that i can make changes in the sales order for that line item only.
    Appreciate your response.
    Regards,
    krishna

    Hi Laxmipathi & Rithvika,
    Basically the issue is in the sales order there are around 90 line items out of which most of them has been processed the delivery and GI and even invoices has been made for some.
    While doing so, there are about 5-6 delivery docs has been created for the 90 line items.
    Now, we need to change some data for few line items , for this we dont want to do reversal for all the line items and again do a delivery and PGI as these line items are in various delivery docs.
    Let me know , if there is anyother way of doing it or we should follow the normal process of doing it all again.
    Regards,
    krishna

  • My 3g has stopped sending mms and when i receive one i have to view it on 02 website

    My 3g has stopped sending mms and when i receive one i get a msg from 02 telling me to view it on their website - Help anyone please? Thanks

    Have you checked that MMS messaging is switched on in the Phone Settings?  Even if you thought it was, settings sometimes get changed.  The only other suggestion is to talk to your network provider about it.

  • SD / Third Party Sales / 2 line items in PR for one line item in Sales orde

    Hi
    In a third party scenario, I have item category TAS .When I create a sales order, there are 2 Schedule lines for the item. The first SL has confirmed qnty as 0 and the second SL has confirmed qnty as full quantity ( say50). When I save the sales order, it creates a PR as expected. However the PR has 2 line items for this single line item of SO. Each PR line items have the same quantity, in this case 50. Why is this happening. Is it due to some configuration.
    All my SD configurations are fine for third party process. Please let me know if somebody faced this situation and solved it.
    In crux, one line item in third party process leads to 2line items in PR , each with the quantity as mentioned in teh confirmed schedule line.

    Yes interesting to see multiple scheudle lines during TAS processing.
    Also please check the scehdule line category. Should be CS. Also check the MRP type in your material.
    CS should have Order Type = NB , Item category = 5, Acct Assign Category = 5, incompletion = 31. Rest all fields should be blank or unchecked.
    Pur Requisition will be based on the scehdule lines. Since there are 2 schedule lines, you have two line items in the purchase requisition. If you can fix the multiple schedule lines problem in your order, then your requisition looks good.
    Please check note 210417 reg av chk for TAS.
    Regards
    Sai

  • Delivery get created with one line item from sale ord having two line item

    I have an issue when delivery is created with reference to a sales order.
    The sale order consist of a header with customer group VBKD-KDGRP = '01'. There are two line item for this header with item 10 having customer group '01' and line item '20' having customer group '02'.
    When delivery is created with reference to this sale order the delivery contains only one line item corresponding to line item 10 having customer group '01' of the sale order. But I need to have both the line item in the delivery irrespective of difference in customer group.
    What makes this split up of delivery? Is there any configuration or user exit that need to be applied in order to adress this.
    <REMOVED BY MODERATOR>
    Thanks in advance
    Ramachandran Babu
    Edited by: Alvaro Tejada Galindo on Jun 13, 2008 5:45 PM

    Check if there is any copy routine applied in the copy control from order to delivery - transaction VTLA. The routines themselves can be found in transaction VOFM (Data transfer -> Deliveries). LIKP-ZUKRL field contains the split criteria (by the way, check what's in that field on your deliveries).
    It's possible that there is something in the current routine that is forcing the delivery split. Otherwise you can probably use similar approach to make it stop splitting.
    Hope this helps.

  • Free Goods for multiple line items of the same material

    Hi Friends,
    We have configured Free Goods to a particular material in such a way that if the customer orders 100 qty of Material A then he gets 10 qty of Material B free. This is working fine if there is only one line item of Material A with qty more than 100.
    However, if the order is created in such a way that there are two line items of material A for 50 qty each then the system is not giving the free material B, even though the total ordered qty in the sales order for material A is 100.
    How can this be configured in the system? Please Help.
    Regards,
    Abhishek

    What is the purpose of giving the same material as second line item.
    specify in the first line item itself.
    or els the condition record which you have specified that for 100 material of A gives 10 material of B modify it to 10 of A should give 1 material of B
    The first you will be useful for you.

  • More than one VAT code on one line item?

    Hello,
    Running ECS SRM 5.0.
    Is it absolutely impossible to set more than one VAT code on one order line in a SC or PO?
    Can this be acomplished by using a user exit or anything?
    This demand comes from a public sector company which pays different VAT dependent on what they use as account assignment. In some orders when split account assignment is used, it might be two different VAT codes on the same line.
    rgds
    GAR

    Hi
    Which SRM version are you using ?
    As far as i know, this is standard SRM functionality as it not feasible to have multiple VAT codes against one line item.. This is not possible .. Please confirm the same with SAP by creating a Customer OSS message.. Do let me know...
    However this is possible by making the code as per your business requirments using BBP_DOC_CHANGE_BADI.. However, since i have not tried this.. You need to try this yourself..
    Hope this will answer your query..
    Regards
    - Atul

  • Goods Receipt Value line item wise

    Hi Experts,
    My client wants show Goods Receipt Value line item wise at the time of GR entries.
    He wants show GR Value before saving the GR document.
    Please advise me how it is possible.
    Thanks in advance,
    Chandhu

    and what will be the benefit of such request? do you think a receiver (warehouse personell) can valuate whether the Po price is correct maintained by a buyer?
    Maybe it is better to create check reports for the buyers instead.
    you can certainly check in a user exit if price is far away from the price maintained in material master and can issue a warning or even an error.

  • SO Multiple Line Items but one line item in billing

    Hi Experts,
    I have a requirement from a client whereby they want to consolidate the items in the sales order and create billing as one line item.
    Example: in sales order there are 5 line items (user need to have separate line items due to PR need to be generated for different vendors via 3rd party).
    Line item 10: Miscellaneous charges - $20.00
    Line item 20: Miscellaneous charges - $20.00
    Line item 30: Miscellaneous charges - $20.00
    Line item 40: Miscellaneous charges - $20.00
    Line item 50: Miscellaneous charges - $20.00
    In standard SAP, when the user generates billing document - the billing will show 5 line items. However user wants to consolidate them into 1 single line item  i.e. Miscellaneous charges - $100.00
    Please advice how can this be done.
    Rgds

    Hi,
    Go to Tcode : VTFL.
    There select your  Billing Type with respect to Delivery type. e.g F1 --- LF or F2 -
    LF.
    Select thet option and goto Items.
    There at item level , select the item category of your materials. There In Details :
    Maintain Billing Quantity : H as Cumulity Batch Quantity.
    Let me know weather is has solved ur problem or not.
    Thanks.

  • Want to copy Delivery address of one line item in shopping cart to all item

    Hi Experts,
                    We are upgrading from SRM 5.0 to SRM 7.0,In SC Creation We want to copy Delivery address of one line item in shopping cart to all line items in Shopping cart by clicking Change All Items button.This is custom button we added this button and we had written code to achieve the functionality but it is not working.This is same like Change All Items button in Account Assigment for copy accont details of one line item to all other line items in SC.
    Web Dynpro Component:/SAPSRM/WDC_UI_DO_SHIPTO
    Web Dynpro View:V_DODC_SHIPTO
    Thanks,
    Aarthi.

    Hi Prasad,
                   Our customer needs that button,they want whenever they are clicking the button delivery address should copy to all line items.
    In my action ONCHANGE_ALL_ITEMS i called this method
    wd_this->mo_dodm_shipto->zchange_all_items( ).
    zchange_all_items( ) is  implemented in class /SAPSRM/CL_CH_WD_DODM_SHIPTO.
    the code i wrote inside zchange_all_items( )
    *Error
      DATA: LX_PDO_ABORT               TYPE REF TO /SAPSRM/CX_PDO_ABORT,  " Class for Fatal error caught by PDO Layer
            LX_PDO_ERROR               TYPE REF TO /SAPSRM/CX_PDO_ERROR.  " Class for PDO General Exception
    Object Instances
      DATA: LO_MSG_CONSUMER            TYPE REF TO /SAPSRM/IF_PDO_MSG_CONSUMER,
            LO_PDO_SHIPTO              TYPE REF TO /SAPSRM/IF_PDO_DO_PARTNER.
    Context-Data
      DATA: lte_cll_shipto              TYPE /sapsrm/if_ch_wd_set_facade=>gt_guid_element,
            loe_cll_shipto              TYPE REF TO /sapsrm/if_ch_wd_set_element.
    Field Symbols
      FIELD-SYMBOLS <lse_cll_shipto>    LIKE LINE OF lte_cll_shipto.
    DATA : lo_pdo_acc TYPE REF TO /sapsrm/if_pdo_do_acct_assgmnt.
      DATA : ls_shipto_cll type /SAPSRM/S_CLL_SHIPTO,
             lt_pdo_partnerdetails      TYPE bbp_pdt_partner,
             ls_pdo_partnerdetails      TYPE bbp_pds_partner,
              LV_GUID          TYPE BBP_GUID,
              lv_item_guid type bbp_guid,
             lv_filled TYPE wdy_boolean.
    *exceptions
      DATA : LX_ABORT                  TYPE REF TO /SAPSRM/CX_PDO_ABORT.
    *Constants
      CONSTANTS : LC_OBJECT_ID         TYPE CRMT_SUBOBJECT_CATEGORY_DB VALUE 'BUS2121001',
                  LC_ADDR_ORIGIN       TYPE /SAPSRM/S_CLL_SHIPTO-ADDR_ORIGIN VALUE 'B'.
      IF LV_FILLED = ABAP_TRUE.
    Downcasting to shipto
        LO_PDO_SHIPTO ?= MO_PDO.
    insert the clipboard into facade and update and submit update
        me->/sapsrm/if_cll_do_mapper~insert_from_clipboard( io_set_facade = mon_cll_set_facade ).
    Add new Accounting entries.
        lte_cll_shipto = mon_cll_set_facade->get_data_elements( ). "get all elements from the context
        LOOP AT  lte_cll_shipto ASSIGNING <lse_cll_shipto>.
          loe_cll_shipto = <lse_cll_shipto>-set_element.
          loe_cll_shipto->get_static_attributes( IMPORTING rv_attributes = ls_shipto_cll ).
    Map ui-structure to pdo-structure
          MOVE-CORRESPONDING ls_shipto_cll TO ls_pdo_partnerdetails.
          IF LS_SHIPTO_CLL-PARTNER_FCT =  mv_part_func.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = ''.
          ELSE.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = LS_SHIPTO_CLL-PARTNER_FCT.
          ENDIF.
          IF ls_pdo_partnerdetails-del_ind NE 'X'.
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                ev_guid_16 = ls_pdo_partnerdetails-p_guid.
           mv_acc_guid_split = ls_pdo_shipto-guid .
            IF mo_scope = 1.
              ls_pdo_partnerdetails-p_guid = mon_cll_set_facade->get_bo_guid( ).
            ELSE.
              ls_pdo_partnerdetails-p_guid = mo_parent_bo_mapper->items_get_lead_selection( ).
            ENDIF.
            APPEND ls_pdo_partnerdetails TO lt_pdo_partnerdetails.
          ENDIF.
          CLEAR : ls_pdo_partnerdetails, ls_shipto_cll.
        ENDLOOP.
    Add New items to PDO
        IF NOT lt_pdo_partnerdetails[] IS INITIAL.
          TRY.
              LO_PDO_SHIPTO->update_item_partners( EXPORTING it_partner = lt_pdo_partnerdetails
                                                               iv_item_guid       = lv_item_guid
                                                   CHANGING co_message_handler = mo_pdo_message_consumer ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Update PDO with the changed data.
          TRY.
              mo_pdo->submit_update( ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Fire refresh of DO Mappers registered for refresh since the item table has acc related data.
          mo_parent_bo_mapper->fire_event_refresh( iv_perform_updates = abap_false ).
        ENDIF.
      ENDIF.
    Thanks,
    Aarthi.

  • One PR for one line item in third party sales

    Hi all,
    When we create and save a third pary sales order, the system will create a Purchase Requesition.
    If there are 5 line items in the Sales Order, the system will create only one PR for all the line items.
    I will create only one sales order, and  I want one PR for one  line item of the sales order.
    How to Configure this.
    Regards
    VASU

    Vasu,
    PR in the sales order is generated by the settings in Schedule line and Item category. In a particular sales order, if there are 5 line items and of same item category and schedule line then system will give only one PR number. Again if the item category ans schedule line is different then there will be multiple PRs.
    Can you please elaborate more on your requirement. Again from one PR you can generate multiple PO
    Thanks,
    Raja

  • FBL5N: missing one line item while viewing the report in spool

    Hi Experts,
    I 've got a problem while viewing FBL5N report in spool. The report is missing one line item, but when I
    execute it in foreground, the report was ok.
    Can somebody explain?
    TQ.

    Hello,
    It seems you should implement notes 1100728 and  1166251 !
    Best Regards,
    Glayds xing

  • Two deductions for invoice with same reason code posted as one line item

    Hi
    We have a scenario wherein we are taking two or more deductions on the same invoice and are using the same reason code which have a setting of charge off.
    SAP system displays the FI posting with same reason codes with charge off setting as one line item.
    However we want the FI Posting to display separate line items per deduction and not combine amounts of deductions based on same reason code with charge off setting.
    Any comments are appreciated.
    Edited by: Kirti Bhardwaj on Jul 24, 2011 9:46 AM

    Hi,
    you can use different reason codes in distribute differences screen once you have fist selected one reason code for one invoice.

Maybe you are looking for

  • Nokia 5530 HomeScreen issue - not showing email no...

    Hi All, I have just bought Nokia 5530 XM and it was working fine previously but just got an issue yesterday that it is not showing the email notification on the home screen, just showing the empty bar on the place of the email notification and when i

  • Facebook not in my world

    Hi, I deleted fb from my world because I was not able to go into facebook for 2 days.  I tried to get it back from the unistall list but it is not listed.  When I try to download the app from facebook it gives me this error: Notice You hace attemted

  • Captivate 8 - Click Box Deduct Points for incorrect click

    I am working on building a simulation assessment for a course I am working on. I don't want to use the hot spot quiz question due to the required use of the submit button. I have set up a simulation where there are 10 steps that are graded. The learn

  • Database table TRSTIT missing after Upgrade

    Hi All, We are upgrading from 4.7 to ECC 6. On the upgraded system we could not find the database table TRSTIT. This is not happening in all system. The table was not there in Sanbox it exists in DEV and its not exist in QA againg. Has any one faced

  • BT infinity FTTP

    I'm very anxious to get "BT infinity" in fact I check samknows.com at least once a week to see if my activation date has been moved closer, today I was very happy to see its being moved from the 01.06/12 to 01/03/12. I've also checked online and down