Stock Transfer for Items manged by Batches

Hi All,
I am doing a StockTransfer from one warehouse to another using the StockTransfer object, but when an item is a batch item then it doesn’t work, it does not do the StockTransfer nor does it throws error. It just gives the message as ("Failed to add a Inventory Transfer") which is the message I have defined as below.
Here is the code for StockTransfer, where "A00008" item code is an item manged by Batches.
Dim InventoryTransfer As SAPbobsCOM.StockTransfer
Try
InventoryTransfer = MyCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer)
InventoryTransfer.CardCode = "C0001"
InventoryTransfer.DocDate = Now
InventoryTransfer.FromWarehouse = "01"
Call InventoryTransfer.Lines.SetCurrentLine(0)
InventoryTransfer.Lines.ItemCode = "A00008"
InventoryTransfer.Lines.WarehouseCode = "W5"
InventoryTransfer.Lines.Quantity = "2"
Call InventoryTransfer.Lines.Add()
      If (0 <> InventoryTransfer.Add()) Then
My_Application.MessageBox("Failed to add a Inventory Transfer")
      Else
My_Application.MessageBox("Succeeded to add Inventory Transfer")
      End If
Catch ex As Exception
My_Application.MessageBox(ex.Message)
End Try
If an item is managed by Batches then how do I do StockTransfer through code. Can any one provide me the code to do the same.
Thanks in Advance !!!
Regards,
Murtaza

Hi Murtaza,
Sorry for the late reply - maybe you found the solution by yourself in the meantime, but let me answer here for other developers...
Please note that "empty" objects are coming with 1 line ("for free") - i.e. you must not call
Call InventoryTransfer.Lines.Add()
This will create a 2nd empty line - and that caused trouble (i.e. errors in the .Add()) in the past!
Furthermore you have to spacify the batch numbers in the
InventoryTransfer.Lines.BatchNumbers
sub-object!
HTH,
Frank

