LSMW Custom program for updating picked quantity in outbound delivery

I have been tasked with creating an LSMW that will update the picked quantity in an outbound delivery.  I originally thought of using a recording on transaction vl02n, but I need the LSMW to work with variable amount of item lines. 
Through some research I figured out that FM WS_DELIVERY_UPDATE_2 can update the picked quantity.  I have successfully created a custom program that calls this FM. 
I have created what I believe to be the correct entries in the SXDA0, SXDA1, SXDA2, and SXDA3 tables to make my custom program work with LSMW.  I am able to find my program in the "Maintain Object Attributes."  I am also able to "Maintain Structure Relations Step" (screen shot attached)  I am currently using VBKOK and VBPOK for the header and line item structures respectively. 
My difficulty is converting the data.  I have tried everything from having no conversion rules to mapping many fields and I always receive the following error (screen shot also provided).
Error analysis
The statement
     "Move src TO dst"
requires that the operands "dst" and "src" are convertible.
Since this statement is in a Unicode program, the special conversion
rules for Unicode programs apply.
In this case, these rules were violated.
Program /SAPDMC/SAP_LSMW_CONV_FORMS
Include  /SAPDMC/SAP_LSMW_CONV_FORMS
Row 1,080
Module type (FORM)
Module Name TRANSFER_RECORD
Since I have run the conversion with no conversion rules I am very confused as to why I am still receiving this error.  Any insight would be greatly appreciated.

For anyone I have uncovered some interesting things about my issue.  I started going through the conversion code piece by piece trying to figure out what data element the system was choking on. 
After digging though the program and using the debugger I found out that the issue was in FORM transfer_record. 
ASSIGN (g_record) TO <l_record>.
     CASE g_objecttype.
       WHEN '01' OR '02'.
         gt_buffer-record = g_record.
         gt_buffer-data = <l_record>.
         APPEND gt_buffer.
If this LSMW was working
g_record = 'VBKOK'
<l_record> = 'VBKOK'
But what is actually happening
g_record = 'VBKOK'
<l_record> = "Structure of some sort
I do not know why this is happening since the field symbol is being assigned right before this piece of code.  Any suggestions are greatly appreciated.

