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

Similar Messages

  • 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 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,

  • Include batch/serial numbers with Count Sheets

    When performing a cycle count for items that are managed by batch or serial numbers, it is necessary to record the count by batch or serial number, since discrepancies must be entered with this information.  There should be an option or alternative PLD layout that would include a list of batches or serial numbers with quantity > 0 in the warehouse.  Users could then enter the count for each batch, or check off the serial numbers that are counted.

    Hi Marcia,
    I just made a query to pull that data.  I had the item and item group table in there because we were filtering by item group.
    SELECT
      T0.[ItemCode]
      ,T0.[ItemName]
      ,T0.[BatchNum]
      ,T2.[ItmsGrpNam]
      ,T0.[Quantity]
      ,NULL as 'Counted'
    FROM
      OIBT T0 
      INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
      INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE
      T0.[Quantity] > '0'
    It will give you the list of all batches with quantities to count.  Then you can make a PLD query layout and print that.  Problem is you have to aggregate the items into a total by item code anyways for doing the counting, but then you need to have the batch data when posting.
    Hope that helps,
    Mike

  • How to get total number of result count for particular key on cluster

    Hi-
    My application requirement is client side require only limited number of data for 'Search Key' form total records found in cluster. Also i need 'total number of result count' for that key present on the custer.
    To get subset of record i'm using IndexAwarefilter and returning only limited set each individual node. though i get total number of records present on the individual node, it is not possible to return this count to client form IndexAwarefilter (filter return only Binary set).
    Is there anyway i can get this number (total result size) on client side without returning whole chunk of data?
    Thanks in advance.
    Prashant

    user11100190 wrote:
    Hi,
    Thanks for suggesting a soultion, it works well.
    But apart from the count (cardinality), the client also expects the actual results. In this case, it seems that the filter will be executed twice (once for counting, then once again for generating actual resultset)
    Actually, we need to perform the paging. In order to achieve paging in efficient manner we need that filter returns only the PAGESIZE records and it also returns the total 'count' that meets the criteria.
    If you want to do paging, you can use the LimitFilter class.
    If you want to have paging AND total number of results, then at the moment you have to use two passes if you want to use out-of-the-box features because LimitFilter does not return the total number of results (which by the way may change between two page retrieval).
    What we currently do is, the filter puts the total count in a static variable and but returns only the first N records. The aggregator then clubs these info into a single list and returns to the client. (The List returned by aggregator contains a special entry representing the count).
    This is not really a good idea because if you have more than one user doing this operation then you will have problems storing more than one values in a single static variable and you used a cache service with a thread-pool (thread-count set to larger than one).
    We assume that the aggregator will execute immediately after the filter on the same node, this way aggregator will always read the count set by the filter.
    You can't assume this if you have multiple client threads doing the same kind of filtering operation and you have a thread-pool configured for the cache service.
    Please tell us if our approach will always work, and whether it will be efficient as compared to using Count class which requires executing filter twice.
    No it won't if you used a thread-pool. Also, it might happen that Coherence will execute the filtering and the aggregation from the same client thread multiple times on the same node if some partitions were newly moved to the node which already executed the filtering+aggregation once. I don't know anything which would even prevent this being executed on a separate thread concurrently.
    The following solution may be working, but I can't fully recommend it as it may leak memory depending on how exactly the filtering and aggregation is implemented (if it is possible that a filtering pass is done but the corresponding aggregation is not executed on the node because of some partitions moved away).
    At sending the cache.aggregate(Filter, EntryAggregator) call you should specify a unique key for each such filtering operation to both the filter and the aggregator.
    On the storage node you should have a static HashMap.
    The filter should do the following two steps while being synchronized on the HashMap.
    1. Ensure that a ConcurrentLinkedQueue object exists in a HashMap keyed by that unique key, and
    2. Enqueue the total number count you want to pass to the aggregator into that queue.
    The parallel aggregator should do the following two steps while being synchronized on the HashMap.
    1. Dequeue a single element from the queue, and return it as a partial total count.
    2. If the queue is now empty, then remove it from the HashMap.
    The parallel aggregator should return the popped number as a partial total count as part of the partial result.
    The client side of the parallel aware aggregator should sum the total counts in the partial result.
    Since the enqueueing and dequeueing may be interleaved from multiple threads, it may be possible that the partial total count returned in a result does not correspond to the data in the partial result, so you should not base anything on that assumption.
    Once again, that approach may leak memory based on how Coherence is internally implemented, so I can't recommend this approach but it may work.
    Another thought is that since returning entire cached values from an aggregation is more expensive than filtering (you have to deserialize and reserialize objects), you may still be better off by running a separate count and filter pass from the client, since for that you may not need to deserialize entries at all, so the cost on the server may be lower.
    Best regards,
    Robert

  • [Win VC++ 6.0 ]How to get the number of files count in a folder using VC++ 6.0?

    Hi all,
    Can any one tell how to get the number of files(.EPS) count inside a folder when the folder path is specified in VC++ 6.0?
    Thanks in Advance.
    Regards
    myriaz

    I'm a little confused by the question, but it sounds like you're asking how to count the number of files with a particular extension in a given directory? That's not really an AI SDK question, but it's a fairly easy one to find if you google it. If you're trying to use Illustrator to do it, AI doesn't have a general purpose file API. It has a few functions to do some things that Illustrator needs, but I don't think enumerating directories is one of them.

  • 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.

  • 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!!

  • How we do mass entery of  inventory count insteead of MI04

    Hi experts,
    We have to use MI04 for inventory count,however we have a lot of materials.İs there any way of  mass enrty method OF  of inventroy count instead of using MI04

    I understand that LSMW can help here very quickly.
    My concern was more about how did you get that all to Excel.
    When you create counting documents with MI31 or MI01, then there is no Excel output.
    So you must have done something special to get it to Excel, I am just curious.
    The counting team can write the count result on SAP generate paper or on a Excel printout, no difference for the counters.
    but then the handwritten count has to  be entered into electronical form. And where is here  the time benefit? to  enter a count into Excel rather than enter it directly to SAP.
    you have even a step more with Excel, because you have to enter it to Excel first, and then you have the LSMW execution in addition to that.
    so the big questions are: how does the data get into Excel? Was it really counted physically or just a download of book inventory that was  uoloaded as physical inventory then?

  • How to include batch details to the template of a GRPO in Crystal Reports?

    Hello Experts,
    I have created my GRPO template for items in Crystal Reports. But I also want the batch number and attributes to show on this document. Is that Possible?
    Looking forward to your comnents,

    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 to Define Batch Number

    Hi,
    Regarding the batch management,I have a question ..can we design a special batch number when we use auto generate batch number?Do you have any suggestion for it?thanks ..
    for example:
    if the PO use work center A1,it will get a batch number 201110A1+00001
    if the PO use work center A2,it will get a batch number 201110A2+00001

    Please refer following link to get user exit of MIGO:
    [Re: User Exit for MIGO]
    [Re: User Exit for Migo?]
    [User Exit in MIGO or MB1A for reason for movement]
    [User exit at  MIGO transaction]

  • Inventory count and finacial entries

    Hi SAP Gurus
    After taking Inventory count, which accounts in FI gets affected, and how to see those entries?
    Regards

    Display physical inventory document using MI03, enter document number. click environment --> material document --> environment --> accounting document, then choose accounting document. Here you can see the value and the accounting document.

  • How to include resource files in the application and how to retrieve ?

    Hi,
    I want to include resource file in my application jar file and retrieve data from the file ......Is there any way for it? How i create these resources files and how i include them?.........Which classes shall i use for retrieving the data from these files?.........Any kind of help would be appreciated........Iam using NetBeans IDE 6.1,CLDC1.0 and MIDP 2.0........Thanx,in advance..........

    How i create these resources files and how i include them?How you create the files will depend on what resources you need to include.
    [How to ask questions the smart way|http://catb.org/~esr/faqs/smart-questions.html]
    db

  • 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

Maybe you are looking for