MTL_ONHAND_QUANTITIES TABLE에서 NEGATIVE BALANCES 확인.

제품 : MFG_INV
작성날짜 : 2004-05-25
MTL_ONHAND_QUANTITIES TABLE에서 NEGATIVE BALANCES 확인.
===================================================
PURPOSE
Nagative balances 가 허용되지 않는 Organization에서의
Negative Balances 인 Item의 확인.
Explanation
1. Negatgive 수량의 합에 대한 MOHQ view를 생성.
CREATE VIEW MOHQ_SUM_NEG AS
SELECT ORGANIZATION_ID ORG,
INVENTORY_ITEM_ID ITEM,
SUBINVENTORY_CODE SUB,
REVISION REV,
LOCATOR_ID LOC,
LOT_NUMBER LOT,
SUM(TRANSACTION_QUANTITY) TQTYSUM
FROM MTL_ONHAND_QUANTITIES
GROUP BY ORGANIZATION_ID, INVENTORY_ITEM_ID, SUBINVENTORY_CODE,
REVISION, LOCATOR_ID, LOT_NUMBER
HAVING SUM(TRANSACTION_QUANTITY) < 0;
2. 아래의 스크립트를 이용하여 정보를 확인한다.
SELECT O.ORGANIZATION_CODE ORG,
SUBSTR(S.SEGMENT1,1,15) ITEM,
M.SUB ,
M.REV,
M.LOC,
TQTYSUM,
SUBSTR(M.LOT,1,10) LOTNO
FROM MOHQ_SUM_NEG M,
ORG_ORGANIZATION_DEFINITIONS O,
MTL_SYSTEM_ITEMS_B S
WHERE M.ORG = O.ORGANIZATION_ID
AND M.ORG = S.ORGANIZATION_ID
AND M.ITEM = S.INVENTORY_ITEM_ID;
Example
N/A
Reference Documents
Note:237954.1 - How to Check for Negative Balances in
MTL_ONHAND_QUANTITIES

Hi Pranit
Thanks for your reply.
You mean to say that i should run misc receipt under miscellaneous receipt?? if yes then what sub-inventory should I pass??

Similar Messages

  • Table mtl_material_transactions_temp  with Negative balances not allowed

    Hi,
    I have uploaded few wrong cycle count adjustments that got duplicated and now
    they are stuck in
    table mtl_material_transactions_temp  with error
    Negative balances not allowed
    Is there a way to fix them as they are showing  in Un-processed material when
    I try to close the period.
    I need to close they period.
    Re-submitting them also dont works and it get the same error.
    Is there a way to get rid of these record?
    thanks for help.
    7Z

    hi,
    If this message you are getting Negative balances not allowed, you need to increase the onhand quantity in the subinventory and reprocess or better you can delete the record and try it again with the corrections.
    Regards,
    Syed

  • Negative balance in inventory account

    Company is setup to not allow negative inventory, but one of my inventory accounts shows a negative balance. Ideas on how this could happen?

    Hi Cindy,
    Do you read the negative amount from G/L report or from Inventory Audit report? If you manage the item cost per company, not per warehouse, there is a possibility that your inventory amount for certain warehouse will be minus. But, if you manage the item cost per warehouse, shouldn't possible your inventory amount is minus.
    Next thing to do is, you should check using query to JDT1 table, and check whether exist a journal entry transaction which post directly to your inventory account. If exist, no wonder if your inventory account is minus, since the journal entry transaction won't update the item cost for particular item. You should consider to amend your sp notification transaction to block such thing happened in the future.
    If you need any correction regarding item cost, you should use inventory revaluation module instead of creating a journal entry directly to inventory account. Your G/L and your inventory ledger won't tied up. Hope this can help.
    Best Regards,
    Hendry Wijaya

  • Negative balance in Cash Account

    Is there any way to view only Negative balances in Cash Account???

    Hi,
    Check Account balance window of the the Cash Account G\L and the column Cumulative Balance. When the cumulative balance is negative, the Cash Account have gone below zero.
    If you want only those specific days, then you have to query using the SQL tables.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • A negative balance in the account Apple ID.

    A negative balance in the account Apple ID.
    I want to release the apple id us to Thailand.

    Hi Cindy,
    Do you read the negative amount from G/L report or from Inventory Audit report? If you manage the item cost per company, not per warehouse, there is a possibility that your inventory amount for certain warehouse will be minus. But, if you manage the item cost per warehouse, shouldn't possible your inventory amount is minus.
    Next thing to do is, you should check using query to JDT1 table, and check whether exist a journal entry transaction which post directly to your inventory account. If exist, no wonder if your inventory account is minus, since the journal entry transaction won't update the item cost for particular item. You should consider to amend your sp notification transaction to block such thing happened in the future.
    If you need any correction regarding item cost, you should use inventory revaluation module instead of creating a journal entry directly to inventory account. Your G/L and your inventory ledger won't tied up. Hope this can help.
    Best Regards,
    Hendry Wijaya

  • How to get the account numbers which maintains negative balance for consecutive 5 days

    Here is what I am trying to do 
    I am trying to get the accounts which has negative balance consecutively for five days
    Here in this a/c 1 and 5 has consecutive negative balance
     how to pull these accounts using sql query. 
    create table #p(cal date, ac# int, bal int)
    insert into #p values  ( GETDATE(), 1, -1),
                           ( GETDATE(), 2, 1),
                           ( GETDATE(), 3, 1),
                           ( GETDATE(), 4, -2),
                           ( GETDATE(), 5, -6),
                           ( GETDATE()-1, 1, -1),
                           ( GETDATE()-1, 2, 1),
                           ( GETDATE()-1, 3, 1),
                           ( GETDATE()-1, 4, 2),
                            ( GETDATE()-1, 5, -7),
                            ( GETDATE()-2, 1, -2),
                           ( GETDATE()-2, 2, -1),
                           ( GETDATE()-2, 3, -1),
                           ( GETDATE()-2, 4, 2),
                           ( GETDATE()-2, 5, -6),
                           ( GETDATE()-3, 1, -2),
                           ( GETDATE()-3, 2, -1),
                           ( GETDATE()-3, 3, -1),
                           ( GETDATE()-3, 4, 2),
                           ( GETDATE()-3, 5, -2),
                           ( GETDATE()-4, 1, -4),
                           ( GETDATE()-4, 2, 1),
                           ( GETDATE()-4, 3, 1),
                           ( GETDATE()-4, 4, -2),
                           ( GETDATE()-4, 5, -2),
                           ( GETDATE()-5, 1, -4),
                           ( GETDATE()-5, 2, 1),
                           ( GETDATE()-5, 3, 1),
                           ( GETDATE()-5, 4, 2),                       
                           ( GETDATE()-5, 5, -1)
                         --  drop table #p

    @ Jing
    Again not sure if it is ok to comment on other people's answers, I hope you don't take it the wrong way, but your query will not account for CONSECUTIVE days. E.g. if the acc balance goes back to a positive value, day count must be reset.
    Now I understand why people answered this so much faster than me LOL.
    Edit: Besides, the requeriment for the acc being returned is that its value was negative for 5 days (120 hours). When a given account balance first switches to a negative value, it has 0 hours in that state. It all add a day to its "negative balance consecutive
    day count" property the next time its value is checked (cal + 1). With that said, if your query worked, it would be cnt > 6 not cnt > 5.
    Thanks for pointing the issue. I have improved my query  to address it.
     I try to come up with something to my understanding to the questions. It may not interpret right  from the question itself for various reasons.  I still consider it is a great learning experience.   Thank you for your comments.
    create table #p(cal date, ac# int, bal int)
    insert into #p values ( GETDATE(), 1, -1),
    ( GETDATE(), 2, 1),
    ( GETDATE(), 3, 1),
    ( GETDATE(), 4, -2),
    ( GETDATE(), 5, -6),
    ( GETDATE()-1, 1, -1),
    ( GETDATE()-1, 2, 1),
    ( GETDATE()-1, 3, 1),
    ( GETDATE()-1, 4, 2),
    ( GETDATE()-1, 5, -7),
    ( GETDATE()-2, 1, -2),
    ( GETDATE()-2, 2, -1),
    ( GETDATE()-2, 3, -1),
    ( GETDATE()-2, 4, 2),
    ( GETDATE()-2, 5, -6),
    ( GETDATE()-3, 1, -2),
    ( GETDATE()-3, 2, -1),
    ( GETDATE()-3, 3, -1),
    ( GETDATE()-3, 4, 2),
    ( GETDATE()-3, 5, -2),
    ( GETDATE()-4, 1, -4),
    ( GETDATE()-4, 2, 1),
    ( GETDATE()-4, 3, 1),
    ( GETDATE()-4, 4, -2),
    ( GETDATE()-4, 5, -2),
    ( GETDATE()-5, 1, -4),
    ( GETDATE()-5, 2, 1),
    ( GETDATE()-5, 3, 1),
    ( GETDATE()-5, 4, 2),
    ( GETDATE()-5, 5, -1),
    ( GETDATE()-6, 5, -1)
    --update #p
    -- set bal=-1*bal
    -- where cal='2014-09-22' and [ac#]=5
    ;with mycte as ( Select *
    ,row_number() Over(Order by [ac#], cal) - row_number() Over(Partition by [ac#], sign(bal) Order by [ac#], cal) rnDelta
    from #p)
    ,mycte1 as (
    select * ,
    sum(Case when bal< 0 Then 1 Else 0 End) Over(Partition by [ac#], rnDelta Order by [ac#],cal ) cnt
    from mycte
    SELECT distinct [ac#] from mycte1
    Where cnt>=5
    drop table #p

  • Negative Balance in Petty Cash General Ledger

    Dear Experts,
    There is cash journal (USD-Currency), Posting are there from 2008 onwards and as of now the balance it is showing local currency (PKR) in Negative balance and below is the example of same.
    Our user send us like :    As per trial balance 1110A, Cash in hand GL 11100064 showing negative
    balance amounting Rs. 65,034.34/- where as there is positive balance USD
    2,296/- in subledger of petty cash. i believe this might be Forex
    revaluation impact G.L is 11315000 (Bank Foreign Currency Revaluation)
    How could we link relevant entries to kncok off so that we could get
    positive balance in PKR Currency. which is physically available in
    Foreign currency petty cash.
    Can any body please explain me how to rectify the negative balance to rectify in the FBL3N.
    Thanks,
    Siva Reddy

    Hi,
    Check Account balance window of the the Cash Account G\L and the column Cumulative Balance. When the cumulative balance is negative, the Cash Account have gone below zero.
    If you want only those specific days, then you have to query using the SQL tables.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Table of balance stock split by status stock on posting date

    Could you please suggest me for  the table of balance stock split by status stock on posting date?
    MCHB can not support my requirement because it  has current stocks.

    I give you for exsample data.
    Stock on 01.03.2011  (This is a selection date)
    Material code   ||  Batch  ||   Base unit  ||  Unrestricted use stock   || Stock in quality inspection  ||  Blocked stock
    A0001              || 09K1    ||    EA           ||     10                                ||              2                             ||
    A0002              || 10K1    ||    EA           ||                                         ||              9                             ||   3
    Stock on 31.03.2011  (This is a selection date)
    Material code   ||  Batch  ||   Base unit  ||  Unrestricted use stock   || Stock in quality inspection  ||  Blocked stock
    A0001              || 09K1    ||    EA           ||     5                                  ||              2                             ||   1
    A0002              || 10K1    ||    EA           ||      6                                 ||                                             ||

  • Tables for Balance sheet Items.

    Dear All,
    I want to know the tables for Balance Sheet items like Current Assets Current Liabilities etc like where the
    cumulative amounts of there  accounts goes ?
    If not so given in SAP please suggest me the procedure for How to get there amounts in respective tables.
    Regards,
    Pankaj.

    Hi
    Michael.
    The balances given over here in GLT0 and there respective fields are as on date balance as per Trial balance ?
    My basic requirement is that the table should show the balances as per updated Trial Balance.
    Please Help.
    Regards,
    Pankaj.

  • Issue of zero bonds 04J Negative balance TRQ0001

    In FTR_CREATE I do a sale (transaction 200 Zero bond -Sale)/ issue of zero bonds 04J. I get error:
    "Per 19.02.2012 a negative balance of          100.000,00- PLN Nominal exists
    Message no. TRQ0001". I allowed short sales for the company code.

    Hi,
    Dont use prodcut type 04j for issue of bond. Use product type 04X (Issue: Fixed Interest Bonds) and 04Y (Issue: Variable Interest Bonds) for issue of bond with proper transaction type 300 and 400.
    Regards
    Brijendra

  • BP Negative Balance against Deliveries with out the Drill Down option...

    Hi Guys,
    There is a BP balance against Deliveries which is a negative balance. It does not give the option to drill down. when the entries were  checked, I can't find a same balance posted under a Return or a Delivery. Any thoughts. Thanks.
    Kind regards,
    Harsha.

    Hi Jitin,
    Thanks for the reply, how ever the issue arised after creating two Sales return documents(value £39.73), against one return a AR Credit memo was created which resulted in a balance in the Delivery as -38.21 and when tring to drill down an error was coming up (Internal error 6004 occured message131-183) and did not allow a drilling against the balance. But after cancelling the remaining Return the drilling option dissapeared leaving the negative balance of 38.21. No document can be identified agreeing to the same balance.
    Kind regards,
    Harsha

  • AP Negative Balance

    Hi Experts,
    I ahve a client who now wants to change the Negative Balance in the AP Accounts. They went live earlier this year and have entries in the System already.
    I see that the 'Display Credit Balance with a negative sign' ois ticked and greyed out. How can I get this AP accounts not to display as negative?
    Thanks.
    Marli

    Hi Marli,
    This initial setting might not be changeable as soon as you posted any transactions. You need to create a new database to solve the problem.
    Thanks,
    Gordon

  • PayPal Credit Negative Balance?

    Got a statement in the mail with a negative balance saying do not pay this and my account was closed. I called the number on the statement and asked what was going on. The rep. said paypal credit owes me money and they will be sending a check?  Has anyone had this happen before? 

    Did you ever find an answer to this? The same thing just happened to me.. I paid the bill and received a refund afterward, leaving me a $400 odd negative balance owed to me. Seems like a ridiculous way to sort that out..

  • 04J Per 01.02.2012 a negative balance of 1000- EUR.Short sales allowed

    Hi
    In TRM customizing in additional company code settings I allowed short sales.I created in FWZZ a 04J Zero Bond. In FTR_CREATE I try to create 04J Zero Bonds borrowing (with transaction type 200 Sale). The error message I get: "Per 01.02.2012 a negative balance of        1.000.000,00- EUR Nominal exists. Message no. TRQ0001. Any advice?

    That is not right. Here is the F1 info on the field: "Short sales possible": This indicator controls whether short sales are permitted or not. Short sales are allowed if the indicator is set.

  • NEGATIVE BALANCE IN INVENTORY CONTROL ACCOUNTS

    Hi SAP Gurus,
    Is there any t-code which could be used to pull;
    - Inventory Dr items and GR/IR credit items - (Assignment to used is Vendor PO, Customer Sales order).
    - Negative balances under inventory control accounts.
    I search the forums but couldn't find any relevant information.
    Please help, it's urgent.
    Regards

    Hi
    Go through the following path to use the NEGATIVE POSTINGS:
    SPRO-Financial Accounting(new)-Accounts receivable and accounts payable-Business transactions-adjustment posting/reversal-permit negative postings
    Award points if it is useful.
    Thanks & Regards,
    A.Anandarajan

Maybe you are looking for

  • Text cannot be resized or selected? :(

    Hi, folks I have been parachuted for an exploration into this brave new world of e-publishing. Though I have some experience in the layout of magazines and newspapers with the tools of the trade, some things amaze me and I am in that starting point w

  • What cable to buy to connect iPod to my stereo?

    hello - i'm about to purchase iPod classic 120, and would like to know what cable i need to buy to be able to connect the iPod directly to my stereo + speakers, w/o having to run it through iTunes. i have an airport, and imagine there is a way to pla

  • Need help in pda programming

    Hi, I am new on pda programming. I already develop a java program using j2sdk1.4.2_05. I need to run this program in pda for my final project. Can i do this using creme? What version do i must use? If j2sdk1.4.2_05 can't, does jdk1.3.1 can? And anybo

  • Regarding Error handling and customisation in RFC, Idocs and Proxy

    Hi, I wanted to compare RFC, Proxy and Idocs on the basis of the amount of customisation required in ECC when sending data from ECC to XI using the above stated means and also the error handling provided in these methods. Please let me know in detail

  • Table for capacity alt.uom

    Hi , For a work center the capacity is maintained in "time" and the alt unit of measure maintained is "MW" . I tried to see in number of tables, but this "MW" is not seen in any table. Can you pls suggest the table in which i need to look in. Regards