Similar Messages

  • Urgent-Help needed in FM to update picking quantity in outbound delivery.

    Hi,
    I have to automatically update the delivery and picking quantity for an outbound delivery without doing any post goods issue.Could you please help me with any FM which does this with proper explanation.
    Any help will be greatly appreciated.
    Thanks,
    Sandeep.

    Check with FM : SD_DELIVERY_UPDATE_PICKING
    The above FM will update Picking in delivery
    Check the structure VBPOK ,within structure VBPOKKOMMI(Include structure)
    Field is PIKMG.
    Thanks
    Seshu

  • Automatic Pick Quantity In Outbound Delivery

    Dear all,
    Please give me a solution for Automatic Pick Quantity In Outbound Delivery using t-code VL01N.
    Thanks & Regards
    Amit Karalkar

    Hi Amit,
    I will explain how you set up this automatic picking, and then you can
    work backwards from there.  The automatic picking you are experiencing
    is actually related to the output type EK00 assigned to your shipping
    point.
    Consider the following two setup steps which will result is automatic
    picking:
    Set the output type to EKOO, in the print picking list of the shipping
    point in customizing.
    Make sure the parameters below are set:
    Message Language
    Number of Messages
    Send Time              <<<<<<<<<<< this must be set to 4 (send immed)!!
    Transmission Medium
    1) you have to set the parameters for EK00 in the shipping-point-
       maintenance in customizing:
              -> Enterprise Structure
                 -> Definition
                    -> Logistics Execution
                       -> Define, copy, delete, check shipping point
    2) as second step you define the shipping-print-parameters in
       customizing:
               -> Logistics Execution
                  -> Shipping
                     -> Basic Shipping Functions
                        -> Output Control
                           -> Define print parameters shipping
                             -> Shipping (Spec.case)
    Therein there should be an entry for every shipping-point, where
    you like to use the picking-list EK00!
    If you have 1 & 2 setup for a particular shipping point you will
    experience the "automatic" picking of deliveries.
    Regards,
    Ramana

  • How to change the pick quantity in outbound delivery using bapi

    Hi,
    I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
    plas advice any BAPI to change pick quantity
    Regards,
    Krishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • Custom Program to update the GL journal DFF each time journals are imported

    Hi Guru's,
    I have a requirement that I need to build a custom program to update the GL Journal Lines DFF. This program will be executed each time sub-ledger journals are imported to GL.
    OPM, AP, AR, Inv & OM will be the Journal sources for those the journal line DFF needs to be updated.
    Kindly could anyone give me the best way of doing it.
    Thanks & Regards,
    Genoo

    Hello Geno,
    A technical solution is when Journal Import program is launched, the updates of DFF are done after the creation of journals in GL.
    So no need to have a custom concurrent program to update the Journals.
    You can customize the gl_import_hook_pkg.post_module_hook package to call a custom package and do the updates for journals.
    HTH,
    Vik

  • Update Picking quantity in VL02N?

    Hi All,
    In my application i am Using WS_DELIVERY_UPDATE_2 we can  update picking quantity, it is working fine when we pick full quantity.
    Suppose if i pick partial quantity, for example for one item total qty is 2, i am picking 1 first time and save, next time if i pick 1 second time it is not updating? how can we acieve this??
    Thanks,
    Venkat.

    Use below FM :
    Clear : i_prot.
      refresh : i_prot.
    Delivery Update
      CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
           EXPORTING
                do_commit                = 'X'
           TABLES
                t_delivery_items         = i_lips
                prot                     = i_prot
           EXCEPTIONS
                conversion_overflow      = 1
                essential_data_missing   = 2
                error                    = 3
                nothing_to_update        = 4
                lock_after_update_failed = 5
                error_in_delivery_update = 6
                OTHERS                   = 7.
      COMMIT WORK.
    Pass lips-lgort..
    <REMOVED BY MODERATOR>
    Thanks
    Seshu
    Edited by: Alvaro Tejada Galindo on Aug 8, 2008 4:51 PM

  • How to create a customer program for "PPMOD"feature(pe03)?

    Hi,
    I want to create customer program for "PPMOD"feature(tcode:pe03),who can tell me the steps? (ECC6.0)
    thanks a lot?
    Olivia Yang

    Hi,
    /1PAPA/FEAT610PPMOD the generated program for the feature.
    You are forbidden to change this generated program. Ideally whatever logic regarding the feature needs to be put through pe03 tcode of feature and not in the program.
    Still if there are any changes that need to be done to the program you can enhance the program.
    To enhance the program you need to go to se 38 and open this program and press Shift + F4
    Then Goto->Enhancement operations->Show implicit enhancement operations
    Then go to yellow line right click on mouse and Enhancement implementation->Create
    And put your own code in the implementation.
    Regards,
    Divya

  • XD02 transaction to change the customer data for updating KNA1 table?

    Hi all,
    How can we use XD02 transaction to change the customer data for updating KNA1 table?
    Give the steps.
    Thanks in advance
    rk

    Hi KR,
    Why don't u use BDC to run XD02.
    With Regards,
    Zafar Ali

  • Custom program for Dynamic Actions

    Iam using BDC’s for Actions and Org.Assignment infotypes. The dynamic actions are planned to be carried out by using separate function modules.
    My query is, On the plausibility check conditions lots of structures are referred (eg: PSPAR,RP50D etc). How do i perform this condition check in the custom program (for dynamic actions) as these structures do not have any data?
    Thanks
    Message was edited by: SShenoy

    1. PSAVE-FIELDNAME will use the old values in the FIELD. It will be used in cases when we have to do plausibility checks on the basis of new as well as old value, eg, we want to use dynamic action for employees whose status changes from 'inactive' to 'active'
    2. Sequence no represents sequence no. If for a particular Infotype and FCode, we have to specify which step has to be performed first. Sequence no tells the system exactly this thing.
    Regards
    Lincoln

  • Update Order status after Outbound delivery picking

    Hi All,
    I have a problem in partial BOM deliveries using Idocs.
    We are using IDOC_INPUT_DELVRY to update the picking quantity and the delivery quantity of BOM.
    My problem here is, it is updating only the second item of the  BOM, but not its parent and the other children which belongs to the BOM.
    However, doing the same operation manually via VL02N, when we change the delivery quantity of the parent BOM material every item of the BOM is updated in the delivery.
    I tried implementing the BADI   LE_SHP_DELIVERY_PROC and updating the picking quantity using the function module WS_DELIVERY_UPDATE_2/SD_DELIVERY_UPDATE_PICKING_1, but it is updating the picking quantity of the second item twice.
    Please throw me some thoughts of fixing this issue?
    Thanks in advance.

    If your wearhouse management is active, then you need to create transfer order. If you don;t want to create transfer order, remove the wearhouse settings for the material in material master.
    award if it helps
    krishna

  • Exit to set the automatic PGI and picking while creating outbound delivery

    Hi experts,
    Could anybody suggest how to set the automatic PGI and Picking while creating outbound delivery.
    Currently we are settting VBUK-WBSTK field with value C. But PGI is not happening.
    kindly help me.
    Regards,
    Ravi

    Hello Parihar,
    thanks for reply.
    yes we know that "This process of picking and GI involves reducing the stock and allocating the goods to the delivery"
    if you go for Custom program and Use FM WS_DELIVERY_UPDATE, we can do Picking and PGI.
    our requirement is to do pickong and PGI while creating Delivery it self, based on this output types will be processed.

  • Update picking quantity in delivery for batch split items

    Hi,
    I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).
    To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.
    If we do not make picking quantity also zero it will not allow to delete these items
    and gives an error message saying "item is already made available for transfer order".
    Could some one let me kow how to make picking quantity also zero for batch spit items using FM.
    Thanks

    Hi Vikram
    To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.
    Parameters to be passed:
    VBKOK_WA
    -- VBELN_VL - Delivery Number
    -- VBELN - Sales Document Number
    SYNCHRON - 'X'
    VBPOK_TAB
    -- VBELN_VL - Delivery Number
    -- POSNR_VL - Delivery Item Number
    -- VBELN -- Sales Document Number
    -- POSNN -- Sales Document Item Number
    -- MATNR -- Material Number
    -- LFIMG -- '0.000'.
    Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.
    Please try on your end too...
    Hope this helps.
    Regards
    Eswar

  • BAPI's for Batch Split and Update Picking Quantity

    HI All,
    I have the delivery details(along with batch number, MATNR etc), now i need to split the batch for picking.
    and then i need to sum the batch quantity and update this total quantity to the picking quantity and then update the delivery.
    I tried to use this BAPI function module BAPI_INB_DELIVERY_CHANGE.
    But i am unable to find the picking quantity field in this BAPI.
    Any idea about how to split the batches using BAPI's??
    and how to update the picking quantity using BAPI's?
    Thanks in advance.
    Vijay

    Hi,
    Can you share the solution for the above issue/
    Regards

  • "Internal error (-5002) occurred" On Pick List Update Picked Quantity

    Hi Experts,
    I have an SDK program that simply tries to update the Picked Quantity in SAP. Previously it has been working fine, until I try to use the same logic for items managed by Batch or Serial Number.
    In this scenario, I have created a PickList with only 1 row, the item is managed by Serial Number.
    I try to simplify the code as below.
    Dim oBaseDocument As SAPbobsCOM.PickLists
    oBaseDocument = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists)
    BaseDocument.GetByKey(12345)
    oBaseDocument.Lines.SetCurrentLine(0)
    oBaseDocument.Lines.PickedQuantity += 1
    oBaseDocument.Lines.BinAllocations.Add()
    oBaseDocument.Lines.BinAllocations.SetCurrentLine(0)
    oBaseDocument.Lines.BinAllocations.BinAbsEntry = CInt(sBinAbsEntry)
    oBaseDocument.Lines.BinAllocations.Quantity += dXML_Quantity
    oBaseDocument.Lines.SerialNumbers.InternalSerialNumber = sXML_BatchSerialNo      ' <--- ***
    lRet = oBaseDocument.Update
    I have added the *** line for handling the Serial Number, but when it hit the Update command, the SDK returns "Internal error (-5002) occurred".
    I'm not sure what does it means.
    Anyway I tried to remove the *** line and it works fine for item not managed by Batch or Serial, but the issue will remains for the Items managed by Serial or Batch.
    Please advise whether I missed anything in this code.
    Thank you in advance.
    Best Regards,
    Krisma

    Hi Krisma,
    I haven't done this thing practically but error -5002 will occur, if there is any Invalid Object.
    You can check it accordingly.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Updating picked quantity, gross and net-weight in delivery

    Hello Experts,
    I have created a program from which I am trying to update the picked quantity, gross and net-weights into an outbound delivery. This works in the normal scenario when the base UoM, sales UoM and the gross and net-weight UoMs are the same.
    However, when these UoMs are different, I have to carry out a conversion according to the UoM being used for each of the quantities mentioned. In such a scenario, the BAPI returns the following messages: -
    Error message: - Error in document 0080005487 item 00010 (quantity consistency check) [Message Class VLBAPI; Message Number 004]
    Warning message: -Quantities  0.0000000000000000E00 and  0.0000000000000000E00 cannot be represented by conv. factors 87,658 and 39,761 [Message Class VL; Message Number 266]
    The BAPI that I am using is BAPI_OUTB_DELIVERY_CHANGE.
    For the parameter ITEM_DATA, these are the values, that I am passing: -
    DELIV_NUM: - 80005487
    DELIV_ITEM: - 00010
    Material: - 30020596
    DLV_QTY: - 4
    DLV_QTY_IMUNIT: - 8.818
    FACT_UNIT_NOM: - 87658
    FACT_UNIT_DENOM: - 39761
    GROSS_WT: - 1.004
    NET_WEIGHT: - 0.004
    UNIT_OF_WT: - TO
    UNIT_OF_WT_ISO: - TNE
    SALES_UNIT: - KG
    SALES_UNIT_ISO: - KGM
    BASE_UOM: - LB
    MATERIAL_EXTERNAL:  - 30020596
    MATERIAL_GUID: - DD7B9B2F133B61F1B6DF0015C5891481
    Please note that the delivery I am trying to update has the following units: -
    Base UoM: - Lb
    Sales UoM: - Kg
    Gross & Nt Weight: - TO
    Please let me know if there is any other value in the item_data internal table or any other parameter of this BAPI that needs to be initialized.
    Please respond ASAP. I have been struggling with this issue for quite some time.
    Regards,
    Divyaman Singh Rawat

    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_outb_delivery_change&adv=false&sortby=cm_rnd_rankvalue
    Will help you out

Maybe you are looking for

  • How do I download more than 10 items at a time

    I dont seem to be able to download more that 10 items at the same time.

  • JDBC Sender/Receiver Adapter Configuration with key fields in SAP XI

    Hi All, Good evening. Please let me know, what are the settings required for key fields when configuring both sender and receiver Adapter? In My IDOC-XI-File Scenario, when i am sending an IDOC from R/3, I got Mapping Runtime exception error? So, How

  • System preferences panel under loepard 10.5.1

    Some of my system preferences icons disappeared from the System preferences panel (personal / desktop & screen saver). How do I get them back?

  • Pa_agreement_pub.create_agreement Currency Code Error

    Hi, I am trying to create an Project Agreement using the API. But everytime I try to run the script, it gives me an error *"Validation Error ->The Agreement Currency Code is not valid. (AGREEMENT=p1011-1) lv_msg_data PA"* I have provided the Currency

  • Regarding merging two projects:

    we are doing the project using creator . i had desiged 10 pages of that project as one web application in creator and my collegue had done some pages as sepatare web application in creator. could you please tell me the way to merge these two web appl