How to update batch number, Storage loc, qty in VL02N on delivery items?

Hi all,
Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (<b>VL02N</b>)?
1) Enter or update a storage location on a delivery item?
2) Batch split a delivery item to give multiple batch numbers. For example if delivery item is '000001' then after batch split additional delivery items with batch number assigned will appear as:
   item,    storage loc, batch,    qty
'900001',  '0001', 2070062806,  1000
'900002',  '0001', 2070052606,  3000
'900003',  '0001', 2070025366,  3000
can this be done using WS_DELIVERY_UPDATE/_2 or someother fn mod.
Do not wish to use BDC or call transaction. Any help appreciated.
thanks,
Subba

Answered!!

Similar Messages

  • Updating Batch Number while delivery creation from sales document

    Hi Experts,
         I have to write code inside user exit MV50AFZZ which updates batch number during delivery creation. Suppose I have a sales having more than one line items. Each line item have different material numbers, and one material number may have more than 1 batch number. And all these batch numbers have to be updated for their corresponding material numbers. Batch  number corresponds to LIPS-CHARG. So how we can maintain values for this field more than once for a particular material number?

    Hi Pankaj,
    Were you able to update the Batch Number?
    What is the function Module that you used? and where exactly did you code in the logic?
    Thanks,
    RV

  • 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

  • How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE

    Hi guys,
    I posted a question regarding a function module here:
    How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE
    If you have experience about this FM, kindly visit the link and share your wisdom. Thanks.
    Regards,
    Carl

    Hi guys,
    I posted a question regarding a function module here:
    How to update batch (LIPS-CHARG) using FM WS_DELIVERY_UPDATE
    If you have experience about this FM, kindly visit the link and share your wisdom. Thanks.
    Regards,
    Carl

  • Update batch number with B1iSN

    Hi
    is it possible to update Batch Number using B1ISN ?
    i think it's the object 106 . i create the object using the dev. tools. , create a BP using this object , and try to create a xml to see the content of the object .
    When a user validate the Stock Management / Item management / batches / update , the scenario is triggered , but i have a error message :
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.RejectedException: XCE045 IPO-Step not known: /0010000100.inbound/com.sap.b1i.datasync.ipo/P01/P01.ipo/EventConvertor
    Did i miss something ?( i've already created object using the same procedure , and never had this error ) or does it mean that it's not possible to manage batch numbers using B1ISN ?
    thanks

    I try to query the new created batch number to update the batch properties.
    But cannot found in OBTN table.

  • How to release batch number that's allocated in a "closed' sales order

    Hi,
    Does anyone knows how to release batch number that's allocated in a "closed" sales order? I'm using SAP B1 2005B PL42.
    This batch number 'A' was allocated in the sales order. However, when this sales order is copied to multiple delivery orders, one of the delivery order's batch number is changed to another batch number 'B'. The sales order had changed status to "closed" as full quantity is copied to Delivery orders. But from the batch number trans. report, the remaining quantity of batch number A is still "allocated" (I think due to bug in SAP B1) although the sales order is closed.
    Please help. Thanks!
    regards,
    sianghing

    Hi Suda,
    Thanks for reply. But I realize that batch number allocation in sales order is a hard allocation. We cannot use batch number quantity allocated in that closed sales order into another Sales Order or Delivery Order anymore.
    Thanks,

  • How to update check number in general ledger and vendor ledger automatical

    Dear All,
    i need some clarification in check updation in general ledger and Vendor ledger through the  system automatically.
    While making vendor payment system will not update check details in vendor ledger and bank GL code.while doing  bank reconcilation its very difficult to identify check no and amount for that we have updating manually but its time taking. Is there any program or any enahancement for updating check number in general ledger and vendor ledger.
    Kindly suggest me how to update check number . Is there any programm or enahancement for check updation.kindly suggest me.
    Thanks in advance
    Thanks and Regards
    Girish

    HI,
    If I am understanding correctly what you are wanting is to be able to see the check number for the payment document in both FBL1N and FAGLL03.
    Special fields for AP line item reporting can be configured via IMG. Define additional fields for line item display> 
    Not all fields are available, but this one is.  Add this entry, you can also add check encashment date if desired.
    PAYR  table name.
    CHECF Field name
    After these fields are saved, they can be selected in the line item layout on FBL1N.
    You may also need to reset the ALV buffer using program BALVBUFDEL
    Resetting the buffer is only necessary once in each client.
    Hope this helps.
    Alicia

  • How to update revision number in batch attribute at thetime of goodsreceipt

    Hi all i got a requirement to enhance for this standard functionality the user exit is prod order exit_saplcosf_001 & purchase order exit_sapmm07m_003  and the functionality i have to acheive is
    At the time of goods receipt the system should update the batch characteristics ofu201DRevisionu201Cwith the appropriate material revision level. The update should happen for receipt against as purchase order or against a production order. The information that is available with us at the time of goods receipts against purchase/production order will be the order number, material number, Quantity and Batch number. The receiving personnel will input the rev level of the material received (he will get it from the receiving documents received from the vendor) in the popup box provided by this enhancement. This enhancement will check the rev level entered by the receiving personnel with the rev level in the purchase order/ production order in question both match then it will go ahead and do the goods receipt. In case the revision level entered by the user and the one in the order does not match the system will given an error message saying u201C Pl check the material revision level as they do not match u201C. For items with no rev levels the EKPO-REVLV field in the PO will be blank. In case of a production order check the following field in the order header CAUFVD-REVLV to update the batch attribute with the revision level of the material being received in stock. In case CAUFVD-REVLV is empty then it would mean that there is no revision level for this material.
    The pop-up box to enable the user to key in the revision level will be displayed only in case if the purchase order/production order has a revision level in them.
    can u tell how to process to acheive this requirement
    thanks & regards
    naveen
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Oct 21, 2010 10:40 PM

    yes, because the Userfields is missing in the Object.
    maybe you should tell this SAP, looks like they forgot it.
    ok, you can also do it more complicated to stay official - save the information in a usertable.
    regards
    David

  • How to update Serial Number from Work Order to Sales order in MTO flow

    Helo Experts,
    I have a requirement to update automatically the Serial number in Make to Order flow, from the Work order to the sales order and then to delivery.
    In fact the flow is the following, when raising the sales order we don't know the SN, it will create a Work order with stock type E, when work order is released a Serial Number is assigned to the material created. After Goods receipt of WO, We need to have the SN updated in the sales order and then in the delivery.
    I tried with the parameters of Serial number profile, i was not able to update from WO to Sales Order.
    DO you have any idea how this requirement could be fullfiled? is it possible in standard?
    Thanks

    I don't think that it is possible in standard.

  • How to include Batch Number in Inventory Counting and Print Countsheet

    Hi,
    Could someone let us know how to include the batch number from Inventory Counting and include them in the count sheet when printed?
    Thank you!
    Ramon

    Hi Pam......
    Try this and modify as you want......
    SELECT Distinct T3.[DocDate], T0.[ItemCode], T2.[ItemName], T2.[BatchNum], T0.[Quantity],
    T0.[DocEntry], T0.Price, (T0.Price*T0.[Quantity]) As 'Total'
    FROM PDN1 T0  inner join OIBT T2 on T2.ItemCode=T0.ItemCode and T2.BaseEntry=T0.DocEntry
    INNER JOIN OPDN T3 ON T0.DocEntry = T3.DocEntry
    WHERE T2.[BaseType]=20 and T2.[Direction]=0
    Regards,
    Rahul

  • How can get batch number in process order?(T-code: COR1, COR2)

    Please tell me step by step process it will be better to me the solve my issue.
    When End-user uses alread existed batch number,
    Pop-up Message,
    "Your batch number is already exist.
    Are you creating new batch number?"
    If the answer is "No",
    System still uses that batch number.
    And User-Exits, or bodies don't exist this time.
    How can I get this batch number When saving in process order?
    I uses User-Exits "SAPLV1ZE" in Batch Number Check,
    "PPCO0007" and "PPCO0001" in saving process order.
    I know "PPCO0001" has all information about process order,
    but I can't get batch number to "PPCO0007" From "PPCO0001" by using Memory ID.
    Cause PPCO0007 happens before PPCO0001.
    (ref. PPCO0007 can stop saving in process order.)
    I want to know how can I get batch number when pop-up message's answer is "No".
    I have to send this batch number  to PPCO0007 by using Memory ID.
    Please, help me.
    Edited by: Jamie White 99 on Mar 15, 2010 11:00 AM

    Dear,
    Could you please clear your requirement in brief?
    You don't want to use the existing batch number or want to assign external batch number or want unique batch number?
    Use SAPLV1ZE and EXIT_SAPLV01Z_003 where you can replace the proposed number range with external interval defined by yourself.Also using EXIT_SAPLV01Z_004 you can define your own checking rule.
    Further information can be obtained from the documentation on the enhancements
    Also refer this link,
    http://help.sap.com/saphelp_40b/helpdata/ru/dc/1d4b6e5733d1118b3f0060b03ca329/content.htm
    Re: External batch assignment( Manual)
    Regards,
    R.Brahmankar

  • How to create Batch number manually

    Hi,
    We have already done 105 without batch number. But we need to create the batch number for the quantity which is already inwarded in 105.
    Please let me know  how this can be done.
    regards
    Suresh

    if your material is batch managed, then SAP forces you to enter a batch number (or assign an internal batch number) while doing the 105 movement.
    As this was not the case for you, I assume you missed to maintain the batch management indicator in material master.
    In this case you have to make current and previous period stock zero, then you can set the batch mangement indicator. Maybe you have to delete open documents too (SAP will tell you this in an error log when you try to set the indicator)

  • How to Change batch number in inbound?

    Hi, i have an issue.
    In our STO process, because supplying plant is applied batch management, when create Oubound Delivery, we enter a batch number, example Batch A.
    After post GI, the Inbound will be created automatically. And auto input the batch A in that IBD. That field isn't possible to be changed.
    The user want to changed it to Batch B.
    The question here is :
    Why batch A is input automatically to IBD?
    How to change Batch A to another in IBD?
    Edited by: Luankuz123 on Oct 20, 2011 7:51 AM

    Hi,
    In your case the stock is in stock in transit. You cannot change the batch number from A to B. It gives effect as A batch as negative and B batch as positive. Better do transfer posting from batch to batch in 309 after STO. Thanking you.

  • BAPI_INB_DELIVERY_CHANGE -  Update Batch Number

    Hi
    I have used  'BAPI_INB_DELIVERY_CHANGE' to update the Batch Number for a Inbound delivery.
    I have passed values for the below attributes.
             lw_item-deliv_numb  
             lw_item-deliv_item  
             lw_item-material   
             lw_item-batch       .
             lw_item-fact_unit_nom
             lw_item-fact_unit_denom
             lw_item-hieraritem 
             lw_item-usehieritm
    But, the Batch number is not updated.
    Kindly advice.

    Hi Akash
    check this
    BAPI_INB_DELIVERY_CHANGE
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_inb_delivery_change
    Thanks and Regards
    S.Janagar

  • How to update BP number of an Org. unit in Org. Model?

    Hi,
    In Org. Model we have organization units which has BP. They are list together in couple. Can I update BP number of an org. unit in Org. Model? I want change it to another BP. Is that possible?
    Best regards,
    Long

    Hi Long,
    For each organizational unit created in the organizational model a business partner is generated automatically. This number range that will be used for creating a org unit can be defined.
    If you are looking forward for creating a Org. unit with a specific number range, please following the below mentioned steps:
    Step 1: Defining Number Range for Org Business Partners
    Goto transaction BUCF or SAP CRM IMG Menu: SPRO-> Cross-Application Components ->SAP Business Partner -> Business Partner -> Basic Settings -> Number Ranges and Groupings -> Define Number Ranges
    Choose Change Intervals
    Choose Insert Intervals
    Assign an interval you need and provide values for the field No., From number, To number, and flag 'X' in EXT. if external number range is required.
    save your entries.
    Step 2: Defining Groupings for Org Business Partners
    Goto SAP CRM IMG Menu: SPRO ->Cross-Application Components -> SAP Business Partner -> Business Partner ->Basic Settings -> Number Ranges and Groupings -> Define Groupings and Assign Number Ranges
    Choose New Entries
    Enter Correspoding values in field
    Grouping: for ex. Z4
    Short Name: for ex Org BP
    Description: Give some description
    Number Range: Provide the number range defined in the previous step
    save your entries
    Step 3: Set up integration
    Activate the integration of organizational units and business partners and assign the number range defined in the preceding sections.
    Go to IMG: SPRO ->Customer Relationship Management -> Master Data -> Business Partner ->Integration Business Partner – Organization Management -> Set Up Integration with Organizational Management
    Enter the following values for the existing combination of Group and Sem.abbr.:
    HRALX-HRAC - X
    HRALX-OBPON - ON
    HRALX-ONUMB - 2
    HRALX-OSUBG - Enter your Number Range defined in the previous steps here.
    save your entries.
    Step 4: Execute Report for Changeover Classification
    Execute the report CRM_MKTBP_ZCACL_UPDATE_30 in transaction SE 38.
    I hope this will help you
    regards
    Srikantan

Maybe you are looking for