Similar Messages

  • Intercompany Stock transfer for Returns

    Hi,
    Can any one help me in giving solutions for Intercompany stock transfer for Returns. I need the Steps involved the above process.
    Regards,
    Kannan

    Hi Laura,
    If you are processing with delivery, you shd check the delivery indicator in MBRL Transaction.
    In your scenario if Plant A has shipped to plant B and Plant B return to plant A on a return PO. Plant A raises the crdeit memo on plant B.
    Typically returns are done with as you create a  return purchase order with Return indicator create an outbound delivery  and do 161 movement and subsequent PGR on the outbound delivery.
    Thanks
    Sudhakar

  • Stock Transfer for Excisable Materials Using Movement Type 301

    Hi,
    We are having a Plant 1002 as excisable Materials.
    During GR we following the process like GR (Part -I), Capture Invoice, Post Invoice.
    Can we transfer the Material from Plant 1002 to other Plant, say 1001, using Movement Type 301?
    Or we need to follow some other router for Stock Transfer for the Excisable Materials?
    I was told by the ex-consultant that we would be using Mov Type 301 for all Stock Transfers, but I have a doubt, please guide.*
    Regards,

    Hi PK,
    Here in Brazil we work with excisable material and when we have to transfer it plant to plant, we have to use IVA that performs tax posts on accounting document. Also, we have to create Nota Fiscal (BrazillianLegal Document).
    I think you have to talk to your legal/accounting area in order to make sure which procedure you will have to use.
    If you need tax posting on accounting document, then you will not be able to use 301 movement type.
    We use MM/SD Plant to Plant transfer (movement type 861 / 862)
    Depending on your Legal/accounting area feed back, you could use this scenario or just MM plant to plant transfer (movement type 303/305).
    If they are ok with no tax postings on accounting document, then 301 movement type should be used.
    Try to make a test, show then how it works, then you could get ok from then
    I hope it helps you.
    Best Regards,
    Natan

  • Stock Transfer for Assets Item

    Hi MM guru's
    what is the procedure for stock transfer in SAP  for assets (Plant to Plant)
    Thanks in advance

    Hi there,
    If the stock you can see in MMBE you can go for plant to plant stock transfer using MB1B movement type 301
    if you cant see the stock that means you have received the material from PO having account assignment category A which says it is an asset.
    Now for that you have to go for the asset to asset (Asset code to Asset code ) create an asset code in the reciving plant and transfer through FI module path. Just consult your FI consultant for the same.
    Rewards if helpfull
    Regards
    Sujoy

  • Stock transfer excisable items

    Hi All,
    My client is having their Head Office at Kolkata and manufacturing unit at Balasore. Items which are produced there at Balasore, Orissa are transferred to Kolkata warehouse with an A/P Tax *** Excise invoice, where excise is 10 +2 +1 as usual. Now this items are added to Kolkata warehouse stock and then sold from Kolkata. (Some Items are directly sold from Balasore also). How to handle this in SBO ? Currently, we have a warehouse (Kolkata (excisable) where opening stocks are given for items. But items which will come from Balasore are to be included there before making any A/R invoices.
    Regards,
    Rupa Sarkar

    Hi,
    When items are transferred to Kolkata warehouse, Excise amount is actually paid at Balasore only at the gate and the items are coming with an document for the same, my client, in the previous legacy system, enters that unit price item wise (but this is not paid as it is inter company stock transfer). Now when the items are added to the Kolkata warehouse, those are sold WITHOUT any Excise duty (only VAT @ 4% is added), and also the selling price gets changed. Items are directly sold from Balasore as well with C.S.T / O.S.T with different price also.
    As of now, I have thought of this partially, Please correct and add.
    1. Two warehouses are there. Kolkata (excisable no. 03), Balasore (excisable no. 10)
    2. Created one BP as <Client name>(kolkata) as customer with a new group defined "Inter company Transfers"
    3. Inventory->Inventory transactions->stock transfars
    4. Selecting step2 stated BP as customer.
    5. Item selected (excisable), in "Info Price" field the unit price is given.
    6. Warehouse selected is 10 (step1).
    7. Document added.
    8. outgoing excise invoice.
    9. incoming excise invoice.
    What more steps are to be followed? (like the what sud be the control A/C in the BP, price list, etc etc)
    Regards,
    Rupa Sarkar

  • Stock transfer for blocked materials

    Hi,
    I have blocked the material  for procurement in MMR, in purchasing view in "Plant-sp.matl status" field...
    Now when ever i am creating PR,PO i am getting error message as "Status "Blocked for procment/whse" of material XXXXX does not allow external procurement"...Till Here it is correct.
    Now my requirement is, i do not want to procure this material, but i want to issue and do stock transfers for the remaining materials which are lying in my premises.
    When i tried doing stock transfer i got error message that "Material XXXXX has status Blocked for procment/whse in plant XXXX
    Message no. M7092..
    I tried to change the message as warning in OMCQ,There i didnot found this message, so i created it and made it warning.
    Now when i tried Stock transfer again i am getting same error.
    Pl help.
    Utsav

    hi
    goto OMCQ and click n new entry and then add this message as folows
    version   00
    Application Area   m7
    Message number   092
    and make this as WARning
    or goto OMS4 and here for ur block indicator make the Purchasing msg. as A  i.e. warning
    regards
    kunal
    Edited by: SAP Learner on Jul 16, 2009 1:29 PM

  • Two step 303, 305 movement stock transfer for split valuatin material

    Hi expert,
    we are using split valuation for material in IS -Retail for both warehouse  as well as store. when i am transfer material from store with movement type 303, message is showing'Use one-step procedure for transfer posting to art. subj. to valuation'.
    we wave to use this method in case of split vauation material.
    how we can do.
    Regards,
    Santosh

    Hi Santosh,
    Try to transfer material using TCode MB1B with Mvt type "301".
    Movement Type "301" is used for stock transfer - One step process.
    So when you post transfer using Mvt. Type 301, the receiving store will not require to do GRN for that material.
    Hope this helps you. Let me know in case you need some more info.
    Regards,
    Nikita

  • Cc stock transfer free item can't billing

    Dear Gurus,
    We are using the cross-company stock transfer.However,in the cc
    PO,we have some free items.After doing the picking,we bill this cc
    delivery notes.However,the free item can't display.
    The item category in Deli. note of this free item is NLC.We want to bill this
    free item just like TANN item category in sales order.Can SAP implement this
    function and how can i do?Thanks advance!

    Hi,
    With t-code VTFL to define a copy control from delivery document to billing document, assign the free item category TANN into the list of copy item, then you can find them in the billing document.
    Good luck
    Tao

  • Cc stock transfer free item no billing

    Dear Gurus,
    We are using the cross-company stock transfer.However,in the cc
    PO,we have some free items.After doing the picking,we bill this cc
    delivery notes.However,the free item can't display.We want to bill this
    free item like TANN item category in sales order.Can SAP implement this
    function and how can i do?Thanks advance!

    Hi,
    With t-code VTFL to define a copy control from delivery document to billing document, assign the free item category TANN into the list of copy item, then you can find them in the billing document.
    Good luck
    Tao

  • Allow negative quantity for items manage by batch

    Hi All,
    I am having this issue where all items are required to be managed by batch and yet stock is allow to go negative (with the Block negative quantity unchecked) due to customer requirement.
    E.g. there are no batch to select when the item hits negative quantity.
    Any idea if this is possible in SAP B1 and possible workaround.
    Thank you in advance.
    Lip Sin

    Hi Lip Sin,
    You need to discuss and ask the same to your customer.
    Your customer has to make choice between one of this two, because when there is possibility of negative stock, just imagine how the software can keep the integrity with batch nos. ?
    You need to clearly ask your customer to choose any of this and still the customer insist, you can think to handle it using UDF for batch no, but then your customer will loose the control by batch.
    BR
    Samir Gandhi

  • Stock Values for previous period on batch number

    Need to show report which shows stock value and levels on a certain period (previous) by batch numbers.
    Report MMBE shows current stock levels per batch.
    Report MB5L shows stock value on a certain period (previous) but with no batch information
    Is there any standard reports which you can see all stock values and levels for the previous period on batch?
    Thanks

    Hi,
    Good morning and greetings,
    Please go through the following link
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/2839124f7811d18a150000e816ae6e/frameset.htm
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Stock allocation for sales orders with batch job

    Hi Friends
    We have  a batch job to allocate stock for sales orders which runs every week , currently this batch job is meant for plant 1000 with availability check procedure Z1 .
    I need to incorporate for same batch job plant 1000 with availability check procedure Z2
    Just I need to know that there is any  potential impact and it  causes any problem ?
    Thanks In Advance
    Rusheek

    Hi,
    Check what difference is between procedure Z1 and procedure Z2.  As we cant see this, you will  have to analyze what Z1 was doing and what Z2 is expected to do.  Broadly speaking this is preety subjective to your project.
    You analyze and try to find out the impacts.  If needed take help of abaper.
    Rgds,
    SB

  • Intercompany Stock transfer for KMAT configurable material

    Hi All
    I have a scenario in which we do intercompany sale of machines which is KMAT - configurable.
    company A & B ,
    company B's customer raises a order...
    this raises a order in Company A , and producion in A takes place , and material is created as sales order stock
    This is then delivered and invoiced to PLANT_B which is a customer (but linked to plant B of company B)
    Now I create S.O., MD02 , C040 , C015 and then MIGO to transfer to sales order stock.
    I am assuming that the customer in inv. is PLANT_B which is customer linked to plant , so this should transfer the stock to plant B. and then we can go ahead and deliver and inv to end customer OF COMP B.
    Now how do I transfer this stock from sales order in COMPANY A to Sales order in COMP B
    Remember since this is a KMAT ocnfigurable material , and not a normal material.
    So the cycle is
    COMP B S.O -> COMPA S.O -> COMPA - PROD ORDER - > DELIVER COMPA -> INV COMPA -> DELIVER COMPB ->INV COMPB
    Please help.

    Hi,
    First try to transfer the stock to unrestricted stocj of company B with the help of STO process. Once it goes to unrestricted stock of company B then move this stock to sales order stock of company B using movement type.
    << Moderator message - Point begging removed >>
    Regards,
    Kishore
    Edited by: Rob Burbank on Dec 8, 2010 4:11 PM

  • Stock determination for item category L

    Hi
    We have created the subcon PO with item category L while doing Rejection through QA11 it provides the error as Error during posting
    Screen shots attached

    Thanks for all the suggestion. The note you had given is for the MIGO, while  I m facing the error in QA11. Pls suggest if there is any config or other things has required to do.
    One more thing I want to added that component has already filled with valuation type.
    pls let me konw if you required any other input from my side.
    Thx N Warm Regds
    VB

  • Intercompany stock transfer - Item not relevant for billing

    Hi Experts,
    please can you help me in Intercompany stock transfer billing. I set up all customizing for Intercompany stock transfer, checking also with all OSS notes available.
    When I try to invoice Stock Transfer Delivery (created from Stock Transfer Purchase Order) with VF01, system issues the message "F044 The item is not relevant for billing".
    As per standard setting, billing relevance on Stock Transfer Delivery item category is "D".
    Thank you very much
    Kind Regards
    Andrea

    Check your copying control setting for Delv to Billing in VTFL (LF - IV)
    Header:
    Copying requirements - 014 - Hdr dlv.rel.IC bill.
    Item:
    Copying requirements - 015 - Itm dlv.rel.IC bill.
    Data VBRK/VBRP -  001- Inv.split (sample)
    Also, check for your I Cat that has billing indicator is active.
    Thanks & Regards
    JP

Maybe you are looking for

  • Problem in chage FB02 item text

    Hi Freinds.    I got one assignment to change the Item text in FB02(Change Document). I wrote one program to change the item text using FM FI_ITEMS_MASS_CHANGE. It's working fine. But as soon it changes the next line item's text, the previous is also

  • How can I Left Align text in the Marker Arrangement tabs?

    It would make it easier to read the heading text of the Arrangement Marker tabs if they were Left Aligned when the project is minimised. Is there any way of setting this up or is it a default?

  • Quick question on BOE deployment for SAP BW with 3 system landscape

    Client has SAP BW environment with 3 system landscape: Dev, QA, Production Should BOE be installed seperately on 3 different machines for each of them? Or is there any best practice for this? Thanks, Henry

  • Remote exporting of a database interface

    I have an interface defining a database layer (all the following code has of course been simplified) public interface Database {   public Collection select() throws Exception; }and an implementation class public class DatabaseImpl implements Database

  • Moving picture dont import...

    Hi, I use a Cannon Digital Ixuss 55 and when I take some movie shots with the camera it captures them fine but when I try to import them , iPhoto tells me there is nothing to import . I would love it if there is something simple to sort this out